- Joined
- Apr 15, 2016
- Messages
- 118
This may be a silly and have an obvious answer, but I just can't remember.
Suppose you have a Trigger
Spell 1
Events - Starts the effect of an Ability
Conditions - Ability being cast equal to X
Actions - Set Mui = Mui + 1
Set Caster[Mui] = Tiger unit
Set AoE[Mui] = 666
If Mui is 1
Trigger turn on DamageLoop
And another Trigger
Spell 2
Events - Starts the effect of an Ability
Conditions - Ability being cast equal to Y
Actions - Set Mui = Mui + 1
Set Caster[Mui] = Tiger unit
Set AoE[Mui] = 300
If mui is 1
Trigger turn on DamageLoop
This being the loop trigger
DamageLoop
Event - Every 800 seconds
Conditions
Action - For integer Nui to 1 to Mui
Damage enemies of caster[Nui] at Aoe[Nui]
Now, question is, both spells, Y and X use the same variables and call the same loop trigger. I suppose these work fine, or do I have to create new Variables and looping for each spell, considering they have different values in their variables (which is why I can't use Multiple Conditions set to ability being cast equal to X and Y)? Instead of Ability being usable by more than one unit, some sort of Trigger being used by more than one Ability. A Multi Trigger Instancibility.
Suppose you have a Trigger
Spell 1
Events - Starts the effect of an Ability
Conditions - Ability being cast equal to X
Actions - Set Mui = Mui + 1
Set Caster[Mui] = Tiger unit
Set AoE[Mui] = 666
If Mui is 1
Trigger turn on DamageLoop
And another Trigger
Spell 2
Events - Starts the effect of an Ability
Conditions - Ability being cast equal to Y
Actions - Set Mui = Mui + 1
Set Caster[Mui] = Tiger unit
Set AoE[Mui] = 300
If mui is 1
Trigger turn on DamageLoop
This being the loop trigger
DamageLoop
Event - Every 800 seconds
Conditions
Action - For integer Nui to 1 to Mui
Damage enemies of caster[Nui] at Aoe[Nui]
Now, question is, both spells, Y and X use the same variables and call the same loop trigger. I suppose these work fine, or do I have to create new Variables and looping for each spell, considering they have different values in their variables (which is why I can't use Multiple Conditions set to ability being cast equal to X and Y)? Instead of Ability being usable by more than one unit, some sort of Trigger being used by more than one Ability. A Multi Trigger Instancibility.