0 Members and 1 Guest are viewing this topic.
int whoisboss;global int 60:bossprev;script 702 OPEN{whoisboss = random(0, PlayerCount());while(whoisboss == bossprev||!PlayerInGame(whoisboss)){whoisboss = random(0, PlayerCount());}bossprev = whoisboss;}
A simple workaround would be do +1 when reading and writing the boss value. That way you can use 0 as "No boss assigned".
whoisboss = random(0, PlayerCount()) + 1;
Thing_Damage(whoisboss + 1000 - 1, 50, 0)