Alright im making an AOS map and i've run into an annoying problem.
I have this trigger:
EDIT: Trigger isrking now, re-uploaded trigger. BUT
Hurray! A new problem arises. Howcome when i attack with the buff i dont damage/heal surounding enemies/allies, and i dont see special effects?
I have this trigger:
-
TF Damage Heal
-
Events
- Unit - A unit Is attacked
-
Conditions
- ((Attacking unit) has buff Thunder Fists ) Equal to True
-
Actions
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
- (Level of Thunder Fists for (Attacking unit)) Equal to 1
-
Then - Actions
- Set L = (Position of (Casting unit))
- Custom script: set bj_wantDestroyGroup = true
-
Unit Group - Pick every unit in (Units within 512.00 of L matching (((Matching unit) belongs to an ally of (Owner of (Attacking unit))) Equal to True)) and do (Actions)
-
Loop - Actions
- Unit Group - Add (Picked unit) to Group_Ability_TF[1]
- Set Unit_Ability_TF[1] = (Random unit from Group_Ability_TF[1])
- Unit - Set life of Unit_Ability_TF[1] to ((Life of Unit_Ability_TF[1]) + 20.00)
- Set L = (Position of Unit_Ability_TF[1])
- Special Effect - Create a special effect at L using Abilities\Spells\Human\HolyBolt\HolyBoltSpecialArt.mdl
- Custom script: call RemoveLocation(udg_L)
- Unit Group - Remove Unit_Ability_TF[1] from Group_Ability_TF[1]
- Set Unit_Ability_TF[1] = (Random unit from Group_Ability_TF[1])
- Unit - Set life of Unit_Ability_TF[1] to ((Life of Unit_Ability_TF[1]) + 20.00)
- Set L = (Position of Unit_Ability_TF[1])
- Special Effect - Create a special effect at L using Abilities\Spells\Human\HolyBolt\HolyBoltSpecialArt.mdl
- Special Effect - Destroy (Last created special effect)
- Custom script: call RemoveLocation(udg_L)
- Unit Group - Remove Unit_Ability_TF[1] from Group_Ability_TF[1]
-
Loop - Actions
- Custom script: call RemoveLocation(udg_L)
- Set L = (Position of (Casting unit))
- Custom script: set bj_wantDestroyGroup = true
-
Unit Group - Pick every unit in (Units within 512.00 of L matching (((Matching unit) belongs to an ally of (Owner of (Attacking unit))) Equal to False)) and do (Actions)
-
Loop - Actions
- Custom script: call RemoveLocation(udg_L)
- Unit Group - Add (Picked unit) to Group_Ability_TF[2]
- Set Unit_Ability_TF[2] = (Random unit from Group_Ability_TF[2])
- Unit - Set life of Unit_Ability_TF[2] to ((Life of Unit_Ability_TF[2]) - 20.00)
- Set L = (Position of Unit_Ability_TF[2])
- Special Effect - Create a special effect at L using Abilities\Spells\Human\HolyBolt\HolyBoltSpecialArt.mdl
- Custom script: call RemoveLocation(udg_L)
- Unit Group - Remove Unit_Ability_TF[2] from Group_Ability_TF[2]
- Set Unit_Ability_TF[2] = (Random unit from Group_Ability_TF[2])
- Unit - Set life of Unit_Ability_TF[2] to ((Life of Unit_Ability_TF[2]) - 20.00)
- Set L = (Position of Unit_Ability_TF[2])
- Special Effect - Create a special effect at L using Abilities\Spells\Items\OrbVenom\OrbVenomSpecialArt.mdl
- Special Effect - Destroy (Last created special effect)
- Custom script: call RemoveLocation(udg_L)
- Unit Group - Remove Unit_Ability_TF[2] from Group_Ability_TF[2]
-
Loop - Actions
- Else - Actions
-
If - Conditions
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
- (Level of Thunder Fists for (Attacking unit)) Equal to 2
-
Then - Actions
- Set L = (Position of (Casting unit))
- Custom script: set bj_wantDestroyGroup = true
-
Unit Group - Pick every unit in (Units within 512.00 of L matching (((Matching unit) belongs to an ally of (Owner of (Attacking unit))) Equal to True)) and do (Actions)
-
Loop - Actions
- Custom script: call RemoveLocation(udg_L)
- Unit Group - Add (Picked unit) to Group_Ability_TF[1]
- Set Unit_Ability_TF[1] = (Random unit from Group_Ability_TF[1])
- Unit - Set life of Unit_Ability_TF[1] to ((Life of Unit_Ability_TF[1]) + 40.00)
- Set L = (Position of Unit_Ability_TF[1])
- Special Effect - Create a special effect at L using Abilities\Spells\Human\HolyBolt\HolyBoltSpecialArt.mdl
- Special Effect - Destroy (Last created special effect)
- Custom script: call RemoveLocation(udg_L)
- Unit Group - Remove Unit_Ability_TF[1] from Group_Ability_TF[1]
- Set Unit_Ability_TF[1] = (Random unit from Group_Ability_TF[1])
- Unit - Set life of Unit_Ability_TF[1] to ((Life of Unit_Ability_TF[1]) + 40.00)
- Set L = (Position of Unit_Ability_TF[1])
- Special Effect - Create a special effect at L using Abilities\Spells\Human\HolyBolt\HolyBoltSpecialArt.mdl
- Special Effect - Destroy (Last created special effect)
- Custom script: call RemoveLocation(udg_L)
- Unit Group - Remove Unit_Ability_TF[1] from Group_Ability_TF[1]
- Set Unit_Ability_TF[1] = (Random unit from Group_Ability_TF[1])
- Unit - Set life of Unit_Ability_TF[1] to ((Life of Unit_Ability_TF[1]) + 40.00)
- Set L = (Position of Unit_Ability_TF[1])
- Special Effect - Create a special effect at L using Abilities\Spells\Human\HolyBolt\HolyBoltSpecialArt.mdl
- Special Effect - Destroy (Last created special effect)
- Custom script: call RemoveLocation(udg_L)
- Unit Group - Remove Unit_Ability_TF[1] from Group_Ability_TF[1]
-
Loop - Actions
- Set L = (Position of (Casting unit))
- Custom script: set bj_wantDestroyGroup = true
-
Unit Group - Pick every unit in (Units within 512.00 of L matching (((Matching unit) belongs to an ally of (Owner of (Attacking unit))) Equal to False)) and do (Actions)
-
Loop - Actions
- Custom script: call RemoveLocation(udg_L)
- Unit Group - Add (Picked unit) to Group_Ability_TF[2]
- Set Unit_Ability_TF[2] = (Random unit from Group_Ability_TF[2])
- Unit - Set life of Unit_Ability_TF[2] to ((Life of Unit_Ability_TF[2]) - 40.00)
- Set L = (Position of Unit_Ability_TF[2])
- Special Effect - Create a special effect at L using Abilities\Spells\Human\HolyBolt\HolyBoltSpecialArt.mdl
- Special Effect - Destroy (Last created special effect)
- Custom script: call RemoveLocation(udg_L)
- Unit Group - Remove Unit_Ability_TF[2] from Group_Ability_TF[2]
- Set Unit_Ability_TF[2] = (Random unit from Group_Ability_TF[2])
- Unit - Set life of Unit_Ability_TF[2] to ((Life of Unit_Ability_TF[2]) - 40.00)
- Set L = (Position of Unit_Ability_TF[2])
- Special Effect - Create a special effect at L using Abilities\Spells\Human\HolyBolt\HolyBoltSpecialArt.mdl
- Special Effect - Destroy (Last created special effect)
- Custom script: call RemoveLocation(udg_L)
- Unit Group - Remove Unit_Ability_TF[2] from Group_Ability_TF[2]
- Set Unit_Ability_TF[2] = (Random unit from Group_Ability_TF[2])
- Unit - Set life of Unit_Ability_TF[2] to ((Life of Unit_Ability_TF[2]) - 40.00)
- Set L = (Position of Unit_Ability_TF[2])
- Special Effect - Create a special effect at L using Abilities\Spells\Human\HolyBolt\HolyBoltSpecialArt.mdl
- Special Effect - Destroy (Last created special effect)
- Custom script: call RemoveLocation(udg_L)
- Unit Group - Remove Unit_Ability_TF[2] from Group_Ability_TF[2]
-
Loop - Actions
- Else - Actions
-
If - Conditions
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
- (Level of Thunder Fists for (Attacking unit)) Equal to 3
-
Then - Actions
- Set L = (Position of (Casting unit))
- Custom script: set bj_wantDestroyGroup = true
-
Unit Group - Pick every unit in (Units within 512.00 of L matching (((Matching unit) belongs to an ally of (Owner of (Attacking unit))) Equal to True)) and do (Actions)
-
Loop - Actions
- Custom script: call RemoveLocation(udg_L)
- Unit Group - Add (Picked unit) to Group_Ability_TF[1]
- Set Unit_Ability_TF[1] = (Random unit from Group_Ability_TF[1])
- Unit - Set life of Unit_Ability_TF[1] to ((Life of Unit_Ability_TF[1]) + 60.00)
- Set L = (Position of Unit_Ability_TF[1])
- Special Effect - Create a special effect at L using Abilities\Spells\Human\HolyBolt\HolyBoltSpecialArt.mdl
- Special Effect - Destroy (Last created special effect)
- Custom script: call RemoveLocation(udg_L)
- Unit Group - Remove Unit_Ability_TF[1] from Group_Ability_TF[1]
- Set Unit_Ability_TF[1] = (Random unit from Group_Ability_TF[1])
- Unit - Set life of Unit_Ability_TF[1] to ((Life of Unit_Ability_TF[1]) + 60.00)
- Set L = (Position of Unit_Ability_TF[1])
- Special Effect - Create a special effect at L using Abilities\Spells\Human\HolyBolt\HolyBoltSpecialArt.mdl
- Special Effect - Destroy (Last created special effect)
- Custom script: call RemoveLocation(udg_L)
- Unit Group - Remove Unit_Ability_TF[1] from Group_Ability_TF[1]
- Set Unit_Ability_TF[1] = (Random unit from Group_Ability_TF[1])
- Unit - Set life of Unit_Ability_TF[1] to ((Life of Unit_Ability_TF[1]) + 60.00)
- Set L = (Position of Unit_Ability_TF[1])
- Special Effect - Create a special effect at L using Abilities\Spells\Human\HolyBolt\HolyBoltSpecialArt.mdl
- Special Effect - Destroy (Last created special effect)
- Custom script: call RemoveLocation(udg_L)
- Unit Group - Remove Unit_Ability_TF[1] from Group_Ability_TF[1]
- Set Unit_Ability_TF[1] = (Random unit from Group_Ability_TF[1])
- Unit - Set life of Unit_Ability_TF[1] to ((Life of Unit_Ability_TF[1]) + 60.00)
- Set L = (Position of Unit_Ability_TF[1])
- Special Effect - Create a special effect at L using Abilities\Spells\Human\HolyBolt\HolyBoltSpecialArt.mdl
- Special Effect - Destroy (Last created special effect)
- Custom script: call RemoveLocation(udg_L)
- Unit Group - Remove Unit_Ability_TF[1] from Group_Ability_TF[1]
-
Loop - Actions
- Set L = (Position of (Casting unit))
- Custom script: set bj_wantDestroyGroup = true
-
Unit Group - Pick every unit in (Units within 512.00 of L matching (((Matching unit) belongs to an ally of (Owner of (Attacking unit))) Equal to False)) and do (Actions)
-
Loop - Actions
- Custom script: call RemoveLocation(udg_L)
- Unit Group - Add (Picked unit) to Group_Ability_TF[2]
- Set Unit_Ability_TF[2] = (Random unit from Group_Ability_TF[2])
- Unit - Set life of Unit_Ability_TF[2] to ((Life of Unit_Ability_TF[2]) - 60.00)
- Set L = (Position of Unit_Ability_TF[2])
- Special Effect - Create a special effect at L using Abilities\Spells\Human\HolyBolt\HolyBoltSpecialArt.mdl
- Special Effect - Destroy (Last created special effect)
- Custom script: call RemoveLocation(udg_L)
- Unit Group - Remove Unit_Ability_TF[2] from Group_Ability_TF[2]
- Set Unit_Ability_TF[2] = (Random unit from Group_Ability_TF[2])
- Unit - Set life of Unit_Ability_TF[2] to ((Life of Unit_Ability_TF[2]) - 60.00)
- Set L = (Position of Unit_Ability_TF[2])
- Special Effect - Create a special effect at L using Abilities\Spells\Human\HolyBolt\HolyBoltSpecialArt.mdl
- Special Effect - Destroy (Last created special effect)
- Custom script: call RemoveLocation(udg_L)
- Unit Group - Remove Unit_Ability_TF[2] from Group_Ability_TF[2]
- Set Unit_Ability_TF[2] = (Random unit from Group_Ability_TF[2])
- Unit - Set life of Unit_Ability_TF[2] to ((Life of Unit_Ability_TF[2]) - 60.00)
- Set L = (Position of Unit_Ability_TF[2])
- Special Effect - Create a special effect at L using Abilities\Spells\Human\HolyBolt\HolyBoltSpecialArt.mdl
- Special Effect - Destroy (Last created special effect)
- Custom script: call RemoveLocation(udg_L)
- Unit Group - Remove Unit_Ability_TF[2] from Group_Ability_TF[2]
- Set Unit_Ability_TF[2] = (Random unit from Group_Ability_TF[2])
- Unit - Set life of Unit_Ability_TF[2] to ((Life of Unit_Ability_TF[2]) - 60.00)
- Set L = (Position of Unit_Ability_TF[2])
- Special Effect - Create a special effect at L using Abilities\Spells\Human\HolyBolt\HolyBoltSpecialArt.mdl
- Special Effect - Destroy (Last created special effect)
- Custom script: call RemoveLocation(udg_L)
- Unit Group - Remove Unit_Ability_TF[2] from Group_Ability_TF[2]
-
Loop - Actions
- Else - Actions
-
If - Conditions
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
- (Level of Thunder Fists for (Attacking unit)) Equal to 4
-
Then - Actions
- Set L = (Position of (Casting unit))
- Custom script: set bj_wantDestroyGroup = true
-
Unit Group - Pick every unit in (Units within 512.00 of L matching (((Matching unit) belongs to an ally of (Owner of (Attacking unit))) Equal to False)) and do (Actions)
-
Loop - Actions
- Custom script: call RemoveLocation(udg_L)
- Unit Group - Add (Picked unit) to Group_Ability_TF[1]
- Set Unit_Ability_TF[1] = (Random unit from Group_Ability_TF[1])
- Unit - Set life of Unit_Ability_TF[1] to ((Life of Unit_Ability_TF[1]) + 80.00)
- Set L = (Position of Unit_Ability_TF[1])
- Special Effect - Create a special effect at L using Abilities\Spells\Human\HolyBolt\HolyBoltSpecialArt.mdl
- Special Effect - Destroy (Last created special effect)
- Custom script: call RemoveLocation(udg_L)
- Unit Group - Remove Unit_Ability_TF[1] from Group_Ability_TF[1]
- Set Unit_Ability_TF[1] = (Random unit from Group_Ability_TF[1])
- Unit - Set life of Unit_Ability_TF[1] to ((Life of Unit_Ability_TF[1]) + 80.00)
- Set L = (Position of Unit_Ability_TF[1])
- Special Effect - Create a special effect at L using Abilities\Spells\Human\HolyBolt\HolyBoltSpecialArt.mdl
- Special Effect - Destroy (Last created special effect)
- Custom script: call RemoveLocation(udg_L)
- Unit Group - Remove Unit_Ability_TF[1] from Group_Ability_TF[1]
- Set Unit_Ability_TF[1] = (Random unit from Group_Ability_TF[1])
- Unit - Set life of Unit_Ability_TF[1] to ((Life of Unit_Ability_TF[1]) + 80.00)
- Set L = (Position of Unit_Ability_TF[1])
- Special Effect - Create a special effect at L using Abilities\Spells\Human\HolyBolt\HolyBoltSpecialArt.mdl
- Special Effect - Destroy (Last created special effect)
- Custom script: call RemoveLocation(udg_L)
- Unit Group - Remove Unit_Ability_TF[1] from Group_Ability_TF[1]
- Set Unit_Ability_TF[1] = (Random unit from Group_Ability_TF[1])
- Unit - Set life of Unit_Ability_TF[1] to ((Life of Unit_Ability_TF[1]) + 80.00)
- Set L = (Position of Unit_Ability_TF[1])
- Special Effect - Create a special effect at L using Abilities\Spells\Human\HolyBolt\HolyBoltSpecialArt.mdl
- Special Effect - Destroy (Last created special effect)
- Custom script: call RemoveLocation(udg_L)
- Unit Group - Remove Unit_Ability_TF[1] from Group_Ability_TF[1]
- Set Unit_Ability_TF[1] = (Random unit from Group_Ability_TF[1])
- Unit - Set life of Unit_Ability_TF[1] to ((Life of Unit_Ability_TF[1]) + 80.00)
- Set L = (Position of Unit_Ability_TF[1])
- Special Effect - Create a special effect at L using Abilities\Spells\Human\HolyBolt\HolyBoltSpecialArt.mdl
- Special Effect - Destroy (Last created special effect)
- Custom script: call RemoveLocation(udg_L)
- Unit Group - Remove Unit_Ability_TF[1] from Group_Ability_TF[1]
-
Loop - Actions
- Set L = (Position of (Casting unit))
- Custom script: set bj_wantDestroyGroup = true
-
Unit Group - Pick every unit in (Units within 512.00 of L matching (((Matching unit) belongs to an ally of (Owner of (Attacking unit))) Equal to False)) and do (Actions)
-
Loop - Actions
- Custom script: call RemoveLocation(udg_L)
- Unit Group - Add (Picked unit) to Group_Ability_TF[2]
- Set Unit_Ability_TF[2] = (Random unit from Group_Ability_TF[2])
- Unit - Set life of Unit_Ability_TF[2] to ((Life of Unit_Ability_TF[2]) - 80.00)
- Set L = (Position of Unit_Ability_TF[2])
- Special Effect - Create a special effect at L using Abilities\Spells\Human\HolyBolt\HolyBoltSpecialArt.mdl
- Special Effect - Destroy (Last created special effect)
- Custom script: call RemoveLocation(udg_L)
- Unit Group - Remove Unit_Ability_TF[2] from Group_Ability_TF[2]
- Set Unit_Ability_TF[2] = (Random unit from Group_Ability_TF[2])
- Unit - Set life of Unit_Ability_TF[2] to ((Life of Unit_Ability_TF[2]) - 80.00)
- Set L = (Position of Unit_Ability_TF[2])
- Special Effect - Create a special effect at L using Abilities\Spells\Human\HolyBolt\HolyBoltSpecialArt.mdl
- Special Effect - Destroy (Last created special effect)
- Custom script: call RemoveLocation(udg_L)
- Unit Group - Remove Unit_Ability_TF[2] from Group_Ability_TF[2]
- Set Unit_Ability_TF[2] = (Random unit from Group_Ability_TF[2])
- Unit - Set life of Unit_Ability_TF[2] to ((Life of Unit_Ability_TF[2]) - 80.00)
- Set L = (Position of Unit_Ability_TF[2])
- Special Effect - Create a special effect at L using Abilities\Spells\Human\HolyBolt\HolyBoltSpecialArt.mdl
- Special Effect - Destroy (Last created special effect)
- Custom script: call RemoveLocation(udg_L)
- Unit Group - Remove Unit_Ability_TF[2] from Group_Ability_TF[2]
- Set Unit_Ability_TF[2] = (Random unit from Group_Ability_TF[2])
- Unit - Set life of Unit_Ability_TF[2] to ((Life of Unit_Ability_TF[2]) - 80.00)
- Set L = (Position of Unit_Ability_TF[2])
- Special Effect - Create a special effect at L using Abilities\Spells\Human\HolyBolt\HolyBoltSpecialArt.mdl
- Special Effect - Destroy (Last created special effect)
- Custom script: call RemoveLocation(udg_L)
- Unit Group - Remove Unit_Ability_TF[2] from Group_Ability_TF[2]
- Set Unit_Ability_TF[2] = (Random unit from Group_Ability_TF[2])
- Unit - Set life of Unit_Ability_TF[2] to ((Life of Unit_Ability_TF[2]) - 80.00)
- Set L = (Position of Unit_Ability_TF[2])
- Special Effect - Create a special effect at L using Abilities\Spells\Human\HolyBolt\HolyBoltSpecialArt.mdl
- Special Effect - Destroy (Last created special effect)
- Custom script: call RemoveLocation(udg_L)
- Unit Group - Remove Unit_Ability_TF[2] from Group_Ability_TF[2]
-
Loop - Actions
- Else - Actions
-
If - Conditions
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
Events
EDIT: Trigger isrking now, re-uploaded trigger. BUT
Hurray! A new problem arises. Howcome when i attack with the buff i dont damage/heal surounding enemies/allies, and i dont see special effects?
Attachments
Last edited: