ThySpektre
TH.net Regular
- Reaction score
- 10
Are there any other constant mana burning abilities like Immolation?
ThySpektre
ThySpektre
Pyromancer said:you could just have a trigger that every bla seconds of the game, subtracts bla from units manna, and health
ADNORM said:I like Pryomancer's idea, in general, although I have an ability based on mana shield that runs a trigger that checks when it gets deactivated that doesn't seem to lag much. Provided the ability only belongs to a few units/heroes rather than a large group, you should be fine with either trigger.
Evasion On
Events
Unit - A unit Is issued an order with no target
Conditions
(Unit-type of (Ordered unit)) Equal to Archmage
(Issued order) Equal to (Order(immolation))
Actions
Set TempUnit = (Ordered unit)
Unit - Add Evasion Spellbook to TempUnit
Unit - Set level of Evasion Spellbook for TempUnit to (Level of Evasion for TempUnit)
Custom script: loop
Custom script: exitwhen (GetUnitStateSwap(UNIT_STATE_MANA, udg_TempUnit) < 1.00)
Wait 0.50 seconds
Custom script: endloop
Unit - Remove Evasion Spellbook from TempUnit
Set TempUnit = No unit
Persen said:Check the free trigger code thread, i posted this trigger set once, and it works perfectly. Or, check the "Evasion draining mana" thread... The same trigger, but it might be better.
ThySpektre said:Persen,
You have a loop to make sure the ability is removed when the mana hits 0 and you have another trigger to remove it when the ability is deactivated.
If the person turns this ability on, and then off many times thru a game without allowing his mana to hit 0, won't Ihave a ton of loops left running throughout the game?