Can I do so ? The variable leads a unit instantly to a location. Suppose we have two regions near each other, one on left and one on the right. If a player enters a certain string like -Thisregion then the Variable is set to the right region (and the unit moves to the right region instantly). If a player enters -Thatregion then the SAME variable is set to the left region. Ofc, if a player enters a string for a region, e.g Left region, the trigger is turned off for this player, so he can't enter the string for the right region. But the other players ? What happen to them ?
To make it clear, here is the Trigger:
The Right Region Trigger (Call it X) For P1
The Right Region Trigger for P2
The left Region for P1 (Call it Y)
And so go on with p2 p3 etc. Both left and right region. The Spirit of Warrior is killed and removed from the game after he moves to certain region.
You can see all them use the same variable for location. This is my question, does it work properly ?
To make it clear, here is the Trigger:
The Right Region Trigger (Call it X) For P1
-
Play as X P1
-
Events
-
Player - Player 1 (Red) types a chat message containing -Rightregion as An exact match
-
-
Conditions
-
Actions
-
Set PointStringCheat = (Center of Right Region <gen>)
-
Unit - Move Spirit of Warrior 0186 <gen> instantly to PointStringCheat
-
Custom script: call RemoveLocation(udg_PointStringCheat)
-
Trigger - Turn off (This trigger)
-
-
-
Play as X P2
-
Events
-
Player - Player 2 (Blue) types a chat message containing -Rightregion as An exact match
-
-
Conditions
-
Actions
-
Set PointStringCheat = (Center of Right Region <gen>)
-
Unit - Move Spirit of Warrior 0187 <gen> instantly to PointStringCheat
-
Custom script: call RemoveLocation(udg_PointStringCheat)
-
Trigger - Turn off (This trigger)
-
-
-
Play as Y P1
-
Events
-
Player - Player 1 (Red) types a chat message containing -LeftRegion as An exact match
-
-
Conditions
-
Actions
-
Set PointStringCheat = (Center of Left Region <gen>)
-
Unit - Move Spirit of Warrior 0186 <gen> instantly to PointStringCheat
-
Custom script: call RemoveLocation(udg_PointStringCheat)
-
Trigger - Turn off (This trigger)
-
-
You can see all them use the same variable for location. This is my question, does it work properly ?