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!
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)
- Events
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
- If - Conditions
- If (All Conditions are True) then do (Then Actions) else do (Else Actions)
- If - Conditions
- If (All Conditions are True) then do (Then Actions) else do (Else Actions)
- If - Conditions
- If (All Conditions are True) then do (Then Actions) else do (Else Actions)
- If - Conditions
- If (All Conditions are True) then do (Then Actions) else do (Else Actions)
- If - Conditions
- 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)
- If (All Conditions are True) then do (Then Actions) else do (Else Actions)
- Events