- Joined
- Apr 14, 2012
- Messages
- 2,901
I am really sorry if the title is unhelpful with the problem at hand, as I can't put to words the situation.
Months ago when I was still free to experiment with the Trigger Editor I was making spells like mad. They weren't perfect, some had weird bugs, some weren't even MUI. But there was this one spell (Actually two, they were kind of a duo) I started, but never finished. The first one (let's call it the First) wasn't an Aura or a Target Unit, but kind-of a Target Point, and the second one was kind of the Switch (I'll explain later). The process goes like this:
-When the caster casts the First, you point the cursor to a point on the ground, then it will summon a stationary dummy unit with no timed life. Now the dummy unit doesn't do anything special, except detonate magnificently when the Switch is activated.
-The caster may keep on doing this until he reaches a limit, which varies by level. The limit keeps the caster from summoning too many dummies. Afterwards he may now cast the Switch, will basically tells all present dummy units to blow up. But the twist is, they don't blow up at the same time. They detonate t seconds from the last, each with varying effects.
That's how it goes. But here are the things I can't figure out:
1.) If multiple casters do this, how do I keep track of the dummy units? Also since the limit variable is configurable, it might be very hard to store the data in like, DummyUnit[arrayint].
2.)
It's a rough sketch but what I'm trying to convey is that it takes an awful long branch of if-then-elses if I want to make different effects with t second intervals. Also, in relation with number one, how do I time the explosions with the deaths of the different dummy units with the different owners? Please help.
This spell has been bugging me for the past few days now, but I think it's time for me to ask for your help.
Thanks )
Months ago when I was still free to experiment with the Trigger Editor I was making spells like mad. They weren't perfect, some had weird bugs, some weren't even MUI. But there was this one spell (Actually two, they were kind of a duo) I started, but never finished. The first one (let's call it the First) wasn't an Aura or a Target Unit, but kind-of a Target Point, and the second one was kind of the Switch (I'll explain later). The process goes like this:
-When the caster casts the First, you point the cursor to a point on the ground, then it will summon a stationary dummy unit with no timed life. Now the dummy unit doesn't do anything special, except detonate magnificently when the Switch is activated.
-The caster may keep on doing this until he reaches a limit, which varies by level. The limit keeps the caster from summoning too many dummies. Afterwards he may now cast the Switch, will basically tells all present dummy units to blow up. But the twist is, they don't blow up at the same time. They detonate t seconds from the last, each with varying effects.
That's how it goes. But here are the things I can't figure out:
1.) If multiple casters do this, how do I keep track of the dummy units? Also since the limit variable is configurable, it might be very hard to store the data in like, DummyUnit[arrayint].
2.)
|
This spell has been bugging me for the past few days now, but I think it's time for me to ask for your help.
Thanks )