Warcraft III resources & community, 2003–2006 · archived

General Help: What determines if unit blow on clicking

10 posts
#1

General Help: What determines if unit blow on clicking

How the game knows that e.g. sheep explodes when you click it 15 times or whatever? If i want to marine explode what i have to set?
#2
alas, no fear matey here is the trigger...

just replace the X's in the IF/THEN/ELSE with your own numbers, and add an exploding action in the actions under the IF/THEN/ELSE as well...

For my trigger, i used an albatross as a unit..enjoy

AlbatrosExplode
Events
Player - Player 1 (Red) Selects a unit
Conditions
(Unit-type of (Triggering unit)) Equal to Albatross
Actions
Set AmountOfClicks = (AmountOfClicks + 1)
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
AmountOfClicks Equal to X
Then - Actions
Special Effect - Create a special effect attached to the overhead of (Triggering unit) using Doodads\Cinematic\TownBurningFireEmitter\TownBurningFireEmitter.mdl
Else - Actions
#3
Yes, i found it too, but it is trigger and could be buggy, but how does blizzard set it. It is something hard-coded deep in-game or something.
I could use a trigger but

i want to find another way
#4
Well as i'm trained we/i/blizzard uses Script codes with a special program that is maded for blizzards st games, i got that program but i'm not allowed to give it out... but now you know how...

scripting, took me 3years to learn and now i can it very goood i can make everything with script.

(this is not some JASS junk)
#5

Re: General Help: What determines if unit blow on clicking

JacekHow the game knows that e.g. sheep explodes when you click it 15 times or whatever? If i want to marine explode what i have to set?
i believe the revenge abilty cause a unit to blow up
#6
Thanks guys. But the second question is how do you make the unit walk around like the sheeps do. I think its an ability but i'm not sure
#7
the wander ability will make the unit walk around.
#8
well explained guys
#9
Thx that everything in thread i think
#10
Is there anything else we can help you w/?

@Taurenwarrior: I like your sig :D It is beautiful. :D