W
WantlessPowe
Guest
I'm trying to display a text message the amount of food used by a player
and theres no function to do it
and theres no function to do it
Untitled Trigger 001
Events
Player - Player 1 (Red) types a chat message containing -Food of Player 2 as An exact match
Conditions
Actions
Floating Text - Create floating text that reads (Food of player 2 is + (String((Player 2 (Blue) Food used)))) at (Target of current camera view) with Z offset 0.00, using font size 10.00, color (100.00%, 100.00%, 100.00%), and 0.00% transparency
Debug
Events
Player - Player 12 (Brown)'s Food used becomes Less than 1000.00
Conditions
Actions
Game - Display to (All players) the text: (String((Player 12 (Brown) Food used)))
Yes, but in a melee game, or games you build units you usally start with a builder. So the build would count as used food. Unless the builders in the map don't use up food.AceHart said:It's an event. Means it waits until something happens. Once done, it keeps waiting for the next event.
Ah, thanks for making that clear AceHart.AceHart said:So, it won't show or do anything until there is, you guessed it, an actual event.
Does that work with the create unit function? if it does, that would probably be enough for this.the Lumpy said:For events you could try "Unit - A unit enters (Playable map area)" or "Unit - A unit Finishes training a unit".