Initial Commit
Initial Commit
This commit is contained in:
14
_module/nss/quest_persuade1.nss
Normal file
14
_module/nss/quest_persuade1.nss
Normal file
@@ -0,0 +1,14 @@
|
||||
#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;
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user