Ancordia_PRC8/_module/nss/bj_npcstart.nss
Jaysyn904 102ba7dab6 Initial Commit
Initial Commit
2023-09-21 19:51:32 -04:00

16 lines
325 B
Plaintext

int StartingConditional()
{
object oPC = GetPCSpeaker();
int nBet = GetLocalInt(OBJECT_SELF, "BET");
if (GetGold(oPC) < nBet) return FALSE;
if (Random(2) == 0)
{
TakeGoldFromCreature(nBet, oPC, TRUE);
SetLocalInt(OBJECT_SELF, "POT", nBet);
return TRUE;
}
return FALSE;
}