[Trigger] a resouce multiboard

Status
Not open for further replies.
Level 13
Joined
Sep 24, 2007
Messages
1,023
well i was wondering if anyone could show me how to make a multiboard for a few reosuses


look sometihng like this the (im using the smilies as the icons)

:grin: guns 20
:wink: metal 20
:thumbs_up: oil 20


and if the resouce go to zero you cant buy something using that resouce
 
yes you can do it in GUI:
  • Custom script: if GetLocalPlayer() == udg_MyPlayer then
  • Multiboard - Show MyBoard.
  • Custom script: endif
 
I was wrong. It can be done using pure GUI, but you'll have to use a leaderboard instead of multiboard:

  • LeaderboardResource
    • Events:
      • Time - Elapsed game time is 0.01 seconds
    • Conditions:
    • Actions:
      • For each (Integer A) from 1 to 10, do (Actions)
        • Loop - Actions
          • Leaderboard - Create a leaderboard for (Player group((Player((Integer A))))) titled Resources:
          • Leaderboard - Add Player 1 (Red) to (Last created leaderboard) with label Guns: and value 0
          • Leaderboard - Add Player 2 (Blue) to (Last created leaderboard) with label Metal: and value 0
          • Leaderboard - Add Player 3 (Teal) to (Last created leaderboard) with label Oil: and value 0
          • Leaderboard - Show (Last created leaderboard)
          • Set Leaderboard[(Integer A)] = (Last created leaderboard)
  • RefreshLeaderboard
    • Events:
      • Time - Every 0.20 seconds of game time
    • Conditions:
    • Actions:
      • For each (Integer A) from 1 to 10, do (Actions)
        • Loop - Actions:
          • Leaderboard - Change the value for Player 1 (Red) in Leaderboard[(Integer A)] to guns[(Integer A)]
          • Leaderboard - Change the value for Player 2 (Blue) in Leaderboard[(Integer A)] to metal[(Integer A)]
          • Leaderboard - Change the value for Player 3 (Teal) in Leaderboard[(Integer A)] to oil[(Integer A)]
 
Status
Not open for further replies.
Back
Top