FMAlchemist
New Member
- Reaction score
- 4
Ok ok here is my trigger.
This spell, shoots out a dummy unit as a spell (wisp), and it travells towards the Wisp Ex, and if it encounters a unit while this is happening, then it will cause damange in a small area.
The problem~ i set the variable of the wisp`s with "[(Player number of (Owner of (Triggering unit)))])", so in the 2nd trigger, this is not valiable, therefor i cannot remove the 2 dummy units.
~~
Code:
Spell
Events
Unit - A unit Starts the effect of an ability
Conditions
(Ability being cast) Equal to Fireball
Actions
Unit - Create 1 Wisp for Neutral Passive at (Position of (Triggering unit)) facing Default building facing degrees
Unit - Make (Last created unit) Invulnerable
Set main_attack[(Player number of (Owner of (Triggering unit)))] = (Last created unit)
Unit - Create 1 Ex Wisp for Neutral Passive at (Target point of ability being cast) facing Default building facing degrees
Unit - Make (Last created unit) Invulnerable
Unit - Add a 1.50 second Generic expiration timer to (Last created unit)
Set main_attack_target[(Player number of (Owner of (Triggering unit)))] = (Last created unit)
Unit - Order main_attack[(Player number of (Owner of (Triggering unit)))] to Move To (Position of main_attack_target[(Player number of (Owner of (Triggering unit)))])
Trigger - Add to Spell Ex <gen> the event (Unit - A unit comes within 50.00 of main_attack[(Player number of (Owner of (Triggering unit)))])
Code:
Spell Ex
Events
Conditions
(Triggering unit) Not equal to Player_Hero[1]
(Triggering unit) Not equal to Player_Hero[2]
(Triggering unit) Not equal to Player_Hero[3]
(Triggering unit) Not equal to Player_Hero[4]
(Triggering unit) Not equal to Player_Hero[5]
(Triggering unit) Not equal to Player_Hero[6]
Actions
Unit - Cause (Picked unit) to damage circular area after 0.00 seconds of radius 200.00 at (Position of (Triggering unit)), dealing 100.00 damage of attack type Spells and damage type Fire
Special Effect - Create a special effect at (Position of (Triggering unit)) using Abilities\Spells\Human\ThunderClap\ThunderClapCaster.mdl
This spell, shoots out a dummy unit as a spell (wisp), and it travells towards the Wisp Ex, and if it encounters a unit while this is happening, then it will cause damange in a small area.
The problem~ i set the variable of the wisp`s with "[(Player number of (Owner of (Triggering unit)))])", so in the 2nd trigger, this is not valiable, therefor i cannot remove the 2 dummy units.
~~