| 02-09-2005, 04:12 PM | #1 |
well as we all know , in wc3 , to attack u simply click on a unit, and ur unit autos and attacks as much as possible. how can i make it so that it doesn't auto, so that i would have to click everytime i want to attack. lets look at it like this, i want to attack like in diablo 2 , a click fest lol. |
| 02-09-2005, 04:46 PM | #2 |
Guest | It may sound complicated but it is easy. And I don't know if it will fit with your map aswell. But I'll give it a try... Let's get an example: you have a Warrior, and an ennemy, let's say a demon. The warrior is owned by a player, and the demon by a computer. Make it so that the computer owns all baddies. Now create a trigger that sets all players ennemies of the computer, and the computer the ally of all players. Be sure you use locked teams. Now create this trigger: Event - a unit is attacked Condition - owner of (attacking unit) different from (computer) Action - order attacking unit to stop Now, the human players will have to press a-click (and not only right click, sorry this seems kinda hard to do) everytime they want to attack an unit. If your map is not vs a cpu, but a big mass of players (but thats not like diablo anymore), just put all players allies and delete the conditions. There is a 50% chance this solves your problem and a 50% chance it does not. If it does not, and what you want is a clickfest, just click in the link in my siggy, and download the map called God's Hand 2: Inferno. This is a very harsh and stressful clickfest ^_^ |
| 02-09-2005, 07:23 PM | #3 |
The above trigger is a bad way to do this. Simply set the unit's acquistion range to 1. |
| 02-09-2005, 07:59 PM | #4 | |
Guest | Quote:
... lol LOL Man that's so simple and that works gw :o |
| 02-09-2005, 09:42 PM | #5 |
hmm, when i attack with my hero it still autos, i want to remove the auto attack so that if i attack, i would have to click on the unit to attack , maybe i did the wrong thing flame. i did set the aquisition range to 1 on my hero. but he still autos, what am i doing wrong ? just so u guys know , i gave u both rep points just because ur trying to help me ^_^ thx . |
| 02-10-2005, 01:34 AM | #6 |
K try this... I dont know if it is possible but i think that you can set alliances in a way that player 2 sees you as enemy but you see him as neutral. Try with change ally properties trigger. After you did that you can use the "unit is selected" event to order your hero to attack the selected unit one time. I'm sure that an order Attack Once exists soo there will be no problems. With this way you can use your right-click to move and left-click on a neutral unit to order the hero to attack it 1 time. Still there is a problem... you can order your hero to ATTACK the neutral unit and in this case it becomes auto. Now i think you can check the issued order of your hero and if it is "attack" (and not "attack once") u order the hero to stop or to move on the unit he wants to attack. This system should work if well scripted i think! |
| 02-10-2005, 03:19 AM | #7 |
Oh, so you want to to attack once and then stop... hmm. Well, the unit is attack event fires as soon as the unit is ordered/automatically decides to attack the unit. Unfortunately, there is not a 'unit finishes attacking event...' I can't really think of anything offhand, though I think a solution was presented once. [edit] Ahh, I remember. You remove the attack button from the unit (unfortunately this affects all units owned by the player, then you give the unit a spell that mimics and attack that has a 0 cooldown, give the icon the position 0,0 and hotkey of A. I believe that's your only solution |
| 02-10-2005, 07:55 AM | #8 |
Well, you could also go with the previous solution (by giving the unit 0 acquisition range) or by giving it a classification of a peasant (it won't auto attack). Then, all you need is a trigger: whenever a unit is ordered to "atack" or "smart" an enemy unit, order it to "attack once" instead. So, any attack order given to the unit will transform into an "attack once" order, meaning you would have to order every attack specifically. |
| 02-10-2005, 10:32 AM | #9 | |
Quote:
Who said something about stopping the unit after it attacks?!? I said there is an order called "Attack Once" and if it really works the unit should hit only 1 time a unit when ordered of doing this. |
| 02-10-2005, 10:38 AM | #10 |
Aquisition=0 Events- A unit is attacked Conditions Owner of Attacked Unit is in player group enemies of owner of attacking unit. Actions- Unit issue order to attack once Attacked Unit |
| 02-10-2005, 01:02 PM | #11 |
Guest | If the Aqusition range is set to zero, the range will also automatically be set to zero. The only way you can hold the range and still have a zero Aquisition range is to set the Acqusition range througha trigger. YOu can also make a trigger like this so when they select a uit, they'll attack it. Pretty simple. Events Unit - A unit selects a unit Conditions Actions Unit - Order your unit to attack nce (triggering unit) |
| 02-10-2005, 02:35 PM | #12 |
The other good idea that Anitarf exposed is that you can set the classification of your hero to a worked so it will not auto-attack like peons do. You will get the idle worker when your hero is doing nothing but that s not really a problem. |
