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

18 lines
462 B
Plaintext

#include "quest_inc"
int StartingConditional()
{
object oPC = GetPCSpeaker();
string sDB = CharacterDB(GetPCSpeaker());
string sName = GetCampaignString(sDB, "QUEST_CLI_NAME");
string sLastName = GetCampaignString(sDB, "QUEST_CLI_LASTNAME");
SetCustomToken(11001, sName);
SetCustomToken(11002, sLastName);
int nDC = GetAdjustedSkillDC(oPC);
if (GetIsSkillSuccessful(oPC, SKILL_PERSUADE, nDC)) return TRUE;
return FALSE;
}