• 🏆 Texturing Contest #33 is OPEN! Contestants must re-texture a SD unit model found in-game (Warcraft 3 Classic), recreating the unit into a peaceful NPC version. 🔗Click here to enter!
  • 🏆 Hive's 6th HD Modeling Contest: Mechanical is now open! Design and model a mechanical creature, mechanized animal, a futuristic robotic being, or anything else your imagination can tinker with! 📅 Submissions close on June 30, 2024. Don't miss this opportunity to let your creativity shine! Enter now and show us your mechanical masterpiece!🔗 Click here to enter!

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