I am making a spell based off Doom. It's called "Sheepify". It should be a quite simple spell, but just look at the triggers:
Events: A unit finishes casting an ability
Conditions: Ability equal to Sheepify
Actions: Wait (Random Real Number Between 5.00 and 13.00 Seconds) Add Wander (Neutrel) to (Target Unit of Ablilty Being Cast) Wait (Random Real Number Between 8.00 and 16.00 Seconds) Change Owner of (Target Unit of Ability Being Cast) to Neutrel Passive Wait (Random Real Number Between 8.00 and 16.00 Seconds) Replace (Target Unit of Ability Being Cast) to a Sheep
Now, trust me, I've tried tons of things and the problem is using an Event Response after a Wait time. Is this normal or is it that my WE is buggy?
Okay I know that variables will work but there's one thing: say I set the variable to "Target Unit of Ability Being Cast" in the beginning of the trigger, then during the wait times if someone else casts it, the variable will be reset for his spell. I have had this problem before to and I emailed a friend (Spellweaver) and asked him if he had any ideas and he said I should try an array.
How do I use arrays? I have heard that you make the variable an array (and I know how to do that), and then when you use it you have to do something like add numbers on the end or something. Need some help please
If Variable [1] = No Unit Then Set Target Unit of Ability Being Cast = Variable [1] Else If Variable [2] = No Unit Then Set Target Unit of Ability Being Cast = Variable [2]
This may work, but there would be a limit of course >_<