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

16 lines
677 B
Plaintext

#include "x4_inc_functions"
/*Let's check two things:
-whether int Round is nonexistent in PC's database
-whether the PC's registration was regarding this very tournament
If both are true, it means the PC has either lost or won this tournament, so they can't participate anymore*/
int StartingConditional()
{
string sDB = GetLocalString(GetModule(), "DB");
string sCharDB = CharacterDB(GetPCSpeaker());
int nCurrentStart = GetCampaignInt(sDB, "ALVERTON_EVENT_START");
int nPCStart = GetCampaignInt(sCharDB, "TOUR_START");
int nRound = GetCampaignInt(sCharDB, "TOUR_ROUND");
if (nRound == 0 && nPCStart == nCurrentStart) return TRUE;
return FALSE;
}