As the Topic? Whats the Most efficient way to Trigger a Player to gain +1 Gas every 20 Kills?
Will need to work for 6 Players (however i can copy paste and change Player numbers if need be). This trigger needs to run the entire game giving 1 Gas every 20 kills.
I have a 2 methods so far, but they are rather clumbsy and sometimes miss Kill Counts.
Create a Global Variable as a Integer Array with a 15 max
As units die increment the value in the array by +1 based by index of array = triggering player
After adding the fresh kill you do a math operation on the value
so
if (mod(PlayerKills[trigginer player] / 20 ) == 0 )then( Set Resource (add 1 gas to Triggering Player))
I then use this array for updating things like my leader board
As the Topic? Whats the Most efficient way to Trigger a Player to gain +1 Gas every 20 Kills?
Will need to work for 6 Players (however i can copy paste and change Player numbers if need be). This trigger needs to run the entire game giving 1 Gas every 20 kills.
I have a 2 methods so far, but they are rather clumbsy and sometimes miss Kill Counts.
Interested in your thoughts,
Thanks
With global variable "Kills (Integer)" array 6.
Hope it works, didn't test it haha
Disregard this post, sorry.
Create a Global Variable as a Integer Array with a 15 max
As units die increment the value in the array by +1 based by index of array = triggering player
After adding the fresh kill you do a math operation on the value
so
if (mod(PlayerKills[trigginer player] / 20 ) == 0 )then( Set Resource (add 1 gas to Triggering Player))
I then use this array for updating things like my leader board
Slow reply from me, but thanks guys! Definately a Better way of doing it than i was!
Many Thanks!