Is there a way to fire a trigger ONCE when the player has a random amount of minerals, say between 100-199? And then once again when the player has 200-299 minerals?? This trigger would only fire the first time the number of minerals passes 100, or 200, for example. Can somebody point me in the right direction?
I think there is no event for mineral checking, so you'll need to do a loop. Call a trigger when you want, and do something like this, first create some variables:
Boolean Reward_100[8] (or the number of players you have)
Boolean Reward_200[8]
There is an event that will trigger when the amount of minerals a player has changes, and you can get the player number for the triggering player, but beyond that, Fr0d0b0ls0n's algorithm will do what you need.
Rollback Post to RevisionRollBack
To post a comment, please login or register a new account.
Is there a way to fire a trigger ONCE when the player has a random amount of minerals, say between 100-199? And then once again when the player has 200-299 minerals?? This trigger would only fire the first time the number of minerals passes 100, or 200, for example. Can somebody point me in the right direction?
Thanks :)
I think there is no event for mineral checking, so you'll need to do a loop. Call a trigger when you want, and do something like this, first create some variables:
Boolean Reward_100[8] (or the number of players you have)
Boolean Reward_200[8]
@fr0d0b0ls0n: Go
There is an event that will trigger when the amount of minerals a player has changes, and you can get the player number for the triggering player, but beyond that, Fr0d0b0ls0n's algorithm will do what you need.