- Joined
- Jun 13, 2020
- Messages
- 16
Can someone help me to check my trigger?
Locatio is the unit_group variables
In fact,my ability is not completely broken.But just my unit spawn in the wrong position.
For example,when player 1 and player 2 use the spell simultaneously, although the enemies is killed by player 1,but the unit spawn at the player 2 target point of ability being cast,but the summoned unit is still belongs to player 1
Sry if my English is bad
Rich (BB code):
-
Blazing Pit
-

Events
-


Unit - A unit Starts the effect of an ability
-

Conditions
-


(Ability being cast) Equal to Blazing Pit
-

Actions
-


Set Player = (Player number of (Owner of (Triggering unit)))
-


Set caster[Player] = (Triggering unit)
-


Set Location[Player] = (Target point of ability being cast)
-


Unit - Create 1 Location for (Owner of caster[Player]) at Location[Player] facing Default building facing degrees
-


Unit - Add a (7.00 + (1.00 x (Real((Level of Blazing Pit for caster[Player]))))) second Generic expiration timer to (Last created unit)
-


Unit Group - Add (Last created unit) to Locatio_group[Player]
-


Trigger - Turn on Blazing Pit Copy <gen>
-
Blazing Pit Copy
-

Events
-


Unit - A unit Dies
-

Conditions
-


Or - Any (Conditions) are true
-



Conditions
-




(Unit-type of (Killing unit)) Equal to |c00FF0000Flaming Sorceress|r
-




(Unit-type of (Killing unit)) Equal to Flaming warior (Level 1)
-




(Unit-type of (Killing unit)) Equal to Flaming warior (Level 2)
-




(Unit-type of (Killing unit)) Equal to Flaming warior (Level 3)
-

Actions
-


If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-



If - Conditions
-




(All units of Locatio_group[Player] are dead) Equal to False
-



Then - Actions
-




If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-





If - Conditions
-






(All units of Locatio_group[Player] are dead) Equal to False
-





Then - Actions
-






If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-







If - Conditions
-








(Level of Blazing Pit for caster[Player]) Equal to 1
-








(Number of living Flaming warior (Level 1) units owned by (Owner of caster[Player])) Less than or equal to 3
-








Or - Any (Conditions) are true
-









Conditions
-










(Unit-type of (Dying unit)) Equal to Gargolyte(Lv.2)
-










(Unit-type of (Dying unit)) Equal to Ghoul(Lv.2)
-










(Unit-type of (Dying unit)) Equal to Skeleton Warrior(Lv.2)
-










(Unit-type of (Dying unit)) Equal to Necromancer(Lv.3)
-










(Unit-type of (Dying unit)) Equal to Chaos Flame(Lv.3)
-










(Unit-type of (Dying unit)) Equal to Dead Spirit(Lv.3)
-










(Unit-type of (Dying unit)) Equal to Dead Spirit(Lv.3)
-










(Unit-type of (Dying unit)) Equal to Banshee(Lv.4)
-










(Unit-type of (Dying unit)) Equal to Shadow Rider(Lv.4)
-










(Unit-type of (Dying unit)) Equal to Lonely Ghost(Lv.4)
-










(Unit-type of (Dying unit)) Equal to Shadow Destroyer(Lv.5)
-










(Unit-type of (Dying unit)) Equal to Balnazzar(Lv.5)
-










(Unit-type of (Dying unit)) Equal to Blazing Skeleton(Lv.5)
-










(Unit-type of (Dying unit)) Equal to Frost Wyrm(Lv.5)
-







Then - Actions
-








Unit Group - Pick every unit in Locatio_group[Player] and do (Actions)
-









Loop - Actions
-










Unit - Create 1 Flaming warior (Level 1) for (Owner of caster[Player]) at (Position of (Picked unit)) facing Default building facing degrees
-










Special Effect - Create a special effect at (Position of (Last created unit)) using Abilities\Spells\Other\Incinerate\FireLordDeathExplode.mdl
-










Special Effect - Destroy (Last created special effect)
-










Unit - Add a 10.00 second Generic expiration timer to (Last created unit)
-







Else - Actions
-






If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-







If - Conditions
-








And - All (Conditions) are true
-









Conditions
-










(Level of Blazing Pit for caster[Player]) Equal to 2
-










(Number of living Flaming warior (Level 2) units owned by (Owner of caster[Player])) Less than or equal to 5
-










Or - Any (Conditions) are true
-











Conditions
-












(Unit-type of (Dying unit)) Equal to Gargolyte(Lv.2)
-












(Unit-type of (Dying unit)) Equal to Ghoul(Lv.2)
-












