• 🏆 Texturing Contest #33 is OPEN! Contestants must re-texture a SD unit model found in-game (Warcraft 3 Classic), recreating the unit into a peaceful NPC version. 🔗Click here to enter!
  • It's time for the first HD Modeling Contest of 2024. Join the theme discussion for Hive's HD Modeling Contest #6! Click here to post your idea!

[Trigger] Problem with trigger(s)

Status
Not open for further replies.
Level 8
Joined
Jul 3, 2004
Messages
404
THe problem is that still when 3 units left, the Kudos counter is 66 (which is the maximum points awarded if all 11 bets is correct)
not sure how to describe the problem, watch the triggers and see if you can decrypt it


On this trigger, the owner of clicked player is added to a variable.
I've tried to wait a few second between each time i click on one unit to add them to e variable.
  • Red bet
    • Events
      • Player - Player 1 (Red) Selects a unit
    • Conditions
    • Actions
      • -------- Red --------
      • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
        • If - Conditions
          • (Click me to bet on this color. 0068 <gen> is selected by Player 1 (Red)) Equal to True
        • Then - Actions
          • Set Player[1] = 1
          • Set Slot_nr[1] = (Slot_nr[1] + 1)
          • If (Slot_nr[1] Equal to 1) then do (Set Red_Bet[1] = (Player(Player[1]))) else do (Do nothing)
          • If (Slot_nr[1] Equal to 2) then do (Set Red_Bet[2] = (Player(Player[1]))) else do (Do nothing)
          • If (Slot_nr[1] Equal to 3) then do (Set Red_Bet[3] = (Player(Player[1]))) else do (Do nothing)
          • If (Slot_nr[1] Equal to 4) then do (Set Red_Bet[1] = (Player(Player[1]))) else do (Do nothing)
          • If (Slot_nr[1] Equal to 5) then do (Set Red_Bet[5] = (Player(Player[1]))) else do (Do nothing)
          • If (Slot_nr[1] Equal to 6) then do (Set Red_Bet[6] = (Player(Player[1]))) else do (Do nothing)
          • If (Slot_nr[1] Equal to 7) then do (Set Red_Bet[7] = (Player(Player[1]))) else do (Do nothing)
          • If (Slot_nr[1] Equal to 8) then do (Set Red_Bet[8] = (Player(Player[1]))) else do (Do nothing)
          • If (Slot_nr[1] Equal to 9) then do (Set Red_Bet[9] = (Player(Player[1]))) else do (Do nothing)
          • If (Slot_nr[1] Equal to 10) then do (Set Red_Bet[10] = (Player(Player[1]))) else do (Do nothing)
          • If (Slot_nr[1] Equal to 11) then do (Set Red_Bet[11] = (Player(Player[1]))) else do (Do nothing)
        • Else - Actions
      • -------- Blue --------
      • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
        • If - Conditions
          • (Click me to bet on this color. 0010 <gen> is selected by Player 1 (Red)) Equal to True
        • Then - Actions
          • Set Player[1] = 2
          • Set Slot_nr[1] = (Slot_nr[1] + 1)
          • If (Slot_nr[1] Equal to 1) then do (Set Red_Bet[1] = (Player(Player[1]))) else do (Do nothing)
          • If (Slot_nr[1] Equal to 2) then do (Set Red_Bet[2] = (Player(Player[1]))) else do (Do nothing)
          • If (Slot_nr[1] Equal to 3) then do (Set Red_Bet[3] = (Player(Player[1]))) else do (Do nothing)
          • If (Slot_nr[1] Equal to 4) then do (Set Red_Bet[4] = (Player(Player[1]))) else do (Do nothing)
          • If (Slot_nr[1] Equal to 5) then do (Set Red_Bet[5] = (Player(Player[1]))) else do (Do nothing)
          • If (Slot_nr[1] Equal to 6) then do (Set Red_Bet[6] = (Player(Player[1]))) else do (Do nothing)
          • If (Slot_nr[1] Equal to 7) then do (Set Red_Bet[7] = (Player(Player[1]))) else do (Do nothing)
          • If (Slot_nr[1] Equal to 8) then do (Set Red_Bet[8] = (Player(Player[1]))) else do (Do nothing)
          • If (Slot_nr[1] Equal to 9) then do (Set Red_Bet[9] = (Player(Player[1]))) else do (Do nothing)
          • If (Slot_nr[1] Equal to 10) then do (Set Red_Bet[10] = (Player(Player[1]))) else do (Do nothing)
          • If (Slot_nr[1] Equal to 11) then do (Set Red_Bet[11] = (Player(Player[1]))) else do (Do nothing)
        • Else - Actions
      • -------- Teal --------
      • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
        • If - Conditions
          • (Click me to bet on this color. 0011 <gen> is selected by Player 1 (Red)) Equal to True
        • Then - Actions
          • Set Player[1] = 3
          • Set Slot_nr[1] = (Slot_nr[1] + 1)
          • If (Slot_nr[1] Equal to 1) then do (Set Red_Bet[1] = (Player(Player[1]))) else do (Do nothing)
          • If (Slot_nr[1] Equal to 2) then do (Set Red_Bet[2] = (Player(Player[1]))) else do (Do nothing)
          • If (Slot_nr[1] Equal to 3) then do (Set Red_Bet[3] = (Player(Player[1]))) else do (Do nothing)
          • If (Slot_nr[1] Equal to 4) then do (Set Red_Bet[4] = (Player(Player[1]))) else do (Do nothing)
          • If (Slot_nr[1] Equal to 5) then do (Set Red_Bet[5] = (Player(Player[1]))) else do (Do nothing)
          • If (Slot_nr[1] Equal to 6) then do (Set Red_Bet[6] = (Player(Player[1]))) else do (Do nothing)
          • If (Slot_nr[1] Equal to 7) then do (Set Red_Bet[7] = (Player(Player[1]))) else do (Do nothing)
          • If (Slot_nr[1] Equal to 8) then do (Set Red_Bet[8] = (Player(Player[1]))) else do (Do nothing)
          • If (Slot_nr[1] Equal to 9) then do (Set Red_Bet[9] = (Player(Player[1]))) else do (Do nothing)
          • If (Slot_nr[1] Equal to 10) then do (Set Red_Bet[10] = (Player(Player[1]))) else do (Do nothing)
          • If (Slot_nr[1] Equal to 11) then do (Set Red_Bet[11] = (Player(Player[1]))) else do (Do nothing)
        • Else - Actions
      • -------- Purple --------
      • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
        • If - Conditions
          • (Click me to bet on this color. 0015 <gen> is selected by Player 1 (Red)) Equal to True
        • Then - Actions
          • Set Player[1] = 4
          • Set Slot_nr[1] = (Slot_nr[1] + 1)
          • If (Slot_nr[1] Equal to 1) then do (Set Red_Bet[1] = (Player(Player[1]))) else do (Do nothing)
          • If (Slot_nr[1] Equal to 2) then do (Set Red_Bet[2] = (Player(Player[1]))) else do (Do nothing)
          • If (Slot_nr[1] Equal to 3) then do (Set Red_Bet[3] = (Player(Player[1]))) else do (Do nothing)
          • If (Slot_nr[1] Equal to 4) then do (Set Red_Bet[4] = (Player(Player[1]))) else do (Do nothing)
          • If (Slot_nr[1] Equal to 5) then do (Set Red_Bet[5] = (Player(Player[1]))) else do (Do nothing)
          • If (Slot_nr[1] Equal to 6) then do (Set Red_Bet[6] = (Player(Player[1]))) else do (Do nothing)
          • If (Slot_nr[1] Equal to 7) then do (Set Red_Bet[7] = (Player(Player[1]))) else do (Do nothing)
          • If (Slot_nr[1] Equal to 8) then do (Set Red_Bet[8] = (Player(Player[1]))) else do (Do nothing)
          • If (Slot_nr[1] Equal to 9) then do (Set Red_Bet[9] = (Player(Player[1]))) else do (Do nothing)
          • If (Slot_nr[1] Equal to 10) then do (Set Red_Bet[10] = (Player(Player[1]))) else do (Do nothing)
          • If (Slot_nr[1] Equal to 11) then do (Set Red_Bet[11] = (Player(Player[1]))) else do (Do nothing)
        • Else - Actions
      • -------- Yellow --------
      • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
        • If - Conditions
          • (Click me to bet on this color. 0016 <gen> is selected by Player 1 (Red)) Equal to True
        • Then - Actions
          • Set Player[1] = 5
          • Set Slot_nr[1] = (Slot_nr[1] + 1)
          • If (Slot_nr[1] Equal to 1) then do (Set Red_Bet[1] = (Player(Player[1]))) else do (Do nothing)
          • If (Slot_nr[1] Equal to 2) then do (Set Red_Bet[2] = (Player(Player[1]))) else do (Do nothing)
          • If (Slot_nr[1] Equal to 3) then do (Set Red_Bet[3] = (Player(Player[1]))) else do (Do nothing)
          • If (Slot_nr[1] Equal to 4) then do (Set Red_Bet[4] = (Player(Player[1]))) else do (Do nothing)
          • If (Slot_nr[1] Equal to 5) then do (Set Red_Bet[5] = (Player(Player[1]))) else do (Do nothing)
          • If (Slot_nr[1] Equal to 6) then do (Set Red_Bet[6] = (Player(Player[1]))) else do (Do nothing)
          • If (Slot_nr[1] Equal to 7) then do (Set Red_Bet[7] = (Player(Player[1]))) else do (Do nothing)
          • If (Slot_nr[1] Equal to 8) then do (Set Red_Bet[8] = (Player(Player[1]))) else do (Do nothing)
          • If (Slot_nr[1] Equal to 9) then do (Set Red_Bet[9] = (Player(Player[1]))) else do (Do nothing)
          • If (Slot_nr[1] Equal to 10) then do (Set Red_Bet[10] = (Player(Player[1]))) else do (Do nothing)
          • If (Slot_nr[1] Equal to 11) then do (Set Red_Bet[11] = (Player(Player[1]))) else do (Do nothing)
        • Else - Actions
      • -------- Orange --------
      • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
        • If - Conditions
          • (Click me to bet on this color. 0017 <gen> is selected by Player 1 (Red)) Equal to True
        • Then - Actions
          • Set Player[1] = 6
          • Set Slot_nr[1] = (Slot_nr[1] + 1)
          • If (Slot_nr[1] Equal to 1) then do (Set Red_Bet[1] = (Player(Player[1]))) else do (Do nothing)
          • If (Slot_nr[1] Equal to 2) then do (Set Red_Bet[2] = (Player(Player[1]))) else do (Do nothing)
          • If (Slot_nr[1] Equal to 3) then do (Set Red_Bet[3] = (Player(Player[1]))) else do (Do nothing)
          • If (Slot_nr[1] Equal to 4) then do (Set Red_Bet[4] = (Player(Player[1]))) else do (Do nothing)
          • If (Slot_nr[1] Equal to 5) then do (Set Red_Bet[5] = (Player(Player[1]))) else do (Do nothing)
          • If (Slot_nr[1] Equal to 6) then do (Set Red_Bet[6] = (Player(Player[1]))) else do (Do nothing)
          • If (Slot_nr[1] Equal to 7) then do (Set Red_Bet[7] = (Player(Player[1]))) else do (Do nothing)
          • If (Slot_nr[1] Equal to 8) then do (Set Red_Bet[8] = (Player(Player[1]))) else do (Do nothing)
          • If (Slot_nr[1] Equal to 9) then do (Set Red_Bet[9] = (Player(Player[1]))) else do (Do nothing)
          • If (Slot_nr[1] Equal to 10) then do (Set Red_Bet[10] = (Player(Player[1]))) else do (Do nothing)
          • If (Slot_nr[1] Equal to 11) then do (Set Red_Bet[11] = (Player(Player[1]))) else do (Do nothing)
        • Else - Actions
      • -------- Green --------
      • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
        • If - Conditions
          • (Click me to bet on this color. 0018 <gen> is selected by Player 1 (Red)) Equal to True
        • Then - Actions
          • Set Player[1] = 7
          • Set Slot_nr[1] = (Slot_nr[1] + 1)
          • If (Slot_nr[1] Equal to 1) then do (Set Red_Bet[1] = (Player(Player[1]))) else do (Do nothing)
          • If (Slot_nr[1] Equal to 2) then do (Set Red_Bet[2] = (Player(Player[1]))) else do (Do nothing)
          • If (Slot_nr[1] Equal to 3) then do (Set Red_Bet[3] = (Player(Player[1]))) else do (Do nothing)
          • If (Slot_nr[1] Equal to 4) then do (Set Red_Bet[4] = (Player(Player[1]))) else do (Do nothing)
          • If (Slot_nr[1] Equal to 5) then do (Set Red_Bet[5] = (Player(Player[1]))) else do (Do nothing)
          • If (Slot_nr[1] Equal to 6) then do (Set Red_Bet[6] = (Player(Player[1]))) else do (Do nothing)
          • If (Slot_nr[1] Equal to 7) then do (Set Red_Bet[7] = (Player(Player[1]))) else do (Do nothing)
          • If (Slot_nr[1] Equal to 8) then do (Set Red_Bet[8] = (Player(Player[1]))) else do (Do nothing)
          • If (Slot_nr[1] Equal to 9) then do (Set Red_Bet[9] = (Player(Player[1]))) else do (Do nothing)
          • If (Slot_nr[1] Equal to 10) then do (Set Red_Bet[10] = (Player(Player[1]))) else do (Do nothing)
          • If (Slot_nr[1] Equal to 11) then do (Set Red_Bet[11] = (Player(Player[1]))) else do (Do nothing)
        • Else - Actions
      • -------- Pink --------
      • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
        • If - Conditions
          • (Click me to bet on this color. 0019 <gen> is selected by Player 1 (Red)) Equal to True
        • Then - Actions
          • Set Player[1] = 8
          • Set Slot_nr[1] = (Slot_nr[1] + 1)
          • If (Slot_nr[1] Equal to 1) then do (Set Red_Bet[1] = (Player(Player[1]))) else do (Do nothing)
          • If (Slot_nr[1] Equal to 2) then do (Set Red_Bet[2] = (Player(Player[1]))) else do (Do nothing)
          • If (Slot_nr[1] Equal to 3) then do (Set Red_Bet[3] = (Player(Player[1]))) else do (Do nothing)
          • If (Slot_nr[1] Equal to 4) then do (Set Red_Bet[4] = (Player(Player[1]))) else do (Do nothing)
          • If (Slot_nr[1] Equal to 5) then do (Set Red_Bet[5] = (Player(Player[1]))) else do (Do nothing)
          • If (Slot_nr[1] Equal to 6) then do (Set Red_Bet[6] = (Player(Player[1]))) else do (Do nothing)
          • If (Slot_nr[1] Equal to 7) then do (Set Red_Bet[7] = (Player(Player[1]))) else do (Do nothing)
          • If (Slot_nr[1] Equal to 8) then do (Set Red_Bet[8] = (Player(Player[1]))) else do (Do nothing)
          • If (Slot_nr[1] Equal to 9) then do (Set Red_Bet[9] = (Player(Player[1]))) else do (Do nothing)
          • If (Slot_nr[1] Equal to 10) then do (Set Red_Bet[10] = (Player(Player[1]))) else do (Do nothing)
          • If (Slot_nr[1] Equal to 11) then do (Set Red_Bet[11] = (Player(Player[1]))) else do (Do nothing)
        • Else - Actions
      • -------- Grey --------
      • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
        • If - Conditions
          • (Click me to bet on this color. 0020 <gen> is selected by Player 1 (Red)) Equal to True
        • Then - Actions
          • Set Player[1] = 9
          • Set Slot_nr[1] = (Slot_nr[1] + 1)
          • If (Slot_nr[1] Equal to 1) then do (Set Red_Bet[1] = (Player(Player[1]))) else do (Do nothing)
          • If (Slot_nr[1] Equal to 2) then do (Set Red_Bet[2] = (Player(Player[1]))) else do (Do nothing)
          • If (Slot_nr[1] Equal to 3) then do (Set Red_Bet[3] = (Player(Player[1]))) else do (Do nothing)
          • If (Slot_nr[1] Equal to 4) then do (Set Red_Bet[4] = (Player(Player[1]))) else do (Do nothing)
          • If (Slot_nr[1] Equal to 5) then do (Set Red_Bet[5] = (Player(Player[1]))) else do (Do nothing)
          • If (Slot_nr[1] Equal to 6) then do (Set Red_Bet[6] = (Player(Player[1]))) else do (Do nothing)
          • If (Slot_nr[1] Equal to 7) then do (Set Red_Bet[7] = (Player(Player[1]))) else do (Do nothing)
          • If (Slot_nr[1] Equal to 8) then do (Set Red_Bet[8] = (Player(Player[1]))) else do (Do nothing)
          • If (Slot_nr[1] Equal to 9) then do (Set Red_Bet[9] = (Player(Player[1]))) else do (Do nothing)
          • If (Slot_nr[1] Equal to 10) then do (Set Red_Bet[10] = (Player(Player[1]))) else do (Do nothing)
          • If (Slot_nr[1] Equal to 11) then do (Set Red_Bet[11] = (Player(Player[1]))) else do (Do nothing)
        • Else - Actions
      • -------- Light Blue --------
      • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
        • If - Conditions
          • (Click me to bet on this color. 0023 <gen> is selected by Player 1 (Red)) Equal to True
        • Then - Actions
          • Set Player[1] = 10
          • Set Slot_nr[1] = (Slot_nr[1] + 1)
          • If (Slot_nr[1] Equal to 1) then do (Set Red_Bet[1] = (Player(Player[1]))) else do (Do nothing)
          • If (Slot_nr[1] Equal to 2) then do (Set Red_Bet[2] = (Player(Player[1]))) else do (Do nothing)
          • If (Slot_nr[1] Equal to 3) then do (Set Red_Bet[3] = (Player(Player[1]))) else do (Do nothing)
          • If (Slot_nr[1] Equal to 4) then do (Set Red_Bet[4] = (Player(Player[1]))) else do (Do nothing)
          • If (Slot_nr[1] Equal to 5) then do (Set Red_Bet[5] = (Player(Player[1]))) else do (Do nothing)
          • If (Slot_nr[1] Equal to 6) then do (Set Red_Bet[6] = (Player(Player[1]))) else do (Do nothing)
          • If (Slot_nr[1] Equal to 7) then do (Set Red_Bet[7] = (Player(Player[1]))) else do (Do nothing)
          • If (Slot_nr[1] Equal to 8) then do (Set Red_Bet[8] = (Player(Player[1]))) else do (Do nothing)
          • If (Slot_nr[1] Equal to 9) then do (Set Red_Bet[9] = (Player(Player[1]))) else do (Do nothing)
          • If (Slot_nr[1] Equal to 10) then do (Set Red_Bet[10] = (Player(Player[1]))) else do (Do nothing)
          • If (Slot_nr[1] Equal to 11) then do (Set Red_Bet[11] = (Player(Player[1]))) else do (Do nothing)
        • Else - Actions
      • -------- Dark Green --------
      • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
        • If - Conditions
          • (Click me to bet on this color. 0022 <gen> is selected by Player 1 (Red)) Equal to True
        • Then - Actions
          • Set Player[1] = 11
          • Set Slot_nr[1] = (Slot_nr[1] + 1)
          • If (Slot_nr[1] Equal to 1) then do (Set Red_Bet[1] = (Player(Player[1]))) else do (Do nothing)
          • If (Slot_nr[1] Equal to 2) then do (Set Red_Bet[2] = (Player(Player[1]))) else do (Do nothing)
          • If (Slot_nr[1] Equal to 3) then do (Set Red_Bet[3] = (Player(Player[1]))) else do (Do nothing)
          • If (Slot_nr[1] Equal to 4) then do (Set Red_Bet[4] = (Player(Player[1]))) else do (Do nothing)
          • If (Slot_nr[1] Equal to 5) then do (Set Red_Bet[5] = (Player(Player[1]))) else do (Do nothing)
          • If (Slot_nr[1] Equal to 6) then do (Set Red_Bet[6] = (Player(Player[1]))) else do (Do nothing)
          • If (Slot_nr[1] Equal to 7) then do (Set Red_Bet[7] = (Player(Player[1]))) else do (Do nothing)
          • If (Slot_nr[1] Equal to 8) then do (Set Red_Bet[8] = (Player(Player[1]))) else do (Do nothing)
          • If (Slot_nr[1] Equal to 9) then do (Set Red_Bet[9] = (Player(Player[1]))) else do (Do nothing)
          • If (Slot_nr[1] Equal to 10) then do (Set Red_Bet[10] = (Player(Player[1]))) else do (Do nothing)
          • If (Slot_nr[1] Equal to 11) then do (Set Red_Bet[11] = (Player(Player[1]))) else do (Do nothing)
        • Else - Actions
      • -------- Brown --------
      • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
        • If - Conditions
          • (Click me to bet on this color. 0021 <gen> is selected by Player 1 (Red)) Equal to True
        • Then - Actions
          • Set Player[1] = 12
          • Set Slot_nr[1] = (Slot_nr[1] + 1)
          • If (Slot_nr[1] Equal to 1) then do (Set Red_Bet[1] = (Player(Player[1]))) else do (Do nothing)
          • If (Slot_nr[1] Equal to 2) then do (Set Red_Bet[2] = (Player(Player[1]))) else do (Do nothing)
          • If (Slot_nr[1] Equal to 3) then do (Set Red_Bet[3] = (Player(Player[1]))) else do (Do nothing)
          • If (Slot_nr[1] Equal to 4) then do (Set Red_Bet[4] = (Player(Player[1]))) else do (Do nothing)
          • If (Slot_nr[1] Equal to 5) then do (Set Red_Bet[5] = (Player(Player[1]))) else do (Do nothing)
          • If (Slot_nr[1] Equal to 6) then do (Set Red_Bet[6] = (Player(Player[1]))) else do (Do nothing)
          • If (Slot_nr[1] Equal to 7) then do (Set Red_Bet[7] = (Player(Player[1]))) else do (Do nothing)
          • If (Slot_nr[1] Equal to 8) then do (Set Red_Bet[8] = (Player(Player[1]))) else do (Do nothing)
          • If (Slot_nr[1] Equal to 9) then do (Set Red_Bet[9] = (Player(Player[1]))) else do (Do nothing)
          • If (Slot_nr[1] Equal to 10) then do (Set Red_Bet[10] = (Player(Player[1]))) else do (Do nothing)
          • If (Slot_nr[1] Equal to 11) then do (Set Red_Bet[11] = (Player(Player[1]))) else do (Do nothing)
        • Else - Actions
