• Listen to a special audio message from Bill Roper to the Hive Workshop community (Bill is a former Vice President of Blizzard Entertainment, Producer, Designer, Musician, Voice Actor) 🔗Click here to hear his message!
  • Read Evilhog's interview with Gregory Alper, the original composer of the music for WarCraft: Orcs & Humans 🔗Click here to read the full interview.

[Trigger] Looping problem

Status
Not open for further replies.
Level 3
Joined
Jul 13, 2008
Messages
38
Here is the snipet:

  • Actions
    • -------- Layout --------
    • Multiboard - Create a multiboard with 4 columns and 13 rows, titled Land o' Heros
    • Multiboard - Set the text for (Last created multiboard) item in column 1, row 1 to Name
    • Multiboard - Set the text for (Last created multiboard) item in column 2, row 1 to H.Kills
    • Multiboard - Set the text for (Last created multiboard) item in column 3, row 1 to Deaths
    • Multiboard - Set the text for (Last created multiboard) item in column 4, row 1 to U.Kills
    • For each (Integer A) from 1 to 13, do (Actions)
      • Loop - Actions
        • Multiboard - Set the width for (Last created multiboard) item in column 1, row (Integer A) to 6.00% of the total screen width
        • Multiboard - Set the width for (Last created multiboard) item in column 2, row (Integer A) to 5.00% of the total screen width
        • Multiboard - Set the width for (Last created multiboard) item in column 3, row (Integer A) to 5.50% of the total screen width
        • Multiboard - Set the width for (Last created multiboard) item in column 4, row (Integer A) to 5.00% of the total screen width
    • -------- Team 1 --------
    • Multiboard - Set the text for (Last created multiboard) item in column 1, row 2 to |c00FF0303Team 1|r
    • Multiboard - Set the text for (Last created multiboard) item in column 2, row 2 to (String(MB_TeamKills[1]))
    • Multiboard - Set the text for (Last created multiboard) item in column 3, row 2 to (String(MB_TeamDeaths[1]))
    • Multiboard - Set the text for (Last created multiboard) item in column 4, row 2 to (String(MB_UnitKills[1]))
    • For each (Integer A) from 3 to 8, do (Actions)
      • Loop - Actions
        • Multiboard - Set the text for (Last created multiboard) item in column 1, row (Integer A) to (Color[((Integer A) - 2)] + (MB_PlayerNames[((Integer A) - 2)] + |r))
        • Multiboard - Set the text for (Last created multiboard) item in column 2, row (Integer A) to (String(MB_HeroKills[((Integer A) - 2)]))
        • Multiboard - Set the text for (Last created multiboard) item in column 3, row (Integer A) to (String(MB_HeroDeaths[((Integer A) - 2)]))
        • Multiboard - Set the text for (Last created multiboard) item in column 4, row (Integer A) to (String(MB_UnitKills[((Integer A) - 2)]))
    • -------- Team 2 --------
    • Multiboard - Set the text for (Last created multiboard) item in column 1, row 9 to |c0020C000Team 2|r
    • Multiboard - Set the text for (Last created multiboard) item in column 2, row 9 to (String(MB_TeamKills[2]))
    • Multiboard - Set the text for (Last created multiboard) item in column 3, row 9 to (String(MB_TeamDeaths[2]))
    • Multiboard - Set the text for (Last created multiboard) item in column 4, row 9 to (String(MB_UnitKills[1]))
    • For each (Integer A) from 10 to 16, do (Actions)
      • Loop - Actions
        • Multiboard - Set the text for (Last created multiboard) item in column 1, row (Integer A) to (Color[((Integer A) - 3)] + (MB_PlayerNames[((Integer A) - 3)] + |r))
        • Multiboard - Set the text for (Last created multiboard) item in column 2, row (Integer A) to (String(MB_HeroKills[((Integer A) - 3)]))
        • Multiboard - Set the text for (Last created multiboard) item in column 3, row (Integer A) to (String(MB_HeroDeaths[((Integer A) - 3)]))
        • Multiboard - Set the text for (Last created multiboard) item in column 4, row (Integer A) to (String(MB_UnitKills[((Integer A) - 3)]))
    • Multiboard - Show (Last created multiboard)
Everything seems to run like it should and on most maps this has always been a smooth flowing script. The only problem now is i imported it to a new map and tweeked some of it and now it shows this in game:
Untitled.png


If you notice in Row 3 it comes up as a offline user. And in another trigger it checkes for player actaviness so that is not the problem it has to be some where in here.

Can some one look over this all and help. thanks.

{EDIT 1}
Thoguht this might be usefull also. This trigger checkes player names.

Actions
For each (Integer A) from 1 to 12, do (Actions)
Loop - Actions
If (((Player((Integer A))) slot status) Equal to Is playing) then do (Set MB_PlayerNames[(Integer A)] = (Color[(Integer A)] + ((Name of (Player((Integer A)))) + |r))) else do (Set MB_PlayerNames[(Integer A)] = |c004F4F4F Offline |r)

{EDIT 2}
I think i found out the problem lol.

I set player 1 as none and in triggers i re added him in game as a computer which clashed with the multiboard. I have not fully solved the problem but now that i know where to start looking i can fix it.
 
Last edited by a moderator:
  • Angry
Reactions: Rui
Status
Not open for further replies.
Top