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

26 lines
634 B
Plaintext

#include "sc_dart_include"
int StartingConditional()
{
object db = getDB();
object oPC = GetPCSpeaker();
if (checkPlayerTurn(oPC)) {
string target = getTargetDescription();
int player_turn = GetLocalInt(getDB(), PLAYER_TURN);
int score = 0;
if (player_turn == 1) {
score = GetLocalInt(getDB(), CONTESTANT1_SCORE_THIS);
}
else {
score = GetLocalInt(getDB(), CONTESTANT2_SCORE_THIS);
}
SetCustomToken(1001, target);
SetCustomToken(1002, IntToString(score));
return TRUE;
}
else {
return FALSE;
}
}