Trigger not working.

HeX.16

Isn't Trollin You Right Now
Reaction score
131
Trigger:
  • Attack Setup
    • Events
      • Map initialization
    • Conditions
    • Actions
      • Set ComputerPlayers = (All players matching (((Matching player) controller) Equal to Computer))
      • Set AttackRegions[1] = Blink 1 <gen>
      • Set AttackRegions[2] = Blink 2 <gen>
      • Set AttackRegions[3] = Blink 3 <gen>
      • Set AttackRegions[4] = Blink 4 <gen>
      • Set AttackRegions[5] = Mass Here <gen>
      • Set TownHalls[1] = Tier Zero (foots) 0037 <gen>
      • Set TownHalls[2] = Tier Zero (foots) 0038 <gen>
      • Set TownHalls[3] = Tier Zero (foots) 0039 <gen>
      • Set TownHalls[4] = Tier Zero (foots) 0040 <gen>
      • Set TownHalls[5] = Tier Zero (foots) 0041 <gen>
      • Set TownHalls[6] = Tier Zero (foots) 0042 <gen>
      • Set TownHalls[7] = Tier Zero (foots) 0043 <gen>
      • Set TownHalls[8] = Tier Zero (foots) 0044 <gen>
      • Set TownHalls[9] = Tier Zero (foots) 0045 <gen>
      • Set TownHalls[10] = Tier Zero (foots) 0046 <gen>
      • Set TownHalls[11] = Tier Zero (foots) 0047 <gen>
      • Set TownHalls[12] = Tier Zero (foots) 0048 <gen>


Trigger:
  • Upgrade Tiers Setup
    • Events
      • Time - Elapsed game time is 0.05 seconds
    • Conditions
    • Actions
      • Player Group - Pick every player in ComputerPlayers and do (Actions)
        • Loop - Actions
          • Trigger - Add to Upgrade Tiers <gen> the event (Player - (Picked player)'s Current gold becomes Greater than or equal to 1050.00)


Trigger:
  • Upgrade Tiers
    • Events
    • Conditions
    • Actions
      • Game - Display to (All players) the text: (Name of the current trigger)
      • Set TempInteger = (Random integer number between 1 and 5)
      • Selection - Select TownHalls[(Player number of (Triggering player))] for (Triggering player)
      • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
        • If - Conditions
          • TempInteger Equal to 1
        • Then - Actions
          • Game - Force (Triggering player) to press the key Z
        • Else - Actions
          • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
            • If - Conditions
              • TempInteger Equal to 2
            • Then - Actions
              • Game - Force (Triggering player) to press the key X
            • Else - Actions
              • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
                • If - Conditions
                  • TempInteger Equal to 3
                • Then - Actions
                  • Game - Force (Triggering player) to press the key C
                • Else - Actions
                  • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
                    • If - Conditions
                      • TempInteger Equal to 4
                    • Then - Actions
                      • Game - Force (Triggering player) to press the key V
                    • Else - Actions
                      • Game - Force (Triggering player) to press the key A
      • Selection - Clear selection for (Triggering player)


Any idea what is wrong?
ALL the triggers do run, but no upgrade is done.
 

HydraRancher

Truth begins in lies
Reaction score
197
Erm, where exactly is the upgrade being done? I assume that the Force player is to upgrade, why don't you just order the unit to upgrade?
 
General chit-chat
Help Users
  • No one is chatting at the moment.

      The Helper Discord

      Staff online

      Members online

      Affiliates

      Hive Workshop NUON Dome World Editor Tutorials

      Network Sponsors

      Apex Steel Pipe - Buys and sells Steel Pipe.
      Top