- Joined
- Jan 9, 2016
- Messages
- 1,487
I'm creating a custom training system that works entirely with triggers. Checking for player's food available food doesn't seem to exist in the Integer - Player Properties.
There must be some weird math to get the player's available food, right? I tried most of the calculations but none of them seem to be working. It would work like this:
- Player has 4 out of 10 available food.
- Player attempts to train a unit that costs 5 food.
- Player will get an error saying they don't have enough food.
Thanks in advanced.
There must be some weird math to get the player's available food, right? I tried most of the calculations but none of them seem to be working. It would work like this:
- Player has 4 out of 10 available food.
- Player attempts to train a unit that costs 5 food.
- Player will get an error saying they don't have enough food.
Thanks in advanced.