Warcraft III resources & community, 2003–2006 · archived

Trigger that displays each players wood(income)

6 posts
#1

Trigger that displays each players wood(income)

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.
#2
Like in a Line tower war? Or how much income they are harvesting?
#3
Like in line tower war when it says everyones income.
#4
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
#5
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?
#6
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.