Can someone help me fix this trigger, for some reason it affects my whole map even tho it only needs to affect a specific region ?
And by that i mean every time a unit dies from player 12 who ain't matching the region the hero gets instant moved to baseRegion, and it needs to only affects the region area which is the fightRegion
And by that i mean every time a unit dies from player 12 who ain't matching the region the hero gets instant moved to baseRegion, and it needs to only affects the region area which is the fightRegion
-
AllUnitsAreDead
-
Events
-
Unit - A unit owned by Player 12 (Brown) Dies
-
-
Conditions
-
Actions
-
Set tempGroup = (Units in fightRegion matching ((((Matching unit) is alive) Equal to True) and ((Owner of (Matching unit)) Equal to Player 12 (Brown))))
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
-
(Number of units in tempGroup) Equal to 0
-
-
Then - Actions
-
Set tempPoint = (Center of baseRegion)
-
For each (Integer A) from 0 to 10, do (Actions)
-
Loop - Actions
-
Unit - Move hero[4] instantly to tempPoint
-
-
-
Custom script: call RemoveLocation(udg_tempPoint)
-
-
Else - Actions
-
-
Custom script: call DestroyGroup(udg_tempGroup)
-
-
-
SettingUpVariables
-
Events
-
Map initialization
-
-
Conditions
-
Actions
-
Set baseRegion = Carmara 2 <gen>
-
Set fightRegion = Fighting Region <gen>
-
Set hero[1] = Alexandra 0019 <gen>
-
Set hero[2] = Thomas 0004 <gen>
-
Set hero[3] = Carsten 0005 <gen>
-
Set hero[4] = Malte 0001 <gen>
-
Set hero[5] = Ian 0000 <gen>
-
Set hero[6] = Joe 0006 <gen>
-
Set hero[7] = Echolicious 0007 <gen>
-
Set hero[8] = Martin 0020 <gen>
-
Set hero[9] = Sam 0008 <gen>
-
Set hero[10] = Niklas 0002 <gen>
-
Set hero[1] = Alexandra 0019 <gen>
-
Set hero[2] = Thomas 0004 <gen>
-
Set hero[3] = Carsten 0005 <gen>
-
Set hero[4] = Malte 0001 <gen>
-
Set hero[5] = Ian 0000 <gen>
-
Set hero[6] = Joe 0006 <gen>
-
Set hero[7] = Echolicious 0007 <gen>
-
Set hero[8] = Martin 0020 <gen>
-
Set hero[9] = Sam 0008 <gen>
-
Set hero[10] = Niklas 0002 <gen>
-
-