PWE_PRC8/_module/nss/sc_curr_pl_name.nss
Jaysyn904 ee1dc35889 Initial Commit
Initial Commit
2025-04-03 10:29:41 -04:00

21 lines
547 B
Plaintext

#include "sc_dart_include"
int StartingConditional()
{
object db = getDB();
if (GetLocalInt(db, PLAYER_TURN) == 1) {
SetCustomToken(1001, GetName(GetLocalObject(db, CONTESTANT1)));
int score = GetLocalInt(getDB(), CONTESTANT2_SCORE_THIS);
SetCustomToken(1002, IntToString(score));
}
else {
SetCustomToken(1001, GetName(GetLocalObject(db, CONTESTANT2)));
int score = GetLocalInt(getDB(), CONTESTANT1_SCORE_THIS);
SetCustomToken(1002, IntToString(score));
}
return TRUE;
}