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

15 lines
415 B
Plaintext

#include "quest_inc"
int StartingConditional()
{
object oPC = GetPCSpeaker();
if (Random(2) == 0) return FALSE;
int nDC = GetAdjustedSkillDC(oPC);
if (GetIsSkillSuccessful(oPC, SKILL_PERSUADE, nDC) == TRUE) return TRUE;
else
{
SetLocalInt(oPC, "FailedSkill", TRUE);
DelayCommand(0.5, SetLocalInt(oPC, "FailedSkill", FALSE));
return FALSE;
}
}