• 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] help with multiboard concerning resources

Status
Not open for further replies.
Level 2
Joined
Mar 21, 2010
Messages
7
Hi

I want my multiboard to show and to update the amount of gold that each participating player currently holds.



what I’ve got till now:

1.jpg



2.jpg





But I can’t set a string to current gold amount, and I can’t set an Integer (which I can set to current gold amount) on my multiboard


if this question has already been discussed sorry for asking again but I could find an equal thread – maybe someone could post a link?
 
Level 11
Joined
Jan 25, 2009
Messages
572
This should be it. Play around with it some if you want to change colour and stuffs like that. And also, use a periodic event with the time as the income (if you have one) interval is to update this line.
  • Multiboard - Set the text for (Last created multiboard) item in column 1, row 1 to (String((Player 1 (Red) Current gold)))
 
Level 13
Joined
Apr 15, 2008
Messages
1,063
Well the problem is that if you set multiboard text to some value in a variable, it won't hold on to that variable's value. It only updates the multiboard text when you use the "Multiboard - set text", so as tjordell said replace the "Set integer..." with "Multiboard - set text".
You could also turn on/off advanced unit sharing, which creates multiboard with lumber, gold and food :grin:

Last thing: When you are copying triggers from World Editor, you can use "Copy as Text" (CTRL+SHIFT+C i think) and then paste it in the
  • tag.
 
Status
Not open for further replies.
Top