• 🏆 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] Why does it not work?

Status
Not open for further replies.
Level 17
Joined
Jun 12, 2007
Messages
1,261
This trigger does not work for me:

  • For each (Integer A) from 1 to 8, do (Actions)
    • Loop - Actions
      • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
        • If - Conditions
          • ((Player((Integer A))) slot status) Equal to Is playing
        • Then - Actions
          • Multiboard - Set the text for GameStats item in column 1, row ((Integer A) + 1) to (PlayerColor[(Integer A)] + (Name of (Player((Integer A)))))
          • Multiboard - Set the text for GameStats item in column 2, row ((Integer A) + 1) to (PlayerColor[7] + Alive)
          • Multiboard - Set the text for GameStats item in column 4, row ((Integer A) + 1) to (String(PlayerKills[(Player number of (Player((Integer A))))]))
          • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
            • If - Conditions
              • PlayerRessurectsUnlimited Equal to False
            • Then - Actions
              • Multiboard - Set the text for GameStats item in column 5, row ((Integer A) + 1) to (String(PlayerRessurects[(Player number of (Player((Integer A))))]))
            • Else - Actions
              • Multiboard - Set the text for GameStats item in column 5, row (Player number of (Player((Integer A)))) to Unlimited
        • Else - Actions
          • Multiboard - Set the text for GameStats item in column 1, row (Player number of (Player((Integer A)))) to |cff949596N/A
I will set the name of player red just fine, but when there are multiple players it will just freak out and fill in N/A instaid of their names.
 
Status
Not open for further replies.
Top