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

View File

@@ -0,0 +1,15 @@
#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;
}