A unit dies, and added points
  • Reds Update
    • Events
      • Unit - A unit Dies
    • Conditions
      • (Unit-type of (Dying unit)) Equal to Peasant
    • Actions
      • -------- Red --------
      • Set Reds_player_setup = Player 1 (Red)
      • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
        • If - Conditions
          • (Owner of (Dying unit)) Equal to Player 2 (Blue)
        • Then - Actions
          • If (Red_Bet[1] Equal to Reds_player_setup) then do (Set Kudos[1] = (Kudos[1] + 11)) else do (Do nothing)
          • If (Red_Bet[2] Equal to Reds_player_setup) then do (Set Kudos[1] = (Kudos[1] + 10)) else do (Do nothing)
          • If (Red_Bet[3] Equal to Reds_player_setup) then do (Set Kudos[1] = (Kudos[1] + 9)) else do (Do nothing)
          • If (Red_Bet[4] Equal to Reds_player_setup) then do (Set Kudos[1] = (Kudos[1] + 8)) else do (Do nothing)
          • If (Red_Bet[5] Equal to Reds_player_setup) then do (Set Kudos[1] = (Kudos[1] + 7)) else do (Do nothing)
          • If (Red_Bet[6] Equal to Reds_player_setup) then do (Set Kudos[1] = (Kudos[1] + 6)) else do (Do nothing)
          • If (Red_Bet[7] Equal to Reds_player_setup) then do (Set Kudos[1] = (Kudos[1] + 5)) else do (Do nothing)
          • If (Red_Bet[8] Equal to Reds_player_setup) then do (Set Kudos[1] = (Kudos[1] + 4)) else do (Do nothing)
          • If (Red_Bet[9] Equal to Reds_player_setup) then do (Set Kudos[1] = (Kudos[1] + 3)) else do (Do nothing)
          • If (Red_Bet[10] Equal to Reds_player_setup) then do (Set Kudos[1] = (Kudos[1] + 2)) else do (Do nothing)
          • If (Red_Bet[11] Equal to Reds_player_setup) then do (Set Kudos[1] = (Kudos[1] + 1)) else do (Do nothing)
          • Multiboard - Set the text for (Last created multiboard) item in column 2, row 2 to (String(Kudos[1]))
        • Else - Actions
      • -------- Blue --------
      • Set Reds_player_setup = Player 2 (Blue)
      • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
        • If - Conditions
          • (Owner of (Dying unit)) Equal to Player 2 (Blue)
        • Then - Actions
          • If (Red_Bet[1] Equal to Reds_player_setup) then do (Set Kudos[1] = (Kudos[1] + 11)) else do (Do nothing)
          • If (Red_Bet[2] Equal to Reds_player_setup) then do (Set Kudos[1] = (Kudos[1] + 10)) else do (Do nothing)
          • If (Red_Bet[3] Equal to Reds_player_setup) then do (Set Kudos[1] = (Kudos[1] + 9)) else do (Do nothing)
          • If (Red_Bet[4] Equal to Reds_player_setup) then do (Set Kudos[1] = (Kudos[1] + 8)) else do (Do nothing)
          • If (Red_Bet[5] Equal to Reds_player_setup) then do (Set Kudos[1] = (Kudos[1] + 7)) else do (Do nothing)
          • If (Red_Bet[6] Equal to Reds_player_setup) then do (Set Kudos[1] = (Kudos[1] + 6)) else do (Do nothing)
          • If (Red_Bet[7] Equal to Reds_player_setup) then do (Set Kudos[1] = (Kudos[1] + 5)) else do (Do nothing)
          • If (Red_Bet[8] Equal to Reds_player_setup) then do (Set Kudos[1] = (Kudos[1] + 4)) else do (Do nothing)
          • If (Red_Bet[9] Equal to Reds_player_setup) then do (Set Kudos[1] = (Kudos[1] + 3)) else do (Do nothing)
          • If (Red_Bet[10] Equal to Reds_player_setup) then do (Set Kudos[1] = (Kudos[1] + 2)) else do (Do nothing)
          • If (Red_Bet[11] Equal to Reds_player_setup) then do (Set Kudos[1] = (Kudos[1] + 1)) else do (Do nothing)
          • Multiboard - Set the text for (Last created multiboard) item in column 2, row 2 to (String(Kudos[1]))
        • Else - Actions
      • -------- Teal --------
      • Set Reds_player_setup = Player 3 (Teal)
      • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
        • If - Conditions
          • (Owner of (Dying unit)) Equal to Player 3 (Teal)
        • Then - Actions
          • If (Red_Bet[1] Equal to Reds_player_setup) then do (Set Kudos[1] = (Kudos[1] + 11)) else do (Do nothing)
          • If (Red_Bet[2] Equal to Reds_player_setup) then do (Set Kudos[1] = (Kudos[1] + 10)) else do (Do nothing)
          • If (Red_Bet[3] Equal to Reds_player_setup) then do (Set Kudos[1] = (Kudos[1] + 9)) else do (Do nothing)
          • If (Red_Bet[4] Equal to Reds_player_setup) then do (Set Kudos[1] = (Kudos[1] + 8)) else do (Do nothing)
          • If (Red_Bet[5] Equal to Reds_player_setup) then do (Set Kudos[1] = (Kudos[1] + 7)) else do (Do nothing)
          • If (Red_Bet[6] Equal to Reds_player_setup) then do (Set Kudos[1] = (Kudos[1] + 6)) else do (Do nothing)
          • If (Red_Bet[7] Equal to Reds_player_setup) then do (Set Kudos[1] = (Kudos[1] + 5)) else do (Do nothing)
          • If (Red_Bet[8] Equal to Reds_player_setup) then do (Set Kudos[1] = (Kudos[1] + 4)) else do (Do nothing)
          • If (Red_Bet[9] Equal to Reds_player_setup) then do (Set Kudos[1] = (Kudos[1] + 3)) else do (Do nothing)
          • If (Red_Bet[10] Equal to Reds_player_setup) then do (Set Kudos[1] = (Kudos[1] + 2)) else do (Do nothing)
          • If (Red_Bet[11] Equal to Reds_player_setup) then do (Set Kudos[1] = (Kudos[1] + 1)) else do (Do nothing)
          • Wait 0.50 seconds
          • Multiboard - Set the text for (Last created multiboard) item in column 2, row 2 to (String(Kudos[1]))
        • Else - Actions
      • -------- Purple --------
      • Set Reds_player_setup = Player 4 (Purple)
      • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
        • If - Conditions
          • (Owner of (Dying unit)) Equal to Player 4 (Purple)
        • Then - Actions
          • If (Red_Bet[1] Equal to Reds_player_setup) then do (Set Kudos[1] = (Kudos[1] + 11)) else do (Do nothing)
          • If (Red_Bet[2] Equal to Reds_player_setup) then do (Set Kudos[1] = (Kudos[1] + 10)) else do (Do nothing)
          • If (Red_Bet[3] Equal to Reds_player_setup) then do (Set Kudos[1] = (Kudos[1] + 9)) else do (Do nothing)
          • If (Red_Bet[4] Equal to Reds_player_setup) then do (Set Kudos[1] = (Kudos[1] + 8)) else do (Do nothing)
          • If (Red_Bet[5] Equal to Reds_player_setup) then do (Set Kudos[1] = (Kudos[1] + 7)) else do (Do nothing)
          • If (Red_Bet[6] Equal to Reds_player_setup) then do (Set Kudos[1] = (Kudos[1] + 6)) else do (Do nothing)
          • If (Red_Bet[7] Equal to Reds_player_setup) then do (Set Kudos[1] = (Kudos[1] + 5)) else do (Do nothing)
          • If (Red_Bet[8] Equal to Reds_player_setup) then do (Set Kudos[1] = (Kudos[1] + 4)) else do (Do nothing)
          • If (Red_Bet[9] Equal to Reds_player_setup) then do (Set Kudos[1] = (Kudos[1] + 3)) else do (Do nothing)
          • If (Red_Bet[10] Equal to Reds_player_setup) then do (Set Kudos[1] = (Kudos[1] + 2)) else do (Do nothing)
          • If (Red_Bet[11] Equal to Reds_player_setup) then do (Set Kudos[1] = (Kudos[1] + 1)) else do (Do nothing)
          • Multiboard - Set the text for (Last created multiboard) item in column 2, row 2 to (String(Kudos[1]))
        • Else - Actions
      • -------- Yellow --------
      • Set Reds_player_setup = Player 5 (Yellow)
      • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
        • If - Conditions
          • (Owner of (Dying unit)) Equal to Player 5 (Yellow)
        • Then - Actions
          • If (Red_Bet[1] Equal to Reds_player_setup) then do (Set Kudos[1] = (Kudos[1] + 11)) else do (Do nothing)
          • If (Red_Bet[2] Equal to Reds_player_setup) then do (Set Kudos[1] = (Kudos[1] + 10)) else do (Do nothing)
          • If (Red_Bet[3] Equal to Reds_player_setup) then do (Set Kudos[1] = (Kudos[1] + 9)) else do (Do nothing)
          • If (Red_Bet[4] Equal to Reds_player_setup) then do (Set Kudos[1] = (Kudos[1] + 8)) else do (Do nothing)
          • If (Red_Bet[5] Equal to Reds_player_setup) then do (Set Kudos[1] = (Kudos[1] + 7)) else do (Do nothing)
          • If (Red_Bet[6] Equal to Reds_player_setup) then do (Set Kudos[1] = (Kudos[1] + 6)) else do (Do nothing)
          • If (Red_Bet[7] Equal to Reds_player_setup) then do (Set Kudos[1] = (Kudos[1] + 5)) else do (Do nothing)
          • If (Red_Bet[8] Equal to Reds_player_setup) then do (Set Kudos[1] = (Kudos[1] + 4)) else do (Do nothing)
          • If (Red_Bet[9] Equal to Reds_player_setup) then do (Set Kudos[1] = (Kudos[1] + 3)) else do (Do nothing)
          • If (Red_Bet[10] Equal to Reds_player_setup) then do (Set Kudos[1] = (Kudos[1] + 2)) else do (Do nothing)
          • If (Red_Bet[11] Equal to Reds_player_setup) then do (Set Kudos[1] = (Kudos[1] + 1)) else do (Do nothing)
          • Multiboard - Set the text for (Last created multiboard) item in column 2, row 2 to (String(Kudos[1]))
        • Else - Actions
      • -------- Orange --------
      • Set Reds_player_setup = Player 6 (Orange)
      • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
        • If - Conditions
          • (Owner of (Dying unit)) Equal to Player 6 (Orange)
        • Then - Actions
          • If (Red_Bet[1] Equal to Reds_player_setup) then do (Set Kudos[1] = (Kudos[1] + 11)) else do (Do nothing)
          • If (Red_Bet[2] Equal to Reds_player_setup) then do (Set Kudos[1] = (Kudos[1] + 10)) else do (Do nothing)
          • If (Red_Bet[3] Equal to Reds_player_setup) then do (Set Kudos[1] = (Kudos[1] + 9)) else do (Do nothing)
          • If (Red_Bet[4] Equal to Reds_player_setup) then do (Set Kudos[1] = (Kudos[1] + 8)) else do (Do nothing)
          • If (Red_Bet[5] Equal to Reds_player_setup) then do (Set Kudos[1] = (Kudos[1] + 7)) else do (Do nothing)
          • If (Red_Bet[6] Equal to Reds_player_setup) then do (Set Kudos[1] = (Kudos[1] + 6)) else do (Do nothing)
          • If (Red_Bet[7] Equal to Reds_player_setup) then do (Set Kudos[1] = (Kudos[1] + 5)) else do (Do nothing)
          • If (Red_Bet[8] Equal to Reds_player_setup) then do (Set Kudos[1] = (Kudos[1] + 4)) else do (Do nothing)
          • If (Red_Bet[9] Equal to Reds_player_setup) then do (Set Kudos[1] = (Kudos[1] + 3)) else do (Do nothing)
          • If (Red_Bet[10] Equal to Reds_player_setup) then do (Set Kudos[1] = (Kudos[1] + 2)) else do (Do nothing)
          • If (Red_Bet[11] Equal to Reds_player_setup) then do (Set Kudos[1] = (Kudos[1] + 1)) else do (Do nothing)
          • Multiboard - Set the text for (Last created multiboard) item in column 2, row 2 to (String(Kudos[1]))
        • Else - Actions
      • -------- Green --------
      • Set Reds_player_setup = Player 7 (Green)
      • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
        • If - Conditions
          • (Owner of (Dying unit)) Equal to Player 7 (Green)
        • Then - Actions
          • If (Red_Bet[1] Equal to Reds_player_setup) then do (Set Kudos[1] = (Kudos[1] + 11)) else do (Do nothing)
          • If (Red_Bet[2] Equal to Reds_player_setup) then do (Set Kudos[1] = (Kudos[1] + 10)) else do (Do nothing)
          • If (Red_Bet[3] Equal to Reds_player_setup) then do (Set Kudos[1] = (Kudos[1] + 9)) else do (Do nothing)
          • If (Red_Bet[4] Equal to Reds_player_setup) then do (Set Kudos[1] = (Kudos[1] + 8)) else do (Do nothing)
          • If (Red_Bet[5] Equal to Reds_player_setup) then do (Set Kudos[1] = (Kudos[1] + 7)) else do (Do nothing)
          • If (Red_Bet[6] Equal to Reds_player_setup) then do (Set Kudos[1] = (Kudos[1] + 6)) else do (Do nothing)
          • If (Red_Bet[7] Equal to Reds_player_setup) then do (Set Kudos[1] = (Kudos[1] + 5)) else do (Do nothing)
          • If (Red_Bet[8] Equal to Reds_player_setup) then do (Set Kudos[1] = (Kudos[1] + 4)) else do (Do nothing)
          • If (Red_Bet[9] Equal to Reds_player_setup) then do (Set Kudos[1] = (Kudos[1] + 3)) else do (Do nothing)
          • If (Red_Bet[10] Equal to Reds_player_setup) then do (Set Kudos[1] = (Kudos[1] + 2)) else do (Do nothing)
          • If (Red_Bet[11] Equal to Reds_player_setup) then do (Set Kudos[1] = (Kudos[1] + 1)) else do (Do nothing)
          • Multiboard - Set the text for (Last created multiboard) item in column 2, row 2 to (String(Kudos[1]))
        • Else - Actions
      • -------- Pink --------
      • Set Reds_player_setup = Player 8 (Pink)
      • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
        • If - Conditions
          • (Owner of (Dying unit)) Equal to Player 8 (Pink)
        • Then - Actions
          • If (Red_Bet[1] Equal to Reds_player_setup) then do (Set Kudos[1] = (Kudos[1] + 11)) else do (Do nothing)
          • If (Red_Bet[2] Equal to Reds_player_setup) then do (Set Kudos[1] = (Kudos[1] + 10)) else do (Do nothing)
          • If (Red_Bet[3] Equal to Reds_player_setup) then do (Set Kudos[1] = (Kudos[1] + 9)) else do (Do nothing)
          • If (Red_Bet[4] Equal to Reds_player_setup) then do (Set Kudos[1] = (Kudos[1] + 8)) else do (Do nothing)
          • If (Red_Bet[5] Equal to Reds_player_setup) then do (Set Kudos[1] = (Kudos[1] + 7)) else do (Do nothing)
          • If (Red_Bet[6] Equal to Reds_player_setup) then do (Set Kudos[1] = (Kudos[1] + 6)) else do (Do nothing)
          • If (Red_Bet[7] Equal to Reds_player_setup) then do (Set Kudos[1] = (Kudos[1] + 5)) else do (Do nothing)
          • If (Red_Bet[8] Equal to Reds_player_setup) then do (Set Kudos[1] = (Kudos[1] + 4)) else do (Do nothing)
          • If (Red_Bet[9] Equal to Reds_player_setup) then do (Set Kudos[1] = (Kudos[1] + 3)) else do (Do nothing)
          • If (Red_Bet[10] Equal to Reds_player_setup) then do (Set Kudos[1] = (Kudos[1] + 2)) else do (Do nothing)
          • If (Red_Bet[11] Equal to Reds_player_setup) then do (Set Kudos[1] = (Kudos[1] + 1)) else do (Do nothing)
          • Multiboard - Set the text for (Last created multiboard) item in column 2, row 2 to (String(Kudos[1]))
        • Else - Actions
      • -------- Grey --------
      • Set Reds_player_setup = Player 9 (Gray)
      • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
        • If - Conditions
          • (Owner of (Dying unit)) Equal to Player 8 (Pink)
        • Then - Actions
          • If (Red_Bet[1] Equal to Reds_player_setup) then do (Set Kudos[1] = (Kudos[1] + 11)) else do (Do nothing)
          • If (Red_Bet[2] Equal to Reds_player_setup) then do (Set Kudos[1] = (Kudos[1] + 10)) else do (Do nothing)
          • If (Red_Bet[3] Equal to Reds_player_setup) then do (Set Kudos[1] = (Kudos[1] + 9)) else do (Do nothing)
          • If (Red_Bet[4] Equal to Reds_player_setup) then do (Set Kudos[1] = (Kudos[1] + 8)) else do (Do nothing)
          • If (Red_Bet[5] Equal to Reds_player_setup) then do (Set Kudos[1] = (Kudos[1] + 7)) else do (Do nothing)
          • If (Red_Bet[6] Equal to Reds_player_setup) then do (Set Kudos[1] = (Kudos[1] + 6)) else do (Do nothing)
          • If (Red_Bet[7] Equal to Reds_player_setup) then do (Set Kudos[1] = (Kudos[1] + 5)) else do (Do nothing)
          • If (Red_Bet[8] Equal to Reds_player_setup) then do (Set Kudos[1] = (Kudos[1] + 4)) else do (Do nothing)
          • If (Red_Bet[9] Equal to Reds_player_setup) then do (Set Kudos[1] = (Kudos[1] + 3)) else do (Do nothing)
          • If (Red_Bet[10] Equal to Reds_player_setup) then do (Set Kudos[1] = (Kudos[1] + 2)) else do (Do nothing)
          • If (Red_Bet[11] Equal to Reds_player_setup) then do (Set Kudos[1] = (Kudos[1] + 1)) else do (Do nothing)
          • Multiboard - Set the text for (Last created multiboard) item in column 2, row 2 to (String(Kudos[1]))
        • Else - Actions
      • -------- Light Blue --------
      • Set Reds_player_setup = Player 10 (Light Blue)
      • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
        • If - Conditions
          • (Owner of (Dying unit)) Equal to Player 8 (Pink)
        • Then - Actions
          • If (Red_Bet[1] Equal to Reds_player_setup) then do (Set Kudos[1] = (Kudos[1] + 11)) else do (Do nothing)
          • If (Red_Bet[2] Equal to Reds_player_setup) then do (Set Kudos[1] = (Kudos[1] + 10)) else do (Do nothing)
          • If (Red_Bet[3] Equal to Reds_player_setup) then do (Set Kudos[1] = (Kudos[1] + 9)) else do (Do nothing)
          • If (Red_Bet[4] Equal to Reds_player_setup) then do (Set Kudos[1] = (Kudos[1] + 8)) else do (Do nothing)
          • If (Red_Bet[5] Equal to Reds_player_setup) then do (Set Kudos[1] = (Kudos[1] + 7)) else do (Do nothing)
          • If (Red_Bet[6] Equal to Reds_player_setup) then do (Set Kudos[1] = (Kudos[1] + 6)) else do (Do nothing)
          • If (Red_Bet[7] Equal to Reds_player_setup) then do (Set Kudos[1] = (Kudos[1] + 5)) else do (Do nothing)
          • If (Red_Bet[8] Equal to Reds_player_setup) then do (Set Kudos[1] = (Kudos[1] + 4)) else do (Do nothing)
          • If (Red_Bet[9] Equal to Reds_player_setup) then do (Set Kudos[1] = (Kudos[1] + 3)) else do (Do nothing)
          • If (Red_Bet[10] Equal to Reds_player_setup) then do (Set Kudos[1] = (Kudos[1] + 2)) else do (Do nothing)
          • If (Red_Bet[11] Equal to Reds_player_setup) then do (Set Kudos[1] = (Kudos[1] + 1)) else do (Do nothing)
          • Multiboard - Set the text for (Last created multiboard) item in column 2, row 2 to (String(Kudos[1]))
        • Else - Actions
      • -------- Dark Green --------
      • Set Reds_player_setup = Player 11 (Dark Green)
      • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
        • If - Conditions
          • (Owner of (Dying unit)) Equal to Player 8 (Pink)
        • Then - Actions
          • If (Red_Bet[1] Equal to Reds_player_setup) then do (Set Kudos[1] = (Kudos[1] + 11)) else do (Do nothing)
          • If (Red_Bet[2] Equal to Reds_player_setup) then do (Set Kudos[1] = (Kudos[1] + 10)) else do (Do nothing)
          • If (Red_Bet[3] Equal to Reds_player_setup) then do (Set Kudos[1] = (Kudos[1] + 9)) else do (Do nothing)
          • If (Red_Bet[4] Equal to Reds_player_setup) then do (Set Kudos[1] = (Kudos[1] + 8)) else do (Do nothing)
          • If (Red_Bet[5] Equal to Reds_player_setup) then do (Set Kudos[1] = (Kudos[1] + 7)) else do (Do nothing)
          • If (Red_Bet[6] Equal to Reds_player_setup) then do (Set Kudos[1] = (Kudos[1] + 6)) else do (Do nothing)
          • If (Red_Bet[7] Equal to Reds_player_setup) then do (Set Kudos[1] = (Kudos[1] + 5)) else do (Do nothing)
          • If (Red_Bet[8] Equal to Reds_player_setup) then do (Set Kudos[1] = (Kudos[1] + 4)) else do (Do nothing)
          • If (Red_Bet[9] Equal to Reds_player_setup) then do (Set Kudos[1] = (Kudos[1] + 3)) else do (Do nothing)
          • If (Red_Bet[10] Equal to Reds_player_setup) then do (Set Kudos[1] = (Kudos[1] + 2)) else do (Do nothing)
          • If (Red_Bet[11] Equal to Reds_player_setup) then do (Set Kudos[1] = (Kudos[1] + 1)) else do (Do nothing)
          • Multiboard - Set the text for (Last created multiboard) item in column 2, row 2 to (String(Kudos[1]))
        • Else - Actions
      • -------- Brown --------
      • Set Reds_player_setup = Player 12 (Brown)
      • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
        • If - Conditions
          • (Owner of (Dying unit)) Equal to Player 8 (Pink)
        • Then - Actions
          • If (Red_Bet[1] Equal to Reds_player_setup) then do (Set Kudos[1] = (Kudos[1] + 11)) else do (Do nothing)
          • If (Red_Bet[2] Equal to Reds_player_setup) then do (Set Kudos[1] = (Kudos[1] + 10)) else do (Do nothing)
          • If (Red_Bet[3] Equal to Reds_player_setup) then do (Set Kudos[1] = (Kudos[1] + 9)) else do (Do nothing)
          • If (Red_Bet[4] Equal to Reds_player_setup) then do (Set Kudos[1] = (Kudos[1] + 8)) else do (Do nothing)
          • If (Red_Bet[5] Equal to Reds_player_setup) then do (Set Kudos[1] = (Kudos[1] + 7)) else do (Do nothing)
          • If (Red_Bet[6] Equal to Reds_player_setup) then do (Set Kudos[1] = (Kudos[1] + 6)) else do (Do nothing)
          • If (Red_Bet[7] Equal to Reds_player_setup) then do (Set Kudos[1] = (Kudos[1] + 5)) else do (Do nothing)
          • If (Red_Bet[8] Equal to Reds_player_setup) then do (Set Kudos[1] = (Kudos[1] + 4)) else do (Do nothing)
          • If (Red_Bet[9] Equal to Reds_player_setup) then do (Set Kudos[1] = (Kudos[1] + 3)) else do (Do nothing)
          • If (Red_Bet[10] Equal to Reds_player_setup) then do (Set Kudos[1] = (Kudos[1] + 2)) else do (Do nothing)
          • If (Red_Bet[11] Equal to Reds_player_setup) then do (Set Kudos[1] = (Kudos[1] + 1)) else do (Do nothing)
          • Multiboard - Set the text for (Last created multiboard) item in column 2, row 2 to (String(Kudos[1]))
        • Else - Actions
 
