In your initialization, add all active players to a player group (or use active players but thats fickly with computers)
Event:
Every 1 second of game time
Actions:
Pick each player in player group (the player group you designated) and do actions
Do your 4 bank actions
Done!
If your doing apm though i suggest something better. BC that is just overwriting the APM before.
Create a new variable elapsed time in the bank, increment it by 1 for each player every second. Then do some beast arithmetic.
Import the previous APM as a variable (or directly but its sloppy) (i call this pAPM)
Import the seconds elapsed (i call this Elapsed)
Multiply pAPM by Elapsed (before incrementing seconds)
Add current APM... Divide by (Elapsed+1)
Now add it to the bank.
This takes the old average, recreates the sum that formed the average before division by terms, add a term, then finds a new average by dividing by terms + 1 (the new amount of terms).
Rollback Post to RevisionRollBack
To post a comment, please login or register a new account.
@marktronic: Go
In your initialization, add all active players to a player group (or use active players but thats fickly with computers)
Event: Every 1 second of game time Actions: Pick each player in player group (the player group you designated) and do actions Do your 4 bank actions Done!
If your doing apm though i suggest something better. BC that is just overwriting the APM before. Create a new variable elapsed time in the bank, increment it by 1 for each player every second. Then do some beast arithmetic.
Import the previous APM as a variable (or directly but its sloppy) (i call this pAPM) Import the seconds elapsed (i call this Elapsed) Multiply pAPM by Elapsed (before incrementing seconds) Add current APM... Divide by (Elapsed+1) Now add it to the bank.
This takes the old average, recreates the sum that formed the average before division by terms, add a term, then finds a new average by dividing by terms + 1 (the new amount of terms).