Dialog Buttom Problem.

storgaard

New Member
Reaction score
4
Hey, i got 2 triggers, and somehow they are not working, the idea of the triggers is like this 1:make up a dialog buttom clicking, 2:remove the clicked buttoms so the next wont get the same possibilities.
Trigger:
  • Red Colonies
    • Events
      • Unit - A unit Finishes research
    • Conditions
      • (Researched tech-type) Equal to Advanced Militari Tech
      • (Owner of (Researching unit)) Equal to Player 1 (Red)
    • Actions
      • Dialog - Clear Colonies
      • Dialog - Change the title of Colonies to Select youre starti...
      • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
        • If - Conditions
          • QuebecBool Equal to True
        • Then - Actions
          • Dialog - Create a dialog button for Colonies labelled Quebec
          • Set Quebec = (Last created dialog Button)
        • Else - Actions
      • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
        • If - Conditions
          • FloridaBool Equal to True
        • Then - Actions
          • Dialog - Create a dialog button for Colonies labelled Florida
          • Set Florida = (Last created dialog Button)
        • Else - Actions
      • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
        • If - Conditions
          • Cubabool Equal to True
        • Then - Actions
          • Dialog - Create a dialog button for Colonies labelled Cuba
          • Set Cuba = (Last created dialog Button)
        • Else - Actions
      • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
        • If - Conditions
          • HondurasBool Equal to True
        • Then - Actions
          • Dialog - Create a dialog button for Colonies labelled Honduras
          • Set Honduras = (Last created dialog Button)
        • Else - Actions
      • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
        • If - Conditions
          • SouthAmericaBool Equal to True
        • Then - Actions
          • Dialog - Create a dialog button for Colonies labelled South America
          • Set SouthAmerica = (Last created dialog Button)
        • Else - Actions
      • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
        • If - Conditions
          • NewOrleansBool Equal to True
        • Then - Actions
          • Dialog - Create a dialog button for Colonies labelled New Orleans
          • Set NewOrleans = (Last created dialog Button)
        • Else - Actions
      • Dialog - Show Colonies for Player 1 (Red)

Trigger:
  • ColoniesClick
    • Events
      • Dialog - A dialog button is clicked for Colonies
    • Conditions
    • Actions
      • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
        • If - Conditions
          • (Clicked dialog button) Equal to Quebec
        • Then - Actions
          • Set QuebecBool = True
        • Else - Actions
      • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
        • If - Conditions
          • (Clicked dialog button) Equal to Florida
        • Then - Actions
          • Set FloridaBool = True
        • Else - Actions
      • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
        • If - Conditions
          • (Clicked dialog button) Equal to Cuba
        • Then - Actions
          • Set Cubabool = True
        • Else - Actions
      • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
        • If - Conditions
          • (Clicked dialog button) Equal to Honduras
        • Then - Actions
          • Set HondurasBool = True
        • Else - Actions
      • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
        • If - Conditions
          • (Clicked dialog button) Equal to SouthAmerica
        • Then - Actions
          • Set SouthAmericaBool = True
        • Else - Actions
      • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
        • If - Conditions
          • (Clicked dialog button) Equal to NewOrleans
        • Then - Actions
          • Set NewOrleansBool = True
        • Else - Actions

and somehow, its not working!
 

SuperSoldier

New Member
Reaction score
10
The if statements need to say if false
This also won't be MPI

EDIT: If the problem before was that the buttons weren't disappearing, make the set bool to set them to false instead of doing what I originally said
 
General chit-chat
Help Users
  • No one is chatting at the moment.

      The Helper Discord

      Members online

      No members online now.

      Affiliates

      Hive Workshop NUON Dome World Editor Tutorials

      Network Sponsors

      Apex Steel Pipe - Buys and sells Steel Pipe.
      Top