• 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 that displays each players wood(income)

Status
Not open for further replies.
Level 3
Joined
Dec 19, 2004
Messages
23
I'm back with another trigger question. The set up I am doing with income is based on each player's income being equal to the lumber they have. I have the trigger for each players income timer but I don't know how to make it display a text message with each player's {by name or color} income. Any ideas? Thanks.
 
Level 16
Joined
Sep 3, 2004
Messages
2,086
You create an integer variable for each player, and a leaderboard variable. Make sure it can be modified by a different trigger which manages income, then run this
Event
Every 15 seconds
Condition
Action
For each integer A from 1-(last slot for a player), do actions
Add Income(IntegerA) to Player IntegerA's wood
Set Player(IntegerA)'s score in LeaderboardVar to Income(INtegerA)
-End Loop
 
Level 3
Joined
Dec 19, 2004
Messages
23
You have no idea how confusing that is to a person like me, i've been trying to figure it out for like half an hour. Could you please specify?
 
Level 3
Joined
Dec 19, 2004
Messages
23
Oh nevermind, I figured it out.

Events

Conditions

Actions

Set the text for (Last created multiboard) item in column 3, row 2 to (String((Player 1 (Red) Current lumber)))


This Trigger is activated 1 second after the income timer goes off. Thanks for the help.
 
Status
Not open for further replies.
Top