HomeUser Control Panel (unavailable in archive)ForumsTutorialsArt GalleryResourcesMaps

End of immolation

03-25-2008, 01:23 PM#1
Makier
How can I detect it?
03-25-2008, 01:32 PM#2
1337D00D
The caster doesn't have the buff anymore?
03-25-2008, 03:00 PM#3
VaccumCleaner
Thats one way to do it.

If im not wrong you can use "Unit is issued a order with no target"
and then conditions use the Immolation order code for order given
Its "unimmolation" i think
03-25-2008, 05:40 PM#4
notsoexpert
First, detect when he starts the effect. Then run a timer that checks every second or so if the unit has the immolation buff. If he doesn't, give actions and pause/destroy the timer.
03-25-2008, 06:26 PM#5
Dead.oK
Just check units orders:
"immolation" and "unimmolation"
03-25-2008, 06:27 PM#6
Captain Griffen
Orders are dodgy. Don't do it that way.
03-25-2008, 07:34 PM#7
Pyrogasm
The "unimmolation" order is only issued when the player manually casts the spell; e.g. it won't detect when the hero runs out of mana and turns immolation off.
03-25-2008, 09:48 PM#8
Burning Rose
I use immolation all the time for Off and Ons that I want to cost Mana. Just have a periodic Trigger that detects whether or not he has the buff, and then do your things. If you want it to happen specifically when it runs out, you can use a boolean, like so:
Trigger:
Example
Collapse Events
Time - Every 0.10 seconds of game time
Conditions
Collapse Actions
Collapse If (All Conditions are True) then do (Then Actions) else do (Else Actions)
Collapse If - Conditions
(<Whatever Unit> has buff <Buff> Equal to True
Collapse Then - Actions
-------- Do your actions if it's a periodic thing --------
Set Does_he_have_Active = True
Collapse Else - Actions
Collapse If (All Conditions are True) then do (Then Actions) else do (Else Actions)
Collapse If - Conditions
Does_he_have_Active Equal to True
Collapse Then - Actions
-------- Do your actions when it turns off --------
Set Does_he_have_Active = False
Else - Actions
03-26-2008, 12:41 AM#9
midiway
there is an event to detect when a unit's mana becomes equal to 0
03-26-2008, 04:34 AM#10
Burning Rose
Yes, but it's a specific unit event. Besides, I may be wrong, but I think a unit's mana doesn't have to reach Zero for Immolation to stop. I think it just has to go below the threshhold (Mana drained each second).
03-26-2008, 04:43 AM#11
Malf
Immolation stops when the unit's mana goes below the 'Buffer Mana Required'. You can always check for the buff though, if you don't like manually draining mana.
03-26-2008, 10:41 AM#12
Captain Griffen
It can also be ordered off but not go off if stunned, or some problem like that.

Checking for the buff is the surest way by far.
03-26-2008, 12:00 PM#13
Toadcop
periodicaly check for the buff ?! (if it's exists...) the best solution... (imho)

//PS
Quote:
Checking for the buff is the surest way by far.
lol ^^ i haven't read that xD but well yes.