Initial Commit
Initial Commit
This commit is contained in:
14
_module/nss/adv_isgoodvig.nss
Normal file
14
_module/nss/adv_isgoodvig.nss
Normal file
@@ -0,0 +1,14 @@
|
||||
#include "quest_inc"
|
||||
int StartingConditional()
|
||||
{
|
||||
string sName = GetLocalString(OBJECT_SELF, "sName");
|
||||
string sLastName = GetLocalString(OBJECT_SELF, "sLastName");
|
||||
SetCustomToken(11001, sName);
|
||||
SetCustomToken(11002, sLastName);
|
||||
if (GetLocalInt(OBJECT_SELF, "Potions") == TRUE) return FALSE;
|
||||
if (GetLocalInt(OBJECT_SELF, "Adventurer") == TRUE && GetAlignmentGoodEvil(OBJECT_SELF) == ALIGNMENT_GOOD && GetLocalInt(OBJECT_SELF, "nPersonality") == 0) return TRUE;
|
||||
if (GetAlignmentGoodEvil(OBJECT_SELF) == ALIGNMENT_EVIL || GetLocalInt(OBJECT_SELF, "nPersonality") != 0) return FALSE;
|
||||
int nDC = GetAdjustedSkillDC(GetPCSpeaker());
|
||||
if (GetIsSkillSuccessful(GetPCSpeaker(), SKILL_PERSUADE, nDC)) return TRUE;
|
||||
return FALSE;
|
||||
}
|
||||
Reference in New Issue
Block a user