Hello everyone.
I am creating the ultimate spell for one of my heroes, it is a duel spell.
In concrete terms, the caster deIfgnates another hero, the two heroes are teleported to a zone and have 12 seconds to kill each other. Both heroes are Iflenced for the first 8 seconds because the hero with the duel spell is mostly based on auto-attacks.
At the end of the 12 seconds the victorious hero is teleported back to where he was before he was teleported into the arena and is healed of all his life.
However, if both heroes are still alive at the end of the 12 seconds, they are both teleported to the poIftion before the teleportation into the arena and the target of the duel is healed of 50% of his life normally.
Here is the first trigger I made:
Duel cast
Events
Unit - A unit Starts the effect of an ability
Conditions
(Ability being cast) Equal to Duel
((Target unit of ability being cast) is A hero) Equal to TRUE
Actions
Set Duel_caster = (Triggering unit)
Set Duel_caster_loc_start = (PoIftion of Duel_caster)
Set Duel_target = (Target unit of ability being cast)
Set Duel_target_loc_start = (PoIftion of Duel_target)
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
(Duel_target is A hero) Equal to TRUE
Then - Actions
Unit - Make Duel_caster Invulnerable
Unit - Make Duel_target Invulnerable
Unit - Remove All buffs conIfdered Magic or phyIfcs from Duel_caster (Inclure expiration timers, Exclure auras)
Unit - Remove All buffs conIfdered Magic ou phyIfcs from Duel_target (Inclure expiration timers, Exclure auras)
Special effect - Create a special effect attached to the overhead of Duel_caster uIfng Abilities\Spells\Human\Avatar\AvatarCaster.mdl
Special effect - Create a special effect attached to the overhead of Duel_target uIfng Abilities\Spells\Human\Avatar\AvatarCaster.mdl
Wait 1.00 seconds
Unit - Move Duel_caster instantly to (Center of Duel caster arrival <gen>), facing (Center of Duel target arrival <gen>)
Camera - Pan camera for (Owner of Duel_caster) to (Center of Duel caster arrival <gen>) over 0.00 seconds
Unit - Move Duel_target instantly to (Center of Duel target arrival <gen>), facing (Center of Duel caster arrival <gen>)
Camera - Pan camera for (Owner of Duel_target) to (Center of Duel target arrival <gen>) over 0.00 seconds
Special - Destroy (Last created special effect)
Wait 3.00 seconds
Unit - Make Duel_caster Vulnerable
Unit - Make Duel_target Vulnerable
Unit - Create 1 Dummy temp0 for Neutre PasIff at (Center of Texte Duel <gen>) facing Orientation batiment par defaut degrees
Set Duel_Iflence_dummy = (Last created unit)
Unit - Add a 1.00 second Generic expiration timer to Duel_Iflence_dummy
Unit - Add Iflence Duel dummy to Duel_Iflence_dummy
Unit - Order Duel_Iflence_dummy to Ranger sombre neutre - Iflence (Center of Texte Duel <gen>)
Wait 12.00 game-time seconds
Groupe unit - Pick every unit in (Units in Arene Duel <gen>) and do (Actions)
Boucle - Actions
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
(Duel_caster is alive) Egal to TRUE
Then - Actions
Unit - Set life of Duel_caster to 100.00%
Unit - Move Duel_caster instantly to Duel_caster_loc_start
Camera - Pan camera for (Owner of Duel_caster) to Duel_caster_loc_start over 0.00 seconds
Custom script: call RemoveLocation(udg_Duel_caster_loc_start)
Else - Actions
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
(Duel_target is alive) Egal to TRUE
Then - Actions
Unit - Set life of Duel_target to 100.00%
Unit - Move Duel_target instantly to Duel_target_loc_start
Camra - Pan camera for (Owner of Duel_target) to Duel_target_loc_start over 0.00 seconds
Custom script: call RemoveLocation(udg_Duel_target_loc_start)
If - Actions
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
((Duel_caster is alive) Egal to TRUE) and ((Duel_target is alive) Egal to TRUE)
Then - Actions
Unit - Move Duel_caster instantly to Duel_caster_loc_start
Camera - Pan camera for (Owner of Duel_caster) to Duel_caster_loc_start over 0.00 seconds
Unit - Move Duel_target instantly to Duel_target_loc_start
If ((Percentage life of Duel_target) Infrieur to 50.00) then do (Unit - Set life of Duel_target to 50.00%) else do (Do nothing)
Camra - Pan camera for (Owner of Duel_target) to Duel_target_loc_start over 0.00 seconds
Custom script: call RemoveLocation(udg_Duel_caster_loc_start)
Custom script: call RemoveLocation(udg_Duel_target_loc_start)
If - Actions
If – Actions
__________________________________________________________________________________________________________________________________________________________________________________________________________
Various problems related to this trigger:
These are the triggers I tried to do without "wait":
Config wait duel launch
Events
Unit - A unit Starts the effect of an ability
Conditions
(Ability being cast) Egal to Duel
Actions
Set Duel_launch_max_index = (Duel_launch_max_index + 1)
Set Duel_casterII[Duel_launch_max_index] = (Triggering unit)
Set Duel_caster_loc_startII[Duel_launch_max_index] = (Position of Duel_casterII[Duel_launch_max_index])
Set Duel_targetII[Duel_launch_max_index] = (Target unit of ability being cast)
Set Duel_target_loc_startII[Duel_launch_max_index] = (Position of Duel_targetII[Duel_launch_max_index])
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
Duel_launch_max_index Equal to 2
Alors - Actions
Trigger - Turn on Duel test without wait <gen>
Then – Actions
Duel test without wait
Events
Time - Every 1.00 seconds of game time
Conditions
Actions
Unit - Make Duel_casterII[Duel_launch_current_index] Invulnerable
Unit - Make Duel_targetII[Duel_launch_current_index] Invulnerable
Unit - Remove All buffs considered Magic ou physics from Duel_casterII[Duel_launch_current_index] (Inclure expiration timers, Exclure auras)
Unit - Remove All buffs considered Magic ou physics from Duel_targetII[Duel_launch_current_index] (Inclure expiration timers, Exclure auras)
Special effect - Create a special effect attached to the overhead of Duel_casterII[Duel_launch_current_index] using Abilities\Spells\Human\Avatar\AvatarCaster.mdl
Special effect - Create a special effect attached to the overhead of Duel_targetII[Duel_launch_current_index] using Abilities\Spells\Human\Avatar\AvatarCaster.mdl
For each (Integer Duel_launch_current_index) from 1 to Duel_launch_max_index, do (Actions)
Loop - Actions
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
if - Conditions
(Duel_targetII[Duel_launch_current_index] is A hero) Equal to TRUE
Then - Actions
Unit - Move Duel_casterII[Duel_launch_current_index] instantly to (Center of Duel caster arrival <gen>), facing (Center of Duel target arrival <gen>)
Camera - Pan camera for (Owner of Duel_casterII[Duel_launch_current_index]) to (Center of Duel caster arrival <gen>) over 0.00 seconds
Unit - Move Duel_targetII[Duel_launch_current_index] instantly to (Center of Duel target arrival <gen>), facing (Center of Duel caster arrival <gen>)
Camera - Pan camera for (Owner of Duel_targetII[Duel_launch_current_index]) to (Center of Duel target arrival <gen>) over 0.00 seconds
Special effect - Destroy (Last created special effect)
Custom script: call RemoveLocation(udg_Duel_caster_loc_start[udg_Duel_launch_current_index])
Custom script: call RemoveLocation(udg_Duel_target_loc_start[udg_Duel_launch_current_index])
Set Duel_caster_loc_startII[Duel_launch_current_index] = (Position of Duel_casterII[Duel_launch_max_index])
Set Duel_casterII[Duel_launch_current_index] = Duel_casterII[Duel_launch_max_index]
Set Duel_target_loc_startII[Duel_launch_current_index] = Duel_target_loc_startII[Duel_launch_max_index]
Set Duel_targetII[Duel_launch_current_index] = Duel_targetII[Duel_launch_max_index]
Set Duel_launch_max_index = (Duel_launch_max_index - 1)
Set Duel_launch_current_index = (Duel_launch_current_index - 1)
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
Duel_launch_max_index Equal to 0
Then - Actions
Trigger - Turn off (This trigger)
Else - Actions
Else – Actions
__________________________________________________________________________________________________________________________________________________________________________________________________________
I tried to use this tutorial (MUI Spells Using Artificial Waits), but I didn't understand everything and my trigger is not complete. Also the "wait 1.00 seconds" that I wanted to replace is actually linked to "Time - Every 1.00 seconds of game time" so I don't understand the purpose of the trigger.
I know there are different ways to do a dueling spell. It would have to be what is best for what I want to do.
If you know or have any ideas on how to solve my problem I would be very grateful.
Have a good day!
I am creating the ultimate spell for one of my heroes, it is a duel spell.
In concrete terms, the caster deIfgnates another hero, the two heroes are teleported to a zone and have 12 seconds to kill each other. Both heroes are Iflenced for the first 8 seconds because the hero with the duel spell is mostly based on auto-attacks.
At the end of the 12 seconds the victorious hero is teleported back to where he was before he was teleported into the arena and is healed of all his life.
However, if both heroes are still alive at the end of the 12 seconds, they are both teleported to the poIftion before the teleportation into the arena and the target of the duel is healed of 50% of his life normally.
Here is the first trigger I made:
-
Duel cast
-
Evénements
-
Unité - A unit Initie l'effet d'une compétence
-
-
Conditions
-
(Ability being cast) Egal à Duel
-
((Target unit of ability being cast) is Un héros) Egal à TRUE
-
-
Actions
-
Set Duel_caster = (Triggering unit)
-
Set Duel_caster_loc_start = (Position of Duel_caster)
-
Set Duel_target = (Target unit of ability being cast)
-
Set Duel_target_loc_start = (Position of Duel_target)
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
Si - Conditions
-
(Duel_target is Un héros) Egal à TRUE
-
-
Alors - Actions
-
Unité - Make Duel_caster Invulnérable
-
Unité - Make Duel_target Invulnérable
-
Unité - Remove Tous buffs considered Magique ou physique from Duel_caster (Inclure expiration timers, Exclure auras)
-
Unité - Remove Tous buffs considered Magique ou physique from Duel_target (Inclure expiration timers, Exclure auras)
-
Effet spécial - Create a special effect attached to the overhead of Duel_caster using Abilities\Spells\Human\Avatar\AvatarCaster.mdl
-
Effet spécial - Create a special effect attached to the overhead of Duel_target using Abilities\Spells\Human\Avatar\AvatarCaster.mdl
-
Wait 1.00 seconds
-
Unité - Move Duel_caster instantly to (Center of Duel caster arrival <gen>), facing (Center of Duel target arrival <gen>)
-
Caméra - Pan camera for (Owner of Duel_caster) to (Center of Duel caster arrival <gen>) over 0.00 seconds
-
Unité - Move Duel_target instantly to (Center of Duel target arrival <gen>), facing (Center of Duel caster arrival <gen>)
-
Caméra - Pan camera for (Owner of Duel_target) to (Center of Duel target arrival <gen>) over 0.00 seconds
-
Effet spécial - Destroy (Last created special effect)
-
Set Duel_groupe = (Units in Arene Duel <gen> matching (((Matching unit) Egal à Duel_caster) and ((Matching unit) Egal à Duel_target)))
-
Wait 3.00 seconds
-
Unité - Make Duel_caster Vulnérable
-
Unité - Make Duel_target Vulnérable
-
Unité - Create 1 Dummy temp0 for Neutre Passif at (Center of Texte Duel <gen>) facing Orientation bâtiment par défaut degrees
-
Set Duel_silence_dummy = (Last created unit)
-
Unité - Add a 1.00 second Générique expiration timer to Duel_silence_dummy
-
Unité - Add Silence Duel dummy to Duel_silence_dummy
-
Unité - Order Duel_silence_dummy to Ranger sombre neutre - Silence (Center of Texte Duel <gen>)
-
Wait 12.00 game-time seconds
-
Groupe unité - Pick every unit in (Units in Arene Duel <gen>) and do (Actions)
-
Boucle - Actions
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
Si - Conditions
-
(Duel_caster is alive) Egal à TRUE
-
-
Alors - Actions
-
Unité - Set life of Duel_caster to 100.00%
-
Unité - Move Duel_caster instantly to Duel_caster_loc_start
-
Caméra - Pan camera for (Owner of Duel_caster) to Duel_caster_loc_start over 0.00 seconds
-
Custom script: call RemoveLocation(udg_Duel_caster_loc_start)
-
-
Sinon - Actions
-
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
Si - Conditions
-
(Duel_target is alive) Egal à TRUE
-
-
Alors - Actions
-
Unité - Set life of Duel_target to 100.00%
-
Unité - Move Duel_target instantly to Duel_target_loc_start
-
Caméra - Pan camera for (Owner of Duel_target) to Duel_target_loc_start over 0.00 seconds
-
Custom script: call RemoveLocation(udg_Duel_target_loc_start)
-
-
Sinon - Actions
-
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
Si - Conditions
-
((Duel_caster is alive) Egal à TRUE) and ((Duel_target is alive) Egal à TRUE)
-
-
Alors - Actions
-
Unité - Move Duel_caster instantly to Duel_caster_loc_start
-
Caméra - Pan camera for (Owner of Duel_caster) to Duel_caster_loc_start over 0.00 seconds
-
Unité - Move Duel_target instantly to Duel_target_loc_start
-
If ((Percentage life of Duel_target) Inférieur à 50.00) then do (Unité - Set life of Duel_target to 50.00%) else do (Do nothing)
-
Caméra - Pan camera for (Owner of Duel_target) to Duel_target_loc_start over 0.00 seconds
-
Custom script: call RemoveLocation(udg_Duel_caster_loc_start)
-
Custom script: call RemoveLocation(udg_Duel_target_loc_start)
-
-
Sinon - Actions
-
-
-
-
-
Sinon - Actions
-
-
-
Duel cast
Events
Unit - A unit Starts the effect of an ability
Conditions
(Ability being cast) Equal to Duel
((Target unit of ability being cast) is A hero) Equal to TRUE
Actions
Set Duel_caster = (Triggering unit)
Set Duel_caster_loc_start = (PoIftion of Duel_caster)
Set Duel_target = (Target unit of ability being cast)
Set Duel_target_loc_start = (PoIftion of Duel_target)
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
(Duel_target is A hero) Equal to TRUE
Then - Actions
Unit - Make Duel_caster Invulnerable
Unit - Make Duel_target Invulnerable
Unit - Remove All buffs conIfdered Magic or phyIfcs from Duel_caster (Inclure expiration timers, Exclure auras)
Unit - Remove All buffs conIfdered Magic ou phyIfcs from Duel_target (Inclure expiration timers, Exclure auras)
Special effect - Create a special effect attached to the overhead of Duel_caster uIfng Abilities\Spells\Human\Avatar\AvatarCaster.mdl
Special effect - Create a special effect attached to the overhead of Duel_target uIfng Abilities\Spells\Human\Avatar\AvatarCaster.mdl
Wait 1.00 seconds
Unit - Move Duel_caster instantly to (Center of Duel caster arrival <gen>), facing (Center of Duel target arrival <gen>)
Camera - Pan camera for (Owner of Duel_caster) to (Center of Duel caster arrival <gen>) over 0.00 seconds
Unit - Move Duel_target instantly to (Center of Duel target arrival <gen>), facing (Center of Duel caster arrival <gen>)
Camera - Pan camera for (Owner of Duel_target) to (Center of Duel target arrival <gen>) over 0.00 seconds
Special - Destroy (Last created special effect)
Wait 3.00 seconds
Unit - Make Duel_caster Vulnerable
Unit - Make Duel_target Vulnerable
Unit - Create 1 Dummy temp0 for Neutre PasIff at (Center of Texte Duel <gen>) facing Orientation batiment par defaut degrees
Set Duel_Iflence_dummy = (Last created unit)
Unit - Add a 1.00 second Generic expiration timer to Duel_Iflence_dummy
Unit - Add Iflence Duel dummy to Duel_Iflence_dummy
Unit - Order Duel_Iflence_dummy to Ranger sombre neutre - Iflence (Center of Texte Duel <gen>)
Wait 12.00 game-time seconds
Groupe unit - Pick every unit in (Units in Arene Duel <gen>) and do (Actions)
Boucle - Actions
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
(Duel_caster is alive) Egal to TRUE
Then - Actions
Unit - Set life of Duel_caster to 100.00%
Unit - Move Duel_caster instantly to Duel_caster_loc_start
Camera - Pan camera for (Owner of Duel_caster) to Duel_caster_loc_start over 0.00 seconds
Custom script: call RemoveLocation(udg_Duel_caster_loc_start)
Else - Actions
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
(Duel_target is alive) Egal to TRUE
Then - Actions
Unit - Set life of Duel_target to 100.00%
Unit - Move Duel_target instantly to Duel_target_loc_start
Camra - Pan camera for (Owner of Duel_target) to Duel_target_loc_start over 0.00 seconds
Custom script: call RemoveLocation(udg_Duel_target_loc_start)
If - Actions
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
((Duel_caster is alive) Egal to TRUE) and ((Duel_target is alive) Egal to TRUE)
Then - Actions
Unit - Move Duel_caster instantly to Duel_caster_loc_start
Camera - Pan camera for (Owner of Duel_caster) to Duel_caster_loc_start over 0.00 seconds
Unit - Move Duel_target instantly to Duel_target_loc_start
If ((Percentage life of Duel_target) Infrieur to 50.00) then do (Unit - Set life of Duel_target to 50.00%) else do (Do nothing)
Camra - Pan camera for (Owner of Duel_target) to Duel_target_loc_start over 0.00 seconds
Custom script: call RemoveLocation(udg_Duel_caster_loc_start)
Custom script: call RemoveLocation(udg_Duel_target_loc_start)
If - Actions
If – Actions
__________________________________________________________________________________________________________________________________________________________________________________________________________
Various problems related to this trigger:
- If both units are alive at the end of the 12 seconds they are both set to 100% hit points instead of a 50% hit point gain for the duel target.
- I haven't figured out how to heal a unit to 50% of its max hp.
- I used "wait", I know it's not right but I have absolutely no idea how to do it without. Especially since on my map it will be impossible for two players to be the same hero, is it really necessary to use an alternative to "wait"?
These are the triggers I tried to do without "wait":
-
Config wait duel launch
-
Evénements
-
Unité - A unit Initie l'effet d'une compétence
-
-
Conditions
-
(Ability being cast) Egal à Duel
-
-
Actions
-
Set Duel_launch_max_index = (Duel_launch_max_index + 1)
-
Set Duel_casterII[Duel_launch_max_index] = (Triggering unit)
-
Set Duel_caster_loc_startII[Duel_launch_max_index] = (Position of Duel_casterII[Duel_launch_max_index])
-
Set Duel_targetII[Duel_launch_max_index] = (Target unit of ability being cast)
-
Set Duel_target_loc_startII[Duel_launch_max_index] = (Position of Duel_targetII[Duel_launch_max_index])
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
Si - Conditions
-
Duel_launch_max_index Egal à 2
-
-
Alors - Actions
-
Déclencheur - Turn on Duel test without wait <gen>
-
-
Sinon - Actions
-
-
-
Config wait duel launch
Events
Unit - A unit Starts the effect of an ability
Conditions
(Ability being cast) Egal to Duel
Actions
Set Duel_launch_max_index = (Duel_launch_max_index + 1)
Set Duel_casterII[Duel_launch_max_index] = (Triggering unit)
Set Duel_caster_loc_startII[Duel_launch_max_index] = (Position of Duel_casterII[Duel_launch_max_index])
Set Duel_targetII[Duel_launch_max_index] = (Target unit of ability being cast)
Set Duel_target_loc_startII[Duel_launch_max_index] = (Position of Duel_targetII[Duel_launch_max_index])
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
Duel_launch_max_index Equal to 2
Alors - Actions
Trigger - Turn on Duel test without wait <gen>
Then – Actions
-
Duel test without wait
-
Evénements
-
Temps - Every 1.00 seconds of game time
-
-
Conditions
-
Actions
-
Unité - Make Duel_casterII[Duel_launch_current_index] Invulnérable
-
Unité - Make Duel_targetII[Duel_launch_current_index] Invulnérable
-
Unité - Remove Tous buffs considered Magique ou physique from Duel_casterII[Duel_launch_current_index] (Inclure expiration timers, Exclure auras)
-
Unité - Remove Tous buffs considered Magique ou physique from Duel_targetII[Duel_launch_current_index] (Inclure expiration timers, Exclure auras)
-
Effet spécial - Create a special effect attached to the overhead of Duel_casterII[Duel_launch_current_index] using Abilities\Spells\Human\Avatar\AvatarCaster.mdl
-
Effet spécial - Create a special effect attached to the overhead of Duel_targetII[Duel_launch_current_index] using Abilities\Spells\Human\Avatar\AvatarCaster.mdl
-
For each (Integer Duel_launch_current_index) from 1 to Duel_launch_max_index, do (Actions)
-
Boucle - Actions
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
Si - Conditions
-
(Duel_targetII[Duel_launch_current_index] is Un héros) Egal à TRUE
-
-
Alors - Actions
-
Unité - Move Duel_casterII[Duel_launch_current_index] instantly to (Center of Duel caster arrival <gen>), facing (Center of Duel target arrival <gen>)
-
Caméra - Pan camera for (Owner of Duel_casterII[Duel_launch_current_index]) to (Center of Duel caster arrival <gen>) over 0.00 seconds
-
Unité - Move Duel_targetII[Duel_launch_current_index] instantly to (Center of Duel target arrival <gen>), facing (Center of Duel caster arrival <gen>)
-
Caméra - Pan camera for (Owner of Duel_targetII[Duel_launch_current_index]) to (Center of Duel target arrival <gen>) over 0.00 seconds
-
Effet spécial - Destroy (Last created special effect)
-
Custom script: call RemoveLocation(udg_Duel_caster_loc_start[udg_Duel_launch_current_index])
-
Custom script: call RemoveLocation(udg_Duel_target_loc_start[udg_Duel_launch_current_index])
-
Set Duel_caster_loc_startII[Duel_launch_current_index] = (Position of Duel_casterII[Duel_launch_max_index])
-
Set Duel_casterII[Duel_launch_current_index] = Duel_casterII[Duel_launch_max_index]
-
Set Duel_target_loc_startII[Duel_launch_current_index] = Duel_target_loc_startII[Duel_launch_max_index]
-
Set Duel_targetII[Duel_launch_current_index] = Duel_targetII[Duel_launch_max_index]
-
Set Duel_launch_max_index = (Duel_launch_max_index - 1)
-
Set Duel_launch_current_index = (Duel_launch_current_index - 1)
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
Si - Conditions
-
Duel_launch_max_index Egal à 0
-
-
Alors - Actions
-
Déclencheur - Turn off (This trigger)
-
-
Sinon - Actions
-
-
-
Sinon - Actions
-
-
-
-
-
Duel test without wait
Events
Time - Every 1.00 seconds of game time
Conditions
Actions
Unit - Make Duel_casterII[Duel_launch_current_index] Invulnerable
Unit - Make Duel_targetII[Duel_launch_current_index] Invulnerable
Unit - Remove All buffs considered Magic ou physics from Duel_casterII[Duel_launch_current_index] (Inclure expiration timers, Exclure auras)
Unit - Remove All buffs considered Magic ou physics from Duel_targetII[Duel_launch_current_index] (Inclure expiration timers, Exclure auras)
Special effect - Create a special effect attached to the overhead of Duel_casterII[Duel_launch_current_index] using Abilities\Spells\Human\Avatar\AvatarCaster.mdl
Special effect - Create a special effect attached to the overhead of Duel_targetII[Duel_launch_current_index] using Abilities\Spells\Human\Avatar\AvatarCaster.mdl
For each (Integer Duel_launch_current_index) from 1 to Duel_launch_max_index, do (Actions)
Loop - Actions
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
if - Conditions
(Duel_targetII[Duel_launch_current_index] is A hero) Equal to TRUE
Then - Actions
Unit - Move Duel_casterII[Duel_launch_current_index] instantly to (Center of Duel caster arrival <gen>), facing (Center of Duel target arrival <gen>)
Camera - Pan camera for (Owner of Duel_casterII[Duel_launch_current_index]) to (Center of Duel caster arrival <gen>) over 0.00 seconds
Unit - Move Duel_targetII[Duel_launch_current_index] instantly to (Center of Duel target arrival <gen>), facing (Center of Duel caster arrival <gen>)
Camera - Pan camera for (Owner of Duel_targetII[Duel_launch_current_index]) to (Center of Duel target arrival <gen>) over 0.00 seconds
Special effect - Destroy (Last created special effect)
Custom script: call RemoveLocation(udg_Duel_caster_loc_start[udg_Duel_launch_current_index])
Custom script: call RemoveLocation(udg_Duel_target_loc_start[udg_Duel_launch_current_index])
Set Duel_caster_loc_startII[Duel_launch_current_index] = (Position of Duel_casterII[Duel_launch_max_index])
Set Duel_casterII[Duel_launch_current_index] = Duel_casterII[Duel_launch_max_index]
Set Duel_target_loc_startII[Duel_launch_current_index] = Duel_target_loc_startII[Duel_launch_max_index]
Set Duel_targetII[Duel_launch_current_index] = Duel_targetII[Duel_launch_max_index]
Set Duel_launch_max_index = (Duel_launch_max_index - 1)
Set Duel_launch_current_index = (Duel_launch_current_index - 1)
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
Duel_launch_max_index Equal to 0
Then - Actions
Trigger - Turn off (This trigger)
Else - Actions
Else – Actions
__________________________________________________________________________________________________________________________________________________________________________________________________________
I tried to use this tutorial (MUI Spells Using Artificial Waits), but I didn't understand everything and my trigger is not complete. Also the "wait 1.00 seconds" that I wanted to replace is actually linked to "Time - Every 1.00 seconds of game time" so I don't understand the purpose of the trigger.
I know there are different ways to do a dueling spell. It would have to be what is best for what I want to do.
If you know or have any ideas on how to solve my problem I would be very grateful.
Have a good day!
Last edited: