- Joined
- Jun 22, 2004
- Messages
- 109
heyo i just started an ability...wat it does is split the hero into 2, and each of those ilusions split into 2, this is done 5 times...now i made the ability based off of storm earth and fire ability, and used a copy of the unit that casts it for the created unit...this unit has the same dummy spell which is also based on storm earth and fire.
Code
Mirror Split
Events
Unit - A unit Begins casting an ability
Conditions
(Ability being cast) Equal to Shadow Image
(Level of Shadow Image for (Casting unit)) Greater than or equal to 1
Actions
Unit Group - Pick every unit in (Units in (Playable map area) matching ((Unit-type of (Matching unit)) Equal to Death's Shadow)) and do (Actions)
Loop - Actions
Hero - Set (Picked unit) Hero-level to (Level of (Casting unit)), Hide level-up graphics
For each (Integer A) from 1 to 10, do (Actions)
Loop - Actions
Unit - Order (Picked unit) to Neutral Pandaren Brewmaster - Storm, Earth, And Fire
Wait 1.00 seconds
Now the problem is that first when the ability is activated, the illusions do not split by themselves, and the level of the illusion does not get matched with the level of the casting unit...wats wrong?? help me out plz
Code
Mirror Split
Events
Unit - A unit Begins casting an ability
Conditions
(Ability being cast) Equal to Shadow Image
(Level of Shadow Image for (Casting unit)) Greater than or equal to 1
Actions
Unit Group - Pick every unit in (Units in (Playable map area) matching ((Unit-type of (Matching unit)) Equal to Death's Shadow)) and do (Actions)
Loop - Actions
Hero - Set (Picked unit) Hero-level to (Level of (Casting unit)), Hide level-up graphics
For each (Integer A) from 1 to 10, do (Actions)
Loop - Actions
Unit - Order (Picked unit) to Neutral Pandaren Brewmaster - Storm, Earth, And Fire
Wait 1.00 seconds
Now the problem is that first when the ability is activated, the illusions do not split by themselves, and the level of the illusion does not get matched with the level of the casting unit...wats wrong?? help me out plz