Yoww89
New Member
- Reaction score
- 0
My spell needs to wait for a specific buff to be aplied to the target unit so it can trigger it's effects.
Since the wait for condition function needs a global variable and at the same time include a wait it's impossible to make it work if you have more than one instance going on. Unless your checking for a condition on the triggering unit I guess. Is there any way around this?
You can't set the triggering unit to another unit right? (I know it's dumb! But I'll ask it anyway ;p)
I know I can do it with timers and arrays/hashtables, I'm just wondering if there's an easier way.
Since the wait for condition function needs a global variable and at the same time include a wait it's impossible to make it work if you have more than one instance going on. Unless your checking for a condition on the triggering unit I guess. Is there any way around this?
You can't set the triggering unit to another unit right? (I know it's dumb! But I'll ask it anyway ;p)
I know I can do it with timers and arrays/hashtables, I'm just wondering if there's an easier way.