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,21 @@
#include "x4_inc_functions"
int StartingConditional()
{
object oPC = GetPCSpeaker();
string sDB = CharacterDB(oPC);
if (GetLocalInt(OBJECT_SELF, "Quest_Halt") == TRUE) return FALSE; //We don't want to speak to anyone if the quest was halted
if (GetLocalString(OBJECT_SELF, "sPC") != sDB) return FALSE; //We don't want to speak to anyone but the questing PC
if (GetCampaignString(sDB, "QUEST_TEMPLATE") != "item") return FALSE; //We don't want to speak this line if we're not a target of an item quest
if (Random(3) != 0) return FALSE; //We don't want to speak this line 1/3 of the time
string sName = GetLocalString(OBJECT_SELF, "sName");
string sLastName = GetLocalString(OBJECT_SELF, "sLastName");
SetCustomToken(11001, sName);
SetCustomToken(11002, sLastName);
return TRUE;
}