/** * Resets the pc (makes them commandable again) and goes to the next person * * Copyright (C) 2002-2003 Jim Woodgate - woody@realtime.net */ void main() { object oPC = GetPCSpeaker(); SetCommandable(TRUE, oPC); AssignCommand(oPC, ClearAllActions()); int numPlayers = GetLocalInt(OBJECT_SELF, "BJNUMPLYRS"); int currentPlayer = GetLocalInt(OBJECT_SELF, "BJCURRENTPLYR"); currentPlayer++; if (currentPlayer < numPlayers) { SetLocalInt(OBJECT_SELF, "BJCURRENTPLYR", currentPlayer); SignalEvent(OBJECT_SELF, EventUserDefined(215)); } else { SignalEvent(OBJECT_SELF, EventUserDefined(214)); } }