Dialog help

For fulfilled maps that most likely don't work on the latest patch (1.24 or later).

Moderator: Cheaters

Black-Hole
Forum Fanatic
Posts: 315
Joined: October 16th, 2007, 7:32 pm

Dialog help

Post by Black-Hole »

Ive recheacked this trigger many times. I dont know y its not working, so can someone please help me with the triggers.
Spoiler:

Code: Select all

Difficulty Set
    Events
        Time - Elapsed game time is 0.10 seconds
    Conditions
    Actions
        Dialog - Change the title of Dialogbox[1] to Difficulty Set?
        Dialog - Create a dialog button for Dialogbox[1] labelled Cakewalk (10%) with hotkey: 1
        Set DialogButton[1] = (Last created dialog Button)
        Dialog - Create a dialog button for Dialogbox[1] labelled Noobish (20%) with hotkey: 2
        Set DialogButton[2] = (Last created dialog Button)
        Dialog - Create a dialog button for Dialogbox[1] labelled Super Easy (30%) with hotkey: 3
        Set DialogButton[3] = (Last created dialog Button)
        Dialog - Create a dialog button for Dialogbox[1] labelled Easy (40%) with hotkey: 4
        Set DialogButton[4] = (Last created dialog Button)
        Dialog - Create a dialog button for Dialogbox[1] labelled Normal (50%) with hotkey: 5
        Set DialogButton[5] = (Last created dialog Button)
        Dialog - Create a dialog button for Dialogbox[1] labelled Hard (60%) with hotkey: 6
        Set DialogButton[6] = (Last created dialog Button)
        Dialog - Create a dialog button for Dialogbox[1] labelled Heroic (70%) with hotkey: 7
        Set DialogButton[7] = (Last created dialog Button)
        Dialog - Create a dialog button for Dialogbox[1] labelled Legendary (80%) with hotkey: 8
        Set DialogButton[8] = (Last created dialog Button)
        Dialog - Create a dialog button for Dialogbox[1] labelled Suicidal (90)% with hotkey: 9
        Set DialogButton[9] = (Last created dialog Button)
        Dialog - Create a dialog button for Dialogbox[1] labelled Stupid (100%) with hotkey: 10
        Set DialogButton[10] = (Last created dialog Button)
        Dialog - Show Dialogbox[1] for Player 1 (Red)
Spoiler:

Code: Select all

Difficulty
    Events
        Dialog - A dialog button is clicked for Dialogbox[1]
    Conditions
    Actions
        If (All Conditions are True) then do (Then Actions) else do (Else Actions)
            If - Conditions
                (Clicked dialog button) Equal to DialogButton[1]
            Then - Actions
                Wait 1.00 seconds
                Game - Display to (All players) the text: Difficulty set to C...
                Set Difficulty = (Difficulty + 1)
            Else - Actions
        If (All Conditions are True) then do (Then Actions) else do (Else Actions)
            If - Conditions
                (Clicked dialog button) Equal to DialogButton[2]
            Then - Actions
                Wait 1.00 seconds
                Game - Display to (All players) the text: Difficulty set to N...
                Set Difficulty = (Difficulty + 2)
            Else - Actions
        If (All Conditions are True) then do (Then Actions) else do (Else Actions)
            If - Conditions
                (Clicked dialog button) Equal to DialogButton[3]
            Then - Actions
                Wait 1.00 seconds
                Game - Display to (All players) the text: Difficulty set to S...
                Set Difficulty = (Difficulty + 3)
            Else - Actions
        If (All Conditions are True) then do (Then Actions) else do (Else Actions)
            If - Conditions
                (Clicked dialog button) Equal to DialogButton[4]
            Then - Actions
                Wait 1.00 seconds
                Game - Display to (All players) the text: Difficulty set to E...
                Set Difficulty = (Difficulty + 4)
            Else - Actions
        If (All Conditions are True) then do (Then Actions) else do (Else Actions)
            If - Conditions
                (Clicked dialog button) Equal to DialogButton[5]
            Then - Actions
                Wait 1.00 seconds
                Game - Display to (All players) the text: Difficulty set to N...
                Set Difficulty = (Difficulty + 5)
            Else - Actions
        If (All Conditions are True) then do (Then Actions) else do (Else Actions)
            If - Conditions
                (Clicked dialog button) Equal to DialogButton[6]
            Then - Actions
                Wait 1.00 seconds
                Game - Display to (All players) the text: Difficulty set to H...
                Set Difficulty = (Difficulty + 6)
            Else - Actions
        If (All Conditions are True) then do (Then Actions) else do (Else Actions)
            If - Conditions
                (Clicked dialog button) Equal to DialogButton[7]
            Then - Actions
                Wait 1.00 seconds
                Game - Display to (All players) the text: Difficulty set to H...
                Set Difficulty = (Difficulty + 7)
            Else - Actions
        If (All Conditions are True) then do (Then Actions) else do (Else Actions)
            If - Conditions
                (Clicked dialog button) Equal to DialogButton[8]
            Then - Actions
                Wait 1.00 seconds
                Game - Display to (All players) the text: Difficulty set to L...
                Set Difficulty = (Difficulty + 8)
            Else - Actions
        If (All Conditions are True) then do (Then Actions) else do (Else Actions)
            If - Conditions
                (Clicked dialog button) Equal to DialogButton[9]
            Then - Actions
                Wait 1.00 seconds
                Game - Display to (All players) the text: Difficulty set to S...
                Set Difficulty = (Difficulty + 9)
            Else - Actions
        If (All Conditions are True) then do (Then Actions) else do (Else Actions)
            If - Conditions
                (Clicked dialog button) Equal to DialogButton[10]
            Then - Actions
                Wait 1.00 seconds
                Game - Display to (All players) the text: Difficulty set to S...
                Set Difficulty = (Difficulty + 10)
            Else - Actions
        Wait 1.00 seconds
        Dialog - Show Dialogbox[2] for Player 1 (Red)
        Game - Display to (All players) the text: (Difficulty is set to  + (String(Difficulty)))
Please help me (i was using Game - Display to (All players) the text: (Difficulty is set to + (String(Difficulty))) to try and figure out if the trigger was working. It always came up as 0)
Rich Kane
Member
Posts: 77
Joined: May 27th, 2008, 9:08 pm

Re: Dialog help

Post by Rich Kane »

i believe your testing this and i think your going to kick yourself but erm i might be wrong, you have a wait before it sets and shows the difficulty of 1 second, you also have a wait of 1 second before it shows dialog box 2 meaning that the game would be paused for all this time and i think you need to hide the dialog box[1] for red also you should make sure difficulty is set to 0 at start however i might be completly wrong