Hi friends, i need help. Why do i have Leaks when i activate these variables? Try putting the same variable for all and even Array does not work, provided that the active and start playing, begins to unplayable Leaks. How do i get those active variables without Leaks?
Divine Shield:
Spell_Group is the test variable Iput to them.
Divine Shield:
-
Divine Shield Cast
-
Events
- Unit - A unit Starts the effect of an ability
-
Conditions
- (Ability being cast) Equal to Divine Shield (Custom; Bandit Lord)
-
Actions
- Set DivineShield_Caster = (Triggering unit)
- Trigger - Turn on Divine Shield Loop <gen>
-
Events
-
Divine Shield Loop
-
Events
- Time - Every 0.10 seconds of game time
- Conditions
-
Actions
- Set DivineShield_Group = (Units in (Playable map area)) ---> (DEACTIVATED)
- Set Spell_Group = (Units in (Playable map area)) ---> (TESTING)
-
Unit Group - Pick every unit in Spell_Group and do (Actions)
-
Loop - Actions
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
- ((Picked unit) has buff Divine Shield) Equal to True
-
Then - Actions
- Unit - Add Divine Shield (Spellbook; Magic Resistance) to (Picked unit)
-
Else - Actions
- Unit - Remove Divine Shield (Spellbook; Magic Resistance) from (Picked unit)
-
If - Conditions
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
Loop - Actions
- Custom script: call DestroyGroup(udg_DivineShield_Group) ---> (DEACTIVATED)
- Custom script: call DestroyGroup(udg_Spell_Group) ---> (TESTING)
-
Events
-
Thorns Aura New
-
Events
- Time - Every 0.10 seconds of game time
- Conditions
-
Actions
- Set ThornsAura_Group = (Units in (Playable map area)) ---> (DEACTIVATED)
- Set Spell_Group = (Units in (Playable map area)) ---> (TESTING)
-
Unit Group - Pick every unit in Spell_Group and do (Actions)
-
Loop - Actions
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
- ((Picked unit) has buff Thorns Aura) Equal to True
-
Then - Actions
- Unit - Add Thorns Aura (Spellbook) to (Picked unit)
-
Else - Actions
- Unit - Remove Thorns Aura (Spellbook) from (Picked unit)
-
If - Conditions
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
Loop - Actions
- Custom script: call DestroyGroup(udg_ThornsAura_Group) ---> (DEACTIVATED)
- Custom script: call DestroyGroup(udg_Spell_Group) ---> (TESTING)
-
Events
-
Inner Fire Cast
-
Events
- Unit - A unit Starts the effect of an ability
-
Conditions
-
Or - Any (Conditions) are true
-
Conditions
- (Ability being cast) Equal to Inner Fire (Custom; Blood Knight)
- (Ability being cast) Equal to Inner Fire (Custom; Forest Troll High Priest)
-
Conditions
-
Or - Any (Conditions) are true
-
Actions
- Set InnerFire_Caster = (Triggering unit)
- Trigger - Turn on Inner Fire Loop <gen>
-
Events
-
Inner Fire Loop
-
Events
- Time - Every 0.10 seconds of game time
- Conditions
-
Actions
- Set InnerFire_Group = (Units in (Playable map area)) ---> (DEACTIVATED)
- Set Spell_Group = (Units in (Playable map area)) ---> (TESTING)
-
Unit Group - Pick every unit in Spell_Group and do (Actions)
-
Loop - Actions
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
- ((Picked unit) has buff Inner Fire) Equal to True
-
Then - Actions
- Unit - Add Inner Fire (Spellbook) to (Picked unit)
- Unit - Set level of Inner Fire (Dummy) for (Picked unit) to (Level of Inner Fire (Custom; Forest Troll High Priest) for InnerFire_Caster)
- Unit - Set level of Inner Fire (Dummy) for (Picked unit) to (Level of Inner Fire (Custom; Blood Knight) for InnerFire_Caster)
-
Else - Actions
- Unit - Remove Inner Fire (Spellbook) from (Picked unit)
-
If - Conditions
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
Loop - Actions
- Custom script: call DestroyGroup(udg_InnerFire_Group) ---> (DEACTIVATED)
- Custom script: call DestroyGroup(udg_Spell_Group) ---> (TESTING)
-
Events
Spell_Group is the test variable Iput to them.