• Listen to a special audio message from Bill Roper to the Hive Workshop community (Bill is a former Vice President of Blizzard Entertainment, Producer, Designer, Musician, Voice Actor) 🔗Click here to hear his message!
  • Read Evilhog's interview with Gregory Alper, the original composer of the music for WarCraft: Orcs & Humans 🔗Click here to read the full interview.

[Solved] Unknown problem with dialogs(whats going on??)

Status
Not open for further replies.
Level 15
Joined
Jul 9, 2008
Messages
1,552
im trying to create a dialog system for my map but it doesent seem to work.

the dialog works like this u have your different types of modes
hero selection
difficulty
lane mode
exp rate

u click on hero selection then click on the hero mode u want and it will take u back to the main dialog.

when all modes are set up u click ok

this all work fine but for only the hero selection when u try set up the mode for any of the others the second dialog doesent apear.

here are the triggers

  • dialog set up
    • Events
      • Time - Elapsed game time is 0.00 seconds
    • Conditions
    • Actions
      • Set Text_hero[1] = Hero selection: |c0000FF00All pick|r
      • Set Text_hero[2] = Hero selection: |c00FFA500All Random|r
      • Set Text_hero[3] = Hero selection: |c0000FFFFSingle Draft|r
      • Set Text_Difficulty[1] = Difficulty: |c00FFFF00Normal|r
      • Set Text_Difficulty[2] = Difficulty: |c0000FF00Easy|r
      • Set Text_Difficulty[3] = Difficulty: |c00FF0000Hard|r
      • Set Text_lanes[1] = Lanes: |c0000FF00All|r
      • Set Text_lanes[2] = Lanes: |c00FFFF00No Top|r
      • Set Text_lanes[3] = Lanes: |c00FFFF00No Bottem|r
      • Set Text_lanes[4] = Lanes: |c00FFA500No Mid|r
      • Set Text_lanes[5] = Lanes: |c00FFA500Mid Only|r
      • Set Text_exp_rate[1] = Experiance Rate: |c00912CEE100%|r
      • Set Text_exp_rate[2] = Experiance Rate: |c006959CD90%|r
      • Set Text_exp_rate[3] = Experiance Rate: |c00836FFF80%|r
      • Set Text_exp_rate[4] = Experiance Rate: |c00551A8B110%|r
      • -------- --------
      • -------- --------
      • For each (Integer A) from 1 to 4, do (Actions)
        • Loop - Actions
          • Set Dialog_mode_integer[(Integer A)] = 1
      • -------- --------
      • -------- --------
      • Dialog - Change the title of Dialog to Game Options
      • Dialog - Create a dialog button for Dialog labelled Text_hero[1]
      • Set Button_Main[1] = (Last created dialog Button)
      • Dialog - Create a dialog button for Dialog labelled Text_Difficulty[1]
      • Set Button_Main[2] = (Last created dialog Button)
      • Dialog - Create a dialog button for Dialog labelled Text_lanes[1]
      • Set Button_Main[3] = (Last created dialog Button)
      • Dialog - Create a dialog button for Dialog labelled Text_exp_rate[1]
      • Set Button_Main[4] = (Last created dialog Button)
      • Dialog - Create a dialog button for Dialog labelled |c0000FF00Done|r
      • Set Button_Main[5] = (Last created dialog Button)
      • Dialog - Show Dialog for Player 1 (Red)
      • -------- --------
      • -------- --------
      • Dialog - Change the title of Dialogs_selections[1] to Hero selection mode...
      • Dialog - Create a dialog button for Dialogs_selections[1] labelled |c0000FF00All pick|...
      • Set Button_hero[1] = (Last created dialog Button)
      • Dialog - Create a dialog button for Dialogs_selections[1] labelled |c00FFA500All Rando...
      • Set Button_hero[2] = (Last created dialog Button)
      • Dialog - Create a dialog button for Dialogs_selections[1] labelled |c0000FFFFSingle Dr...
      • Set Button_hero[3] = (Last created dialog Button)
      • -------- --------
      • -------- --------
      • Dialog - Change the title of Dialogs_selections[2] to Difficulty Selectio...
      • Dialog - Create a dialog button for Dialogs_selections[2] labelled |c00FFFF00Normal|r
      • Set Button_difficulty[1] = (Last created dialog Button)
      • Dialog - Create a dialog button for Dialogs_selections[2] labelled |c0000FF00Easy|r
      • Set Button_difficulty[2] = (Last created dialog Button)
      • Dialog - Create a dialog button for Dialogs_selections[2] labelled |c00FF0000Hard|r
      • Set Button_difficulty[3] = (Last created dialog Button)
      • -------- --------
      • -------- --------
      • Dialog - Change the title of Dialogs_selections[3] to Lane Modes
      • Dialog - Create a dialog button for Dialogs_selections[3] labelled |c0000FF00All|r
      • Set Button_lanes[1] = (Last created dialog Button)
      • Dialog - Create a dialog button for Dialogs_selections[3] labelled |c00FFFF00No Top|r
      • Set Button_lanes[2] = (Last created dialog Button)
      • Dialog - Create a dialog button for Dialogs_selections[3] labelled |c00FFFF00No Botte...
      • Set Button_lanes[3] = (Last created dialog Button)
      • Dialog - Create a dialog button for Dialogs_selections[3] labelled |c00FFA500No Mid|r
      • Set Button_lanes[4] = (Last created dialog Button)
      • Dialog - Create a dialog button for Dialogs_selections[3] labelled |c00FFA500Mid Only|...
      • Set Button_lanes[5] = (Last created dialog Button)
      • -------- --------
      • -------- --------
      • Dialog - Change the title of Dialogs_selections[4] to Experiance Rates
      • Dialog - Create a dialog button for Dialogs_selections[4] labelled |c00836FFF80%t|r
      • Set Button_exp_rate[1] = (Last created dialog Button)
      • Dialog - Create a dialog button for Dialogs_selections[4] labelled |c006959CD90%t|r
      • Set Button_exp_rate[2] = (Last created dialog Button)
      • Dialog - Create a dialog button for Dialogs_selections[4] labelled |c00912CEE100%t|r
      • Set Button_exp_rate[3] = (Last created dialog Button)
      • Dialog - Create a dialog button for Dialogs_selections[4] labelled |c00551A8B110%t|r
      • Set Button_exp_rate[4] = (Last created dialog Button)
  • Dialog selections
    • Events
      • Dialog - A dialog button is clicked for Dialog
      • Dialog - A dialog button is clicked for Dialogs_selections[1]
      • Dialog - A dialog button is clicked for Dialogs_selections[2]
      • Dialog - A dialog button is clicked for Dialogs_selections[3]
      • Dialog - A dialog button is clicked for Dialogs_selections[4]
    • Conditions
    • Actions
      • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
        • If - Conditions
          • (Clicked dialog button) Equal to Button_Main[5]
        • Then - Actions
        • Else - Actions
      • For each (Integer A) from 1 to 4, do (Actions)
        • Loop - Actions
          • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
            • If - Conditions
              • (Clicked dialog button) Equal to Button_Main[(Integer A)]
            • Then - Actions
              • Dialog - Show Dialogs_selections[(Integer A)] for Player 1 (Red)
            • Else - Actions
      • For each (Integer A) from 1 to 3, do (Actions)
        • Loop - Actions
          • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
            • If - Conditions
              • (Clicked dialog button) Equal to Button_hero[(Integer A)]
            • Then - Actions
              • Set Dialog_mode_integer[1] = (Integer A)
              • Trigger - Run Dialog main update <gen> (ignoring conditions)
            • Else - Actions
      • For each (Integer A) from 1 to 3, do (Actions)
        • Loop - Actions
          • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
            • If - Conditions
              • (Clicked dialog button) Equal to Button_difficulty[(Integer A)]
            • Then - Actions
              • Set Dialog_mode_integer[2] = (Integer A)
              • Trigger - Run Dialog main update <gen> (ignoring conditions)
            • Else - Actions
      • For each (Integer A) from 1 to 5, do (Actions)
        • Loop - Actions
          • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
            • If - Conditions
              • (Clicked dialog button) Equal to Button_lanes[(Integer A)]
            • Then - Actions
              • Set Dialog_mode_integer[3] = (Integer A)
              • Trigger - Run Dialog main update <gen> (ignoring conditions)
            • Else - Actions
      • For each (Integer A) from 1 to 4, do (Actions)
        • Loop - Actions
          • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
            • If - Conditions
              • (Clicked dialog button) Equal to Button_exp_rate[(Integer A)]
            • Then - Actions
              • Set Dialog_mode_integer[4] = (Integer A)
              • Trigger - Run Dialog main update <gen> (ignoring conditions)
            • Else - Actions
  • Dialog main update
    • Events
    • Conditions
    • Actions
      • Dialog - Clear Dialog
      • Dialog - Change the title of Dialog to Game options
      • Dialog - Create a dialog button for Dialog labelled Text_hero[Dialog_mode_integer[1]]
      • Set Button_Main[1] = (Last created dialog Button)
      • Dialog - Create a dialog button for Dialog labelled Text_Difficulty[Dialog_mode_integer[2]]
      • Set Button_Main[2] = (Last created dialog Button)
      • Dialog - Create a dialog button for Dialog labelled Text_lanes[Dialog_mode_integer[3]]
      • Set Button_Main[3] = (Last created dialog Button)
      • Dialog - Create a dialog button for Dialog labelled Text_exp_rate[Dialog_mode_integer[4]]
      • Set Button_Main[3] = (Last created dialog Button)
      • Dialog - Create a dialog button for Dialog labelled |c0000FF00Done|r
      • Set Button_Main[5] = (Last created dialog Button)
      • Dialog - Show Dialog for Player 1 (Red)

i have no idea whats going on i have created tests like if the difficulty button is selected it will display a text that works but what ever i do it wont set up the second dialog???????
 
Last edited:
Level 15
Joined
Jul 9, 2008
Messages
1,552
do u mean where i created the vairable set the inial value to 5 i did that and it didnt seem to work

EDIT: it did work i changed the wrong thing

but i got a problem when i click the lanes nothing happends and when i click on the xp rates it opens the lanes dialogs

EDIT2:i have fixxed it
 
Last edited:
Status
Not open for further replies.
Top