Dialog Button Problem

Surferkid993

God surferkid993 = new God(awesome.me);
Reaction score
16
Ok so I have a problem with the Condition (Clicked Dialog Button). I have a six triggers. Each matches with a Dialog Button named a corresponding color. Purple, Blue, Red...

Each trigger looks like this, for simplification I removed the actions execpt for my test action, displaying Check.
It is almost like the conditons are being skiped and it is running all 6 triggers beceause of it.

I know this beceause when I test it shows 6 "Check"s
And yes I know it is not running the same trigger 6 times.


Code:
SelectPurp
    Events
        Dialog - A dialog button is clicked for UpgradeQ
    Conditions
        (Clicked dialog button) Equal to Purple
    Actions
        Game - Display to (All players) the text: Check

PS: It is not being run bhy another trigger using RunTrigger(Ignoring Conditions) it is only run by its envent.

PSS: I am aware that it would be more space efficent if I used one trigger with If Then statements, but I changed it to this to see if the error was happening because it was in one trigger, for a reason unknown to me.
 

Surferkid993

God surferkid993 = new God(awesome.me);
Reaction score
16
Code:
EnterUpgrade
    Events
        Dialog - A dialog button is clicked for Question
    Conditions
        (Clicked dialog button) Equal to UpgradeButton
    Actions
        If (All Conditions are True) then do (Then Actions) else do (Else Actions)
            If - Conditions
                MonopolyBlu[(Player number of PlayersTurn)] Equal to False
                MonopolyDkRed[(Player number of PlayersTurn)] Equal to False
                MonopolyGreen[(Player number of PlayersTurn)] Equal to False
                MonopolyLitBlu[(Player number of PlayersTurn)] Equal to False
                MonopolyOj[(Player number of PlayersTurn)] Equal to False
                MonopolyPurp[(Player number of PlayersTurn)] Equal to False
                MonopolyRed[(Player number of PlayersTurn)] Equal to False
                MonopolyYellow[(Player number of PlayersTurn)] Equal to False
            Then - Actions
                Game - Display to (All players) the text: You can't build tow...
                Trigger - Run Before Roll <gen> (ignoring conditions)
                Skip remaining actions
            Else - Actions
        [COLOR=Red]Dialog - Clear UpgradeQ
        Dialog - Change the title of UpgradeQ to Which monopoly?
        If (All Conditions are True) then do (Then Actions) else do (Else Actions)
            If - Conditions
                MonopolyPurp[(Player number of PlayersTurn)] Equal to True
            Then - Actions
                Game - Display to (All players) the text: Check
                Dialog - Create a dialog button for UpgradeQ labelled Purple
                Set Purple = (Last created dialog Button)
            Else - Actions
        If (All Conditions are True) then do (Then Actions) else do (Else Actions)
            If - Conditions
                MonopolyLitBlu[(Player number of PlayersTurn)] Equal to True
            Then - Actions
                Game - Display to (All players) the text: Check
                Dialog - Create a dialog button for UpgradeQ labelled Light Blue
                Set LightBlue = (Last created dialog Button)
            Else - Actions
        If (All Conditions are True) then do (Then Actions) else do (Else Actions)
            If - Conditions
                MonopolyDkRed[(Player number of PlayersTurn)] Equal to True
            Then - Actions
                Game - Display to (All players) the text: Check
                Dialog - Create a dialog button for UpgradeQ labelled Dark Red
                Set DarkRed = (Last created dialog Button)
            Else - Actions
        If (All Conditions are True) then do (Then Actions) else do (Else Actions)
            If - Conditions
                MonopolyOj[(Player number of PlayersTurn)] Equal to True
            Then - Actions
                Game - Display to (All players) the text: Check
                Dialog - Create a dialog button for UpgradeQ labelled Orange
                Set Orange = (Last created dialog Button)
            Else - Actions
        If (All Conditions are True) then do (Then Actions) else do (Else Actions)
            If - Conditions
                MonopolyRed[(Player number of PlayersTurn)] Equal to True
            Then - Actions
                Game - Display to (All players) the text: Check
                Dialog - Create a dialog button for UpgradeQ labelled Red
                Set Red = (Last created dialog Button)
            Else - Actions
        If (All Conditions are True) then do (Then Actions) else do (Else Actions)
            If - Conditions
                MonopolyYellow[(Player number of PlayersTurn)] Equal to True
            Then - Actions
                Game - Display to (All players) the text: Check
                Dialog - Create a dialog button for UpgradeQ labelled Yellow
                Set Yellow = (Last created dialog Button)
            Else - Actions
        If (All Conditions are True) then do (Then Actions) else do (Else Actions)
            If - Conditions
                MonopolyGreen[(Player number of PlayersTurn)] Equal to True
            Then - Actions
                Game - Display to (All players) the text: Check
                Dialog - Create a dialog button for UpgradeQ labelled Green
                Set Green = (Last created dialog Button)
            Else - Actions
        If (All Conditions are True) then do (Then Actions) else do (Else Actions)
            If - Conditions
                MonopolyBlu[(Player number of PlayersTurn)] Equal to True
            Then - Actions
                Game - Display to (All players) the text: Check
                Dialog - Create a dialog button for UpgradeQ labelled Blue
                Set Blue = (Last created dialog Button)
            Else - Actions
        Dialog - Show UpgradeQ for PlayersTurn[/COLOR]
 

Lord_Kakashi

The Wabbits are attacking
Reaction score
27
AceHart said:
It might help if you posted the trigger that creates and shows that dialog.

When it's created, not what it does ^^

like

Code:
Event: Time elapsed is 2 seconds
Condition:
Actions:
Create dialog blabla
Create a dialog button named xx for dialog blabla
set blue = last created dialog button
Create a dialog button named xx for dialog blabla
Set red = last created dialog button
ect.

Sry for the rough code, dont have me world editor open rite now :D
 

Surferkid993

God surferkid993 = new God(awesome.me);
Reaction score
16
That is when it is created. I will hilight the creation part in red.

It is created after you click a difrent diolog button.
 
General chit-chat
Help Users

      The Helper Discord

      Members online

      Affiliates

      Hive Workshop NUON Dome World Editor Tutorials

      Network Sponsors

      Apex Steel Pipe - Buys and sells Steel Pipe.
      Top