Level 6
Joined
Feb 2, 2005
Messages
205
Ow thats a heck long Trigger.... But hey you can shorten it with loops :)

Just add Those
  • Events
    • Map Ini
  • Actions
    • set ClickMe[1]=Click me to bet on this color. 0068 <gen>
    • set ClickMe[2]=Click me to bet on this color. 0010 <gen>
  • Red bet
    • Events
      • Player - Player 1 (Red) Selects a unit
    • Conditions
    • Actions
      • For each (Y) from 1 to 12, do (Actions)
        • Loop - Actions
          • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
            • If - Conditions
              • (ClickMe[Y] is selected by Player 1 (Red)) Equal to True
          • Then - Actions
            • Set Player[1] = Y
            • Set Slot_nr[1] = (Slot_nr[1] + 1)
            • For each (X) from 1 to 11, do (Actions)
              • Loop - Actions
                • If (Slot_nr[1] Equal to X) then do (Set Red_Bet[X] = (Player(Player[1]))) else do (Do nothing)
  • Reds Update
    • Events
      • Unit - A unit Dies
    • Conditions
      • (Unit-type of (Dying unit)) Equal to Peasant
    • Actions
      • For each (V) from 1 to 12, do (Actions)
        • Loop - Actions
          • Set Reds_player_setup = Converted Player Index(V)
          • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
            • If - Conditions
              • (Owner of (Dying unit)) Equal to Reds_player_setup
          • Then - Actions
            • For each (W) from 1 to 12, do (Actions)
              • Loop - Actions
                • If (Red_Bet[W] Equal to Reds_player_setup) then do (Set Kudos[1] = (Kudos[1] + (12 - W)) else do (Do nothing)
            • Multiboard - Set the text for (Last created multiboard) item in column 2, row 2 to (String(Kudos[1]))
        • Else - Actions
Note all those Variables are created integers, you will need an Unit-Type Array ClickMe.

There is a Mistake with your First if in the second Trigger btw It Should be
  • (Owner of (Dying unit)) Equal to Player 1 (Red)
  • Not
  • (Owner of (Dying unit)) Equal to Player 2 (Blue)
Could you give a quick discription of what this trigger is supossed to do, so i can get an idea what could be wrong.

If you want i can also create you an ultimative Trigger which does all in one, for betting and for the update Trigger :)
 
Level 8
Joined
Jul 3, 2004
Messages
404
ok... i'll try to understand that, having problem understanding stuff when using letters insted of numbers...

There is a Mistake with your First if in the second Trigger btw It Should be
  • (Owner of (Dying unit)) Equal to Player 1 (Red)
  • Not
  • (Owner of (Dying unit)) Equal to Player 2 (Blue)
Could you give a quick discription of what this trigger is supossed to do, so i can get an idea what could be wrong.

If you want i can also create you an ultimative Trigger which does all in one, for betting and for the update Trigger :)

Just ignore that, it was for Player Red's part of the Unit killed trigger.
 
Status
Not open for further replies.
Top