Teleport System

Da_HP_Geek

New Member
Reaction score
8
I have made a Teleport system, but sometimes only the dialog is visible (no buttons) and you are stuck... Is it any improvments I can to prevent this? Heres the triggers, but I made them a bit shorter just for this forum so they wont be 2 long...

Thx in advance!

Trigger:
  • Enter
    • Events
      • Unit - A unit enters Fireplace Library <gen>
      • Unit - A unit enters Diagon Alley Fireplace <gen>
      • Unit - A unit enters Order Fireplace <gen>
      • Unit - A unit enters Death Eater Fireplace <gen>
      • Unit - A unit enters Region 099 <gen>
      • Unit - A unit enters Death Eater Spawn Right <gen>
      • Unit - A unit enters Region 093 <gen>
      • Unit - A unit enters Death Eater Spawn Left <gen>
      • Unit - A unit enters Order Spawn Left <gen>
      • Unit - A unit enters Region 097 <gen>
      • Unit - A unit enters Order Spawn Right <gen>
      • Unit - A unit enters Wesley Fireplace <gen>
    • Conditions
    • Actions
      • Dialog - Clear FireDialog
      • Dialog - Change the title of FireDialog to Choose Destination
      • Dialog - Create a dialog button for FireDialog labelled HQ
      • Dialog - Create a dialog button for FireDialog labelled Diagon Alley
      • Set Button_Diagon = (Last created dialog Button)
      • Dialog - Create a dialog button for FireDialog labelled Library
      • Set Button_Library = (Last created dialog Button)
      • Dialog - Create a dialog button for FireDialog labelled Wizengamot
      • Set Button_Wizengamot = (Last created dialog Button)
      • Dialog - Create a dialog button for FireDialog labelled Weasleys' Wizard Wh...
      • Set Button_Weasleys = (Last created dialog Button)
      • Dialog - Show FireDialog for (Owner of (Triggering unit))
      • Set Fireplace_Unit[(Player number of (Owner of (Triggering unit)))] = (Triggering unit)

Trigger:
  • Arrive
    • Events
      • Dialog - A dialog button is clicked for FireDialog
    • Conditions
    • Actions
      • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
        • If - Conditions
          • (Clicked dialog button) Equal to Button_Diagon
        • Then - Actions
          • Set Temp_Point = (Center of Diagon Alley Fireplace Arrive <gen>)
        • Else - Actions
          • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
            • If - Conditions
              • (Clicked dialog button) Equal to Button_HQ_Death
            • Then - Actions
              • Set Temp_Point = (Center of Death Eater Fireplace Arrive <gen>)
            • Else - Actions
              • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
                • If - Conditions
                  • (Clicked dialog button) Equal to Button_HQ_Order
                • Then - Actions
                  • Set Temp_Point = (Center of Order Fireplace Arrive <gen>)
                • Else - Actions
                  • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
                    • If - Conditions
                      • (Clicked dialog button) Equal to Button_Library
                    • Then - Actions
                      • Set Temp_Point = (Center of Fireplace Library Arrive <gen>)
                    • Else - Actions
                      • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
                        • If - Conditions
                          • (Clicked dialog button) Equal to Button_Order_Western
                        • Then - Actions
                          • Set Temp_Point = (Center of Region 095 <gen>)
                        • Else - Actions
      • Unit - Move Fireplace_Unit[(Player number of (Triggering player))] instantly to Temp_Point
      • Camera - Pan camera for (Triggering player) to Temp_Point over 0.00 seconds
      • Custom script: call RemoveLocation (udg_Temp_Point)
 
General chit-chat
Help Users
  • No one is chatting at the moment.

      The Helper Discord

      Staff online

      • Ghan
        Administrator - Servers are fun

      Members online

      Affiliates

      Hive Workshop NUON Dome World Editor Tutorials

      Network Sponsors

      Apex Steel Pipe - Buys and sells Steel Pipe.
      Top