Teleport Dialog

Level 12
Joined
Aug 3, 2021
Messages
436
Hello. I recently created a dialog for teleportation to the left side or right side of the city. But it doesen't seem to work. The dialog works when a unit eneters a region but when I click right or left dialog button it doesen't teleport you to the right neither the left side. The unit stays where it is . I have also created teleportation back from the region you are suppose to teleport form. But that dosen't work either. Can you guys please help. Here are the triggers:
  • Obelisk Teleport Click
    • Events
      • Dialog - A dialog button is clicked for Dialouge02
    • Conditions
    • Actions
      • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
        • If - Conditions
          • (Clicked dialog button) Equal to Left[1]
        • Then - Actions
          • Trigger - Run Teleport Left <gen> (checking conditions)
        • Else - Actions
          • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
            • If - Conditions
              • (Clicked dialog button) Equal to Right[2]
            • Then - Actions
              • Trigger - Run Teleport Right <gen> (checking conditions)
            • Else - Actions
              • Do nothing
  • Teleport Left
    • Events
      • Dialog - A dialog button is clicked for Dialouge02
    • Conditions
      • (Clicked dialog button) Equal to Left[1]
    • Actions
      • Unit Group - Pick every unit in (Units in ObeliskTeleport <gen> owned by Player 4 (Purple)) and do (Unit - Move (Triggering unit) instantly to (Center of PurpleTeleportTo <gen>))
  • Teleport Back Right
    • Events
      • Unit - A unit enters PurpleTeleportTo <gen>
    • Conditions
      • (Owner of (Entering unit)) Equal to Player 4 (Purple)
    • Actions
      • Unit Group - Pick every unit in (Units in PurpleTeleportTo <gen> owned by Player 4 (Purple)) and do (Unit - Move (Triggering unit) instantly to (Center of ObeliskTeleport <gen>))
 
When you're using a trigger only to be called by another, don't put any event and usually no condition.

Here when you call Teleport left, you ask to check if the dialog button has been clicked but it happened before, in a different trigger, so the condition will never be considered as met.

In the Teleport back trigger, you want "Move (picked unit) instantly" not "Move (triggering unit) instantly" for moving a group. Or ditch the "pick every unit" since the trigger will run for each unit entering anyway
 
When you're using a trigger only to be called by another, don't put any event and usually no condition.

Here when you call Teleport left, you ask to check if the dialog button has been clicked but it happened before, in a different trigger, so the condition will never be considered as met.

In the Teleport back trigger, you want "Move (picked unit) instantly" not "Move (triggering unit) instantly" for moving a group. Or ditch the "pick every unit" since the trigger will run for each unit entering anyway
Still dosen't work. Now when a unit enters a region it won't show dialog buttons.
 
You mean you don't have another trigger that creates the dialogue box and buttons when a unit enters the area ? Go look for a tutorial on dialogues to see how it works if that's the case.
It dosen't work it dosen't teleport me to the right side of the city . I have done everything right I don't get it.
 
Back
Top