An easy way to do this (assuming you don't have so many players that your line length is too long) is to do it like this:
on 100:text:!on:#:{
.timerupdateturns 0 300 updateturns
}
alias updateturns {
var %c = 1
var %i = $numtok($readini(players.ini,players,names),32)
while (%c <= %i) {
var %nick = $gettok($readini(players.ini,players,names),%c,32)
writeini players.ini Turns %nick $calc($readini(players.ini,Turns,%nick) + 1)
inc %c
}
}
Then, just add the nicks to your ini like this:
[Players]
Names=nick1 nick2 nick3 nick4 nick5 nick6
See information about $remtok and $deltok if you want to remove individual nicks later. Be careful not to have a nick on the list more than once.
This will add 1 to all players who are listed in the section I described above.
Of course, another method would be to use a hash table.
Oh, and I think this will not do what you really want... If you want everyone to have the same turn number, then you can use a single variable. If you want individual turn numbers and you want turns to update only every 5 minutes and not any other time, then this is good. However, if you want people to end their own turn (increase the turn number) when they complete something so that they can take another turn, then this timer will cause extra turns to be added (1 for the person ending their own turn, and another for the 5 minute timer). It will depend on exactly what you're trying to accomplish with this.