Follow along with the video below to see how to install our site as a web app on your home screen.
Note: This feature may not be available in some browsers.
How can i make system(or ability) like when i press a button the unit will move 50%faster, and lose 5 mana per second?
Events

Unit - A unit starts an effect of an ability
Conditions

(Ability being cast) Equal to Your Spell
Actions

Unit - Add Mana Regeneration to (Triggering unit)

Unit - Set movement speed of unit to ((Current Movement speed of (Triggering unit)) x 0.5)
Events

Unit - A unit stops casting an ability
Conditions

(Ability being cast) Equal to Your Spell
Actions

Unit - Remove Mana Regeneration from (Triggering unit)

Unit - Set movement speed of unit to (Default movement speed of (Triggering unit))
This means that the spell can be activated/deactivated at will, Venom....and lose 5 mana per second?
Sprint

Events


Unit - A unit Is issued an order with no target

Conditions

Actions


If (All Conditions are True) then do (Then Actions) else do (Else Actions)



If - Conditions




(String((Issued order))) Equal to immolation



Then - Actions




Unit - Add Inventory (Hero) to (Triggering unit)




Hero - Create Rune of Speed and give it to (Triggering unit)




Item - Remove (Last created item)




Unit - Remove Inventory (Hero) from (Triggering unit)



Else - Actions




If (All Conditions are True) then do (Then Actions) else do (Else Actions)





If - Conditions






(String((Issued order))) Equal to unimmolation





Then - Actions






Unit - Remove Speed Bonus Dummy buff from (Triggering unit)





Else - Actions
Note: you also need a trigger that checks when the unit's mana becomes 0, then remove the buff from that unit as well.
It doesn't automatically do that.
(Let me guess: you just need the triggers?)
Sprint

Events


Time - Every 0.03 seconds of game time

Conditions

Actions


Unit Group - Pick every unit in tempGroup and do multiple actions



Loop - Actions




If all conditions are True then do actions else do actions





If - Conditions






(Mana of (Picked unit)) less than 5





Then - Actions






Unit - Remove Buff of Sprint from(Picked unit)






Unit - Remove (Picked unit) from tempGroup






Trigger - Turn off (this trigger)





Else - Actions
Sprint

Events


Unit - A unit Is issued an order with no target

Conditions

Actions


If (All Conditions are True) then do (Then Actions) else do (Else Actions)



If - Conditions




(Mana of (Triggering unit)) Less than or equal to 0.10



Then - Actions




Unit - Remove Speed Bonus Dummy buff from (Triggering unit)




Skip remaining actions



Else - Actions


If (All Conditions are True) then do (Then Actions) else do (Else Actions)



If - Conditions




(String((Issued order))) Equal to immolation



Then - Actions




Unit - Add Inventory (Hero) to (Triggering unit)




Hero - Create Rune of Speed and give it to (Triggering unit)




Item - Remove (Last created item)




Unit - Remove Inventory (Hero) from (Triggering unit)




If (All Conditions are True) then do (Then Actions) else do (Else Actions)





If - Conditions






((Triggering unit) is in sprintGroup) Equal to False





Then - Actions






Unit Group - Add (Triggering unit) to sprintGroup






Trigger - Add to (This trigger) the event (Unit - (Triggering unit)'s mana becomes Less than or equal to 0.10)





Else - Actions



Else - Actions




If (All Conditions are True) then do (Then Actions) else do (Else Actions)





If - Conditions






(String((Issued order))) Equal to unimmolation





Then - Actions






Unit - Remove Speed Bonus Dummy buff from (Triggering unit)





Else - Actions