(Unit-type of (Dying unit)) Equal to Skeleton Warrior(Lv.2)
-












(Unit-type of (Dying unit)) Equal to Necromancer(Lv.3)
-












(Unit-type of (Dying unit)) Equal to Chaos Flame(Lv.3)
-












(Unit-type of (Dying unit)) Equal to Dead Spirit(Lv.3)
-












(Unit-type of (Dying unit)) Equal to Dead Spirit(Lv.3)
-












(Unit-type of (Dying unit)) Equal to Banshee(Lv.4)
-












(Unit-type of (Dying unit)) Equal to Shadow Rider(Lv.4)
-












(Unit-type of (Dying unit)) Equal to Lonely Ghost(Lv.4)
-












(Unit-type of (Dying unit)) Equal to Shadow Destroyer(Lv.5)
-












(Unit-type of (Dying unit)) Equal to Balnazzar(Lv.5)
-












(Unit-type of (Dying unit)) Equal to Blazing Skeleton(Lv.5)
-












(Unit-type of (Dying unit)) Equal to Frost Wyrm(Lv.5)
-







Then - Actions
-








Unit Group - Pick every unit in Locatio_group[Player] and do (Actions)
-









Loop - Actions
-










Unit - Create 1 Flaming warior (Level 2) for (Owner of caster[Player]) at (Position of (Picked unit)) facing Default building facing degrees
-










Special Effect - Create a special effect at (Position of (Last created unit)) using Abilities\Spells\Other\Incinerate\FireLordDeathExplode.mdl
-










Special Effect - Destroy (Last created special effect)
-










Unit - Add a 16.00 second Generic expiration timer to (Last created unit)
-







Else - Actions
-






If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-







If - Conditions
-








And - All (Conditions) are true
-









Conditions
-










(Level of Blazing Pit for caster[Player]) Equal to 3
-










(Number of living Flaming warior (Level 3) units owned by (Owner of caster[Player])) Less than or equal to 7
-










Or - Any (Conditions) are true
-











Conditions
-












(Unit-type of (Dying unit)) Equal to Gargolyte(Lv.2)
-












(Unit-type of (Dying unit)) Equal to Ghoul(Lv.2)
-












(Unit-type of (Dying unit)) Equal to Skeleton Warrior(Lv.2)
-












(Unit-type of (Dying unit)) Equal to Necromancer(Lv.3)
-












(Unit-type of (Dying unit)) Equal to Chaos Flame(Lv.3)
-












(Unit-type of (Dying unit)) Equal to Dead Spirit(Lv.3)
-












(Unit-type of (Dying unit)) Equal to Banshee(Lv.4)
-












(Unit-type of (Dying unit)) Equal to Shadow Rider(Lv.4)
-












(Unit-type of (Dying unit)) Equal to Lonely Ghost(Lv.4)
-












(Unit-type of (Dying unit)) Equal to Shadow Destroyer(Lv.5)
-












(Unit-type of (Dying unit)) Equal to Balnazzar(Lv.5)
-












(Unit-type of (Dying unit)) Equal to Blazing Skeleton(Lv.5)
-












(Unit-type of (Dying unit)) Equal to Frost Wyrm(Lv.5)
-







Then - Actions
-








Unit Group - Pick every unit in Locatio_group[Player] and do (Actions)
-









Loop - Actions
-










Unit - Create 1 Flaming warior (Level 3) for (Owner of caster[(Player number of (Owner of (Killing unit)))]) at (Position of (Picked unit)) facing Default building facing degrees
-










Special Effect - Create a special effect at (Position of (Last created unit)) using Objects\Spawnmodels\Human\FragmentationShards\FragBoomSpawn.mdl
-










Special Effect - Destroy (Last created special effect)
-










Unit - Add a 24.00 second Generic expiration timer to (Last created unit)
-







Else - Actions
-





Else - Actions
-



Else - Actions
-


If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-



If - Conditions
-




(All units of Locatio_group[Player] are dead) Equal to True
-



Then - Actions
-




Unit Group - Remove all units of Locatio_group[Player] from Locatio_group[Player]
-




Custom script: set udg_Player =0
-




Custom script: call DestroyGroup(udg_Locatio_group[udg_Player])
-




Custom script: call RemoveLocation(udg_Location[udg_Player])
-




Trigger - Turn off Blazing Pit Copy <gen>
-



Else - Actions
Locatio is the unit_group variables
In fact,my ability is not completely broken.But just my unit spawn in the wrong position.
For example,when player 1 and player 2 use the spell simultaneously, although the enemies is killed by player 1,but the unit spawn at the player 2 target point of ability being cast,but the summoned unit is still belongs to player 1
Sry if my English is bad
Last edited: