Initial Commit
Initial Commit
This commit is contained in:
15
_module/nss/tourn_participat.nss
Normal file
15
_module/nss/tourn_participat.nss
Normal 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;
|
||||
}
|
||||
Reference in New Issue
Block a user