- Joined
- Nov 18, 2015
- Messages
- 41
For some reason, the dialog won't pop up for anyone except Player 1 (Red).
I don't understand why it wouldn't show up, though I don't know much about dialogs. I should mention that the hero IS stopped, so I know the hero variable is set correctly.
-
HS RepickStart
-
Events
-
Unit - A unit enters hs reject <gen>
-
-
Conditions
-
(Triggering unit) Equal to p_hero[(Player number of (Owner of (Triggering unit)))]
-
-
Actions
-
Set tempP = (Owner of (Triggering unit))
-
Set tempInt = (Player number of tempP)
-
Set tempLoc = (Position of (Triggering unit))
-
Dialog - Change the title of hs_repickDialog[tempInt] to Repick hero?
-
Dialog - Create a dialog button for hs_repickDialog[tempInt] labelled Yes
-
Set hs_repickDialogButton[(tempInt x 2)] = (Last created dialog Button)
-
Dialog - Create a dialog button for hs_repickDialog[tempInt] labelled No
-
Set hs_repickDialogButton[((tempInt x 2) + 1)] = (Last created dialog Button)
-
Dialog - Show hs_repickDialog[tempInt] for tempP
-
Unit - Order p_hero[tempInt] to Stop
-
Camera - Pan camera for tempP to tempLoc over 0.00 seconds
-
Custom script: call RemoveLocation(udg_tempLoc)
-
-
I don't understand why it wouldn't show up, though I don't know much about dialogs. I should mention that the hero IS stopped, so I know the hero variable is set correctly.