Muiltiboard - updating players gold??

millzy

Ultra Cool Member
Reaction score
44
i have created my muilti bored but what do i use for a trigger to update the players gold amount on the muiltiboard

what event would i use
condition

Set Gold_amount[1(blah blah blah for each player)]= players current gold
multiboard - set the text in colum x row x = Gold_amount
 

Komaqtion

You can change this now in User CP.
Reaction score
469
Here's an example of what I've used:
Trigger:
  • Multiboard with Resources Init
    • Events
      • Time - Elapsed game time is 0.01 seconds
    • Conditions
    • Actions
      • Set PlayingPlayers = (All players matching ((((Matching player) controller) Equal to User) and (((Matching player) slot status) Equal to Is playing)))
      • Multiboard - Create a multiboard with 3 columns and ((Number of players in PlayingPlayers) + 2) rows, titled Player's Resources
      • Set ResourceBoard = (Last created multiboard)
      • Multiboard - Hide ResourceBoard
      • Multiboard - Set the display style for ResourceBoard item in column 0, row 0 to Show text and Hide icons
      • Multiboard - Set the text for ResourceBoard item in column 1, row 1 to Player
      • Multiboard - Set the text for ResourceBoard item in column 2, row 1 to Gold
      • Multiboard - Set the text for ResourceBoard item in column 3, row 1 to Lumber
      • For each (Integer A) from 1 to (Number of players in PlayingPlayers), do (Actions)
        • Loop - Actions
          • Multiboard - Set the text for ResourceBoard item in column 1, row ((Integer A) + 1) to (Name of (Player((Integer A))))
          • Multiboard - Set the text for ResourceBoard item in column 2, row ((Integer A) + 1) to (String(((Player((Integer A))) Current gold)))
          • Multiboard - Set the text for ResourceBoard item in column 3, row ((Integer A) + 1) to (String(((Player((Integer A))) Current lumber)))
      • Multiboard - Set the width for ResourceBoard item in column 0, row 0 to 4.50% of the total screen width
      • Multiboard - Show ResourceBoard
      • Custom script: call DestroyForce( udg_PlayingPlayers )


Trigger:
  • Multiboard with Resources Update Gold
    • Events
      • Player - Player 1 (Red)'s Current gold becomes Greater than 0.00
      • Player - Player 2 (Blue)'s Current gold becomes Greater than 0.00
      • Player - Player 3 (Teal)'s Current gold becomes Greater than 0.00
      • Player - Player 4 (Purple)'s Current gold becomes Greater than 0.00
      • Player - Player 5 (Yellow)'s Current gold becomes Greater than 0.00
      • Player - Player 6 (Orange)'s Current gold becomes Greater than 0.00
      • Player - Player 7 (Green)'s Current gold becomes Greater than 0.00
      • Player - Player 8 (Pink)'s Current gold becomes Greater than 0.00
      • Player - Player 9 (Gray)'s Current gold becomes Greater than 0.00
      • Player - Player 10 (Light Blue)'s Current gold becomes Greater than 0.00
      • Player - Player 11 (Dark Green)'s Current gold becomes Greater than 0.00
      • Player - Player 12 (Brown)'s Current gold becomes Greater than 0.00
    • Conditions
    • Actions
      • Multiboard - Set the text for ResourceBoard item in column 2, row ((Player number of (Triggering player)) + 1) to (String(((Triggering player) Current gold)))


Trigger:
  • Multiboard with Resources Update Lumber
    • Events
      • Player - Player 1 (Red)'s Current lumber becomes Greater than 0.00
      • Player - Player 2 (Blue)'s Current lumber becomes Greater than 0.00
      • Player - Player 3 (Teal)'s Current lumber becomes Greater than 0.00
      • Player - Player 4 (Purple)'s Current lumber becomes Greater than 0.00
      • Player - Player 5 (Yellow)'s Current lumber becomes Greater than 0.00
      • Player - Player 6 (Orange)'s Current lumber becomes Greater than 0.00
      • Player - Player 7 (Green)'s Current lumber becomes Greater than 0.00
      • Player - Player 8 (Pink)'s Current lumber becomes Greater than 0.00
      • Player - Player 9 (Gray)'s Current lumber becomes Greater than 0.00
      • Player - Player 10 (Light Blue)'s Current lumber becomes Greater than 0.00
      • Player - Player 11 (Dark Green)'s Current lumber becomes Greater than 0.00
      • Player - Player 12 (Brown)'s Current lumber becomes Greater than 0.00
    • Conditions
    • Actions
      • Multiboard - Set the text for ResourceBoard item in column 3, row ((Player number of (Triggering player)) + 1) to (String(((Triggering player) Current gold)))


Works like a charm ;)
 
General chit-chat
Help Users
  • No one is chatting at the moment.

      The Helper Discord

      Members online

      No members online now.

      Affiliates

      Hive Workshop NUON Dome World Editor Tutorials

      Network Sponsors

      Apex Steel Pipe - Buys and sells Steel Pipe.
      Top