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,35 @@
#include "x4_inc_functions"
int StartingConditional()
{
object oStool1 = GetNearestObjectByTag("mpoker_stool1");
object oStool2 = GetNearestObjectByTag("mpoker_stool2");
object oP1 = GetSittingCreature(oStool1);
object oP2 = GetSittingCreature(oStool2);
SetLocalObject(OBJECT_SELF, "oP1", oP1);
SetLocalObject(OBJECT_SELF, "oP2", oP2);
if (GetLocalInt(OBJECT_SELF, "STAGE") == 5)
{
//Get the current PC
string sCurrent = GetLocalString(OBJECT_SELF, "CURRENT");
object oPlayer = GetLocalObject(OBJECT_SELF, sCurrent);
//Set token
SetCustomToken(916, GetName(oPlayer));
//Retrieve PC's message
string sMessage = GetLocalString(OBJECT_SELF, "SPOKEN");
if (sMessage != "#no" && sMessage != "#yes")
{
//Go back
//SetLocalInt(OBJECT_SELF, "STAGE", 1);
return TRUE;
}
return FALSE;
}
return FALSE;
}