| 07-20-2004, 11:46 AM | #1 |
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 |
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 |
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 |
A unit stops/finishes casting a spell won't work? |
| 07-21-2004, 08:57 AM | #5 | |
Quote:
|
| 07-21-2004, 04:14 PM | #6 |
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 | |
Quote:
Ä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 |
I know, but Blizzard didn't put in any nice events like "Unit gains buff". Sorry... |
