HomeUser Control Panel (unavailable in archive)ForumsTutorialsArt GalleryResourcesMaps

spell/buff end event

07-20-2004, 11:46 AM#1
Kackwiesel
Hi, I need an event for a windwalklike custom spell. It has to trigger when the ww-like Spell ends. I have found a solution for my problem, but its based on timers. Is there any trigger event, that does this job?
07-20-2004, 01:20 PM#2
Anitarf
I think there is no way to detect that. I use waits or periodic checks for the buff myself in cases I want to know when the spell expires. Of course, the periodic check is only accurate as much as it's frequency is.
07-20-2004, 01:54 PM#3
Kackwiesel
Another possibilty could be to add events like: timer-WW = 0; unit is issued any order; and conditions like: issued order is not equal to move, smart, stop etc.. but I dont know the order or the condition for learning spells. So the trigger runs if I learn a skill.
07-20-2004, 07:24 PM#4
Milkman
A unit stops/finishes casting a spell won't work?
07-21-2004, 08:57 AM#5
Kackwiesel
Quote:
Originally Posted by Milkman
A unit stops/finishes casting a spell won't work?
No it doesnt because the buff isnt a spell. :(
07-21-2004, 04:14 PM#6
Shimrra
The only way to detect whether a unit has a buff or not like that is to use periodic timers or events. E.g.:
Code:
Events
    Every 1 second of the game
Conditions
Actions:
    If all conditions are true then do Then actions else do else actions
        If
            Unit has buff Windwalk equal to false
        Then
            Actions
        Else
            Do nothing
07-22-2004, 10:23 PM#7
Kackwiesel
Quote:
Originally Posted by Shimrra
The only way to detect whether a unit has a buff or not like that is to use periodic timers or events. E.g.:
Code:
Events
    Every 1 second of the game
Conditions
Actions:
    If all conditions are true then do Then actions else do else actions
        If
            Unit has buff Windwalk equal to false
        Then
            Actions
        Else
            Do nothing

Ähm yes. This is how I have done it. But it sucks, because you have to check it for each player...
07-22-2004, 10:48 PM#8
Shimrra
I know, but Blizzard didn't put in any nice events like "Unit gains buff". Sorry...