Hey everyone. I'm having some issues getting these triggers to work right. I did a little searching, and did not find anything. (Sorry if I skimmed over this if it has been solved.)
Anyway, the idea is that the player can type "portal a" and spawn a portal, and type "player b" and spawn another portal. These portals can be switched out at any time by typing the command.
EDIT: My bad... I wrote the problem then erased it by mistake. The issue I "think" is that the region is not moving to where the unit is where he types the command.
I have the following variables:
And the following trigggers
Thanks for the help in advance.
Anyway, the idea is that the player can type "portal a" and spawn a portal, and type "player b" and spawn another portal. These portals can be switched out at any time by typing the command.
EDIT: My bad... I wrote the problem then erased it by mistake. The issue I "think" is that the region is not moving to where the unit is where he types the command.
I have the following variables:
Variable Name . . . Variable Type . Initial Value
VariablePortal_A . . . . . Region . . . . . - None -
VariablePortal_B . . . . . Region . . . . . - None -
PortModelA . . . . . . Destructible . . - None -
PortModelB . . . . . . Destructible . . - None -
And the following trigggers
-
SpawnPortalA
-
Events
- Player - Player 1 (Red) types a chat message containing SPAWN A as An exact match
- Conditions
-
Actions
- Region - Center PortalA <gen> on (Position of Blood Mage 0000 <gen>)
- Destructible - Kill PortModelA
- Wait 0.01 seconds
- Destructible - Create a Shimmering Portal at (Position of Blood Mage 0000 <gen>) facing (Facing of Blood Mage 0000 <gen>) with scale 1.00 and variation 0
- Set PortModelA = (Last created destructible)
-
Events
-
SpawnPortalB
-
Events
- Player - Player 1 (Red) types a chat message containing SPAWN B as An exact match
- Conditions
-
Actions
- Region - Center PortalB <gen> on (Position of Blood Mage 0000 <gen>)
- Destructible - Kill PortModelB
- Wait 0.01 seconds
- Destructible - Create a Shimmering Portal at (Position of Blood Mage 0000 <gen>) facing (Facing of Blood Mage 0000 <gen>) with scale 1.00 and variation 0
- Set PortModelB = (Last created destructible)
-
Events
-
FromAtoB
-
Events
- Unit - A unit enters PortalA <gen>
- Conditions
-
Actions
- Unit - Move (Entering unit) instantly to (Center of PortalB <gen>)
- Wait 0.01 seconds
- Trigger - Turn off (This trigger)
- Trigger - Turn off FromBtoA <gen>
- Wait 0.01 seconds
- Trigger - Turn on (This trigger)
- Trigger - Turn on FromBtoA <gen>
-
Events
-
FromBtoA
-
Events
- Unit - A unit enters PortalB <gen>
- Conditions
-
Actions
- Unit - Move (Entering unit) instantly to (Center of PortalA <gen>)
- Wait 0.01 seconds
- Trigger - Turn off (This trigger)
- Trigger - Turn off FromAtoB <gen>
- Wait 0.01 seconds
- Trigger - Turn on (This trigger)
- Trigger - Turn on FromAtoB <gen>
-
Events
Thanks for the help in advance.
Attachments
Last edited: