• 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] 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
 
Level 5
Joined
Aug 16, 2007
Messages
149
yes you can do it in GUI:
  • Custom script: if GetLocalPlayer() == udg_MyPlayer then
  • Multiboard - Show MyBoard.
  • Custom script: endif
 
Level 9
Joined
May 27, 2006
Messages
498
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.
Top