chopperpope
New Member
- Reaction score
- 12
how can I create achannel magic like:
illuminate? (ezalor)
or
unstable concortion? (alchemist)
illuminate? (ezalor)
or
unstable concortion? (alchemist)
THANKS:thup:Won't be able to explain since I'm in a rush but read these:
Illuminate:
Illuminate (A085)
Based on Channel, with Follow Through Time 2/3/4/5, 0.98 art duration, Options set to Visible, Target being Unit or Point target.
When the spell of this unit is started, the dummy unit is created on a 150 distance to Ezalor's facing. Then, the Hero and Caster variable are stored in the cache, then a new trigger is created, which can be called in two ways: one is a timed event every 0.5 seconds while the other is a spell endcast.
This new trigger recovers the Hero and Caster from the cache, then the unit's X and Y are placed so it ends up in a 150 distance in front of Ezalor's facing. Then the dummy caster unit is scaled (so it gets bigger every 0.5 seconds). Now, if the trigger was called because a spell has ended casting, it calls a new function sending it the number of times this trigger has been done minus one (RunTimesVar), Caster and Hero, then this trigger is destroyed.
This new function creates a unit on top of the Caster unit (event though its referred as caster it does nothing but show the graphics of charging Illuminate). Then a new x and y is calculated which is equal to 175 units away from Ezalor's facing. Then the unit is given a Breath Of Fire ability and is given its level to RunTimesVar. Then the unit is told to use the Breath of Fire on the x and y recently created. Then the "Caster" (not the one that calls the spell, but the spark that shows illuminate being charged) unit is killed.
Unstable Concoction:
Unstable Concoction (A0J6)
Based on Channel.
When it goes into effect, a unit (e01N) is created on top of the target unit. Then the variables Caster (the dummy) and Target are saved to the game cache. A new timed trigger is created every 0.1 seconds, and the newly created unit also has a 6 seconds timed life, then its pathing is removed, it's set to invulnerable and gains Aloc. Now, another trigger is created which can be called by either every 0.5 seconds or when a spell has finished casted. Finally the Hero, Target and Caster units are saved to the cache.
The trigger that is run every 0.1 seconds: Recovers Caster and Target from the cache, checks if the enemy has less than 1 life, or it is not visible, the timer is paused. If neither of those two conditions is met, then set the Caster's X and Y to be equal to the Target's X and Y. This is done to gain vision of the enemy unit.
The trigger that is run every 0.5 seconds: Checks if it has been called because the unit finished the spell cast of Unstable Concoction, if its true then recover Hero, Target and Caster from the game cache, create a unit (e00C) on top of the hero, add a Storm Bolt ability (A0JD) with its level equal to the number of times this trigger has been called-1 (with 1 being the lowest). Then it is told to use it on Target. Finally the unit is given Aloc, and given a timed life of 2 seconds. Then if the Caster unit is still alive, kill it then disable the trigger. Do note that there's an if at the beginning of this trigger, if it's not met then this trigger does nothing.
Hmm, a 2 seconds timed life of the dummy unit casting the storm bolt means that if the enemy is over 3000 units from you the "XXX has commited suicide" may happen. It needs a running hero at 522 speed (5 seconds channel: 2610 units, add casting range + buffer + the time spent to get to the enemy hero and you can see it can travel over 3000 units).