- Joined
- Apr 22, 2020
- Messages
- 53
Hi,
I'm trying to make a trigger spell with AOE and DOT.
It's a fire area you can get out of to avoid more damage.
Important point, it has to affect some units who are Invulnerable and has not to affect a type of unit, so I need to keep conditions I've set..
I tried to make this but I have several issues :
1- The buff doesn't disapear.
2- Units inside the spell at beginning take damage, and don't when they leave the area as expected BUT if a unit not inside the spell at the beginning goes in the area, it will not take any damage...
I'm trying to make a trigger spell with AOE and DOT.
It's a fire area you can get out of to avoid more damage.
Important point, it has to affect some units who are Invulnerable and has not to affect a type of unit, so I need to keep conditions I've set..
I tried to make this but I have several issues :
1- The buff doesn't disapear.
2- Units inside the spell at beginning take damage, and don't when they leave the area as expected BUT if a unit not inside the spell at the beginning goes in the area, it will not take any damage...
-
Ignite2 Unit
-
Evenements
-
Unit - A unit Initie l'effet d'une competence
-
-
Conditions
-
(Ability being cast) Egal to Ignite 2
-
((Owner of (Triggering unit)) Or actuel) Superieur ou egal to 10
-
-
Actions
-
Custom script: local effect udg_Ignite2_SpellEffect
-
Joueur - Add -10 to (Owner of (Triggering unit)) Or actuel
-
Set Ignite2_Point = (Target point of ability being cast)
-
Effet special - Create a special effect at Ignite2_Point using Abilities\Spells\Other\ImmolationRed\ImmolationRedTarget.mdl
-
Set Ignite2_SpellEffect = (Last created special effect)
-
Custom script: set bj_wantDestroyGroup = true
-
Groupe unit - Pick every unit in (Units within 90.00 of Ignite2_Point) and do (Actions)
-
Boucle - Actions
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
Si - Conditions
-
(Unit-type of (Picked unit)) Different de Dragon
-
((Picked unit) is alive) Egal to TRUE
-
-
Alors - Actions
-
Unit - Set life of (Picked unit) to ((Vie of (Picked unit)) - 2.00)
-
-
Sinon - Actions
-
-
-
-
Effet special - Create a special effect attached to the chest of (Picked unit) using Environment\LargeBuildingFire\LargeBuildingFire2.mdl
-
Effet special - Destroy (Last created special effect)
-
Wait 2.00 seconds
-
Custom script: set bj_wantDestroyGroup = true
-
Groupe unit - Pick every unit in (Units within 90.00 of Ignite2_Point) and do (Actions)
-
Boucle - Actions
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
Si - Conditions
-
(Unit-type of (Picked unit)) Different de Dragon
-
((Picked unit) is alive) Egal to TRUE
-
-
Alors - Actions
-
Unit - Set life of (Picked unit) to ((Vie of (Picked unit)) - 2.00)
-
-
Sinon - Actions
-
-
-
-
Effet special - Create a special effect attached to the chest of (Picked unit) using Environment\LargeBuildingFire\LargeBuildingFire2.mdl
-
Effet special - Destroy (Last created special effect)
-
Wait 2.00 seconds
-
Custom script: set bj_wantDestroyGroup = true
-
Groupe unit - Pick every unit in (Units within 90.00 of Ignite2_Point) and do (Actions)
-
Boucle - Actions
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
Si - Conditions
-
(Unit-type of (Picked unit)) Different de Dragon
-
((Picked unit) is alive) Egal to TRUE
-
-
Alors - Actions
-
Unit - Set life of (Picked unit) to ((Vie of (Picked unit)) - 2.00)
-
-
Sinon - Actions
-
-
-
-
Effet special - Create a special effect attached to the chest of (Picked unit) using Environment\LargeBuildingFire\LargeBuildingFire2.mdl
-
Effet special - Destroy (Last created special effect)
-
Effet special - Destroy Ignite2_SpellEffect
-
Custom script: call RemoveLocation (udg_Ignite2_Point)
-
Custom script: set udg_Ignite2_SpellEffect = null
-
-
Attachments
Last edited: