Initial Commit

Initial Commit
This commit is contained in:
Jaysyn904
2023-09-21 19:51:32 -04:00
parent 65b5bd7fd3
commit 102ba7dab6
6400 changed files with 5741850 additions and 0 deletions

23
_module/nss/bjreset.nss Normal file
View File

@@ -0,0 +1,23 @@
/**
* 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));
}
}