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!
Hi i need ur help again how can i make airplane system i mean plane has 100 mana and when it has 0 it dies.I also want unit to lose 1 mana per 1 second
Use a unit group and check for targets mana, or dynamically create unit-mana events. I recommend the first one, because it is easier in GUI.
The second one is more efficient and more accurate (units are killed instantly compared to the next timer call)
Mana
Events
Time - Every 0.03 seconds of game time
Conditions
Actions
Custom script: set bj_wantDestroyGroup = true
Unit Group - Pick every unit in (Units in (Playable map area) matching ((Unit-type of (Matching unit)) Equal to Air Plane)) and do (Actions)
Loop - Actions
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
((Picked unit) is alive) Equal to True
(Mana of (Picked unit)) Less than 0.01
Then - Actions
Unit - Kill (Picked unit)
Else - Actions
-1 mana per second can be done in object editor (destroyer also has negative mana regeneration)
Im too noob to create tiggers in editor is there a way i can cope them? or could u just send them in a empty editor map so i can copy them to my map i just cannot find all those things in editor
Ty, btw i have 5 kind of planes is it possible to put all in one tigger or i just create 5 different tiggers.does tiggers like every 0.2 leads to lags in game?
You can put them in one trigger. Simply add to the two conditions an or-statement and add all your unit types there. You then have to change the unti group function to pick all units of the map.
Should not lag. It highly depends on the amount of units on your map and your other triggers
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.