Listen to a special audio message from Bill Roper to the Hive Workshop community (Bill is a former Vice President of Blizzard Entertainment, Producer, Designer, Musician, Voice Actor) 🔗Click here to hear his message!
i need a trigger that pick every "XX" unit type to cast "X" spell at any random unit of type "Y" when the mana of picked unit "XX" comes to 50 or less.
can you guys help me?
Trigger - Add to XX Actions <gen> the event (Unit - unit[(XX + (50 x 0))]'s mana becomes Less than or equal to 50.00)
Set XX = (XX + 1)
XX Actions
Events
Conditions
Actions
Custom script: set bj_wantDestroyGroup = true
Set RandomY = (Units in (Playable map area) matching ((Unit-type of (Matching unit)) Equal to Y))
Unit - Order (Triggering unit) to X (Random unit from RandomY)
When a Footman(XX) cast Flame Strike which cause his Mana to be less than 50, the Footman(XX) will find random Gnolls(Y) and Firebolt(X) them.
- You should create the unit yourself via trigger instead of placing them in world editor because the triggers will only be triggered if the unit is entering the map.
- Remember to put the "X" spell to the "XX" unit or else the "XX" unit won't cast the spell that doesn't exist in his abilities.
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.