- Joined
- May 9, 2008
- Messages
- 28
Rock Dome
Events
Unit - A unit Starts the effect of an ability
Conditions
(Ability being cast) Equal to Rock Dome
Actions
Set caster = (Casting unit)
Unit Group - Pick every unit in (Units within 350.00 of (Target point of ability being cast) matching ((((Matching unit) belongs to an enemy of (Owner of caster)) Equal to True) and ((((Matching unit) is A structure) Equal to False) and (((Matching unit) is Magic Immune) Equal to False)))) and do (Actions)
Loop - Actions
Set unit = (Picked unit)
Unit - Create 1 Dome for (Owner of caster) at (Target point of ability being cast) facing (Position of caster)
Animation - Change (Last created unit) flying height to -235.00 at 700.00
Unit - Pause caster
Unit - Pause unit
Lightning - Create a Drain Mana lightning effect from source (Position of unit) to target (Position of caster)
Wait 1.00 seconds
Unit - Set mana of caster to ((Mana of caster) + (Mana of (Picked unit)))
Wait 0.20 seconds
Unit - Set mana of (Picked unit) to 0.00%
Lightning - Destroy (Last created lightning effect)
Animation - Change (Last created unit) flying height to -400.00 at 700.00
Wait 0.70 seconds
Unit - Remove (Last created unit) from the game
Unit - Unpause caster
Unit - Unpause (Picked unit)
Unit - Turn collision for unit On
It freezes right after the create lightning effect...Advice?
Events
Unit - A unit Starts the effect of an ability
Conditions
(Ability being cast) Equal to Rock Dome
Actions
Set caster = (Casting unit)
Unit Group - Pick every unit in (Units within 350.00 of (Target point of ability being cast) matching ((((Matching unit) belongs to an enemy of (Owner of caster)) Equal to True) and ((((Matching unit) is A structure) Equal to False) and (((Matching unit) is Magic Immune) Equal to False)))) and do (Actions)
Loop - Actions
Set unit = (Picked unit)
Unit - Create 1 Dome for (Owner of caster) at (Target point of ability being cast) facing (Position of caster)
Animation - Change (Last created unit) flying height to -235.00 at 700.00
Unit - Pause caster
Unit - Pause unit
Lightning - Create a Drain Mana lightning effect from source (Position of unit) to target (Position of caster)
Wait 1.00 seconds
Unit - Set mana of caster to ((Mana of caster) + (Mana of (Picked unit)))
Wait 0.20 seconds
Unit - Set mana of (Picked unit) to 0.00%
Lightning - Destroy (Last created lightning effect)
Animation - Change (Last created unit) flying height to -400.00 at 700.00
Wait 0.70 seconds
Unit - Remove (Last created unit) from the game
Unit - Unpause caster
Unit - Unpause (Picked unit)
Unit - Turn collision for unit On
It freezes right after the create lightning effect...Advice?