I assume the dialog was created by another trigger, correct? Last created whatevers sometimes don't carry over from one trigger to another. They're really just there for setting variables. Try making a global variable, and in that other trigger (the one where the dialog is created) set that variable to "last created dialog". Then when you use Hide Dialog in this trigger use the variable to call it. It should work then.
i found out how to do it well kinda this is the code i used
picking hero
Events
Dialog - Any Dialog Item is used by Player (Triggering player) with event type Clicked
Local Variables
Conditions
Actions
General - If (Conditions) then do (Actions) else do (Actions)
If
(Used dialog item) == button 1
Then
Unit - Create 1 Drone for player 1 at player 1 heal using default facing (No Options)
Dialog - Hide (Relative dialog of Character Selection Dialog) for (Player group((Triggering player)))
Dialog - Hide Character Selection Dialog for (Player group((Triggering player)))
Else
Dialog - Remove all items from (Used dialog item) for (All players)
General - If (Conditions) then do (Actions) else do (Actions)
If
(Used dialog item) == button 2
Then
Unit - Create 1 Probe for player 1 at player 1 heal using default facing (No Options)
Dialog - Hide (Relative dialog of Character Selection Dialog) for (Player group((Triggering player)))
Dialog - Hide Character Selection Dialog for (Player group((Triggering player)))
Else
Dialog - Remove all items from (Used dialog item) for (All players)
General - If (Conditions) then do (Actions) else do (Actions)
If
(Used dialog item) == button 3
Then
Unit - Create 1 SCV for player 1 at player 1 heal using default facing (No Options)
Dialog - Hide (Relative dialog of Character Selection Dialog) for (Player group((Triggering player)))
Dialog - Hide Character Selection Dialog for (Player group((Triggering player)))
Else
Dialog - Remove all items from (Used dialog item) for (All players)
Rollback Post to RevisionRollBack
To post a comment, please login or register a new account.
eveythings working but i dont know how to make the dialog go away
"picking hero Events
Dialog - Any Dialog Item is used by Player Any Player with event type Clicked
Local Variables
Conditions
Actions
General - If (Conditions) then do (Actions) else do (Actions)
If
(Used dialog item) == button 1
Then
Dialog - Hide (Last created dialog) for (Player group((Triggering player)))
Unit - Create 1 Drone for player 1 at player 1 heal using default facing (No Options)
Else
Dialog - Remove all items from (Used dialog item) for (All players)"
could some one tell me what im doing wrong lol
I assume the dialog was created by another trigger, correct? Last created whatevers sometimes don't carry over from one trigger to another. They're really just there for setting variables. Try making a global variable, and in that other trigger (the one where the dialog is created) set that variable to "last created dialog". Then when you use Hide Dialog in this trigger use the variable to call it. It should work then.
yes it was
im useing a global var already
well the trigger im useing is one i got for this http://forums.sc2mapster.com/resources/tutorials/6776-tutorials-triggers-character-hero-selection/#p6 but mines not working like it should ill send pic's if you want to see what im saying
i found out how to do it well kinda this is the code i used
picking hero Events Dialog - Any Dialog Item is used by Player (Triggering player) with event type Clicked Local Variables Conditions Actions General - If (Conditions) then do (Actions) else do (Actions) If (Used dialog item) == button 1 Then Unit - Create 1 Drone for player 1 at player 1 heal using default facing (No Options) Dialog - Hide (Relative dialog of Character Selection Dialog) for (Player group((Triggering player))) Dialog - Hide Character Selection Dialog for (Player group((Triggering player))) Else Dialog - Remove all items from (Used dialog item) for (All players) General - If (Conditions) then do (Actions) else do (Actions) If (Used dialog item) == button 2 Then Unit - Create 1 Probe for player 1 at player 1 heal using default facing (No Options) Dialog - Hide (Relative dialog of Character Selection Dialog) for (Player group((Triggering player))) Dialog - Hide Character Selection Dialog for (Player group((Triggering player))) Else Dialog - Remove all items from (Used dialog item) for (All players) General - If (Conditions) then do (Actions) else do (Actions) If (Used dialog item) == button 3 Then Unit - Create 1 SCV for player 1 at player 1 heal using default facing (No Options) Dialog - Hide (Relative dialog of Character Selection Dialog) for (Player group((Triggering player))) Dialog - Hide Character Selection Dialog for (Player group((Triggering player))) Else Dialog - Remove all items from (Used dialog item) for (All players)