Initial Upload
Initial Upload
This commit is contained in:
23
_module/nss/element_persuade.nss
Normal file
23
_module/nss/element_persuade.nss
Normal file
@@ -0,0 +1,23 @@
|
||||
int StartingConditional()
|
||||
{
|
||||
object oPC = GetPCSpeaker();
|
||||
|
||||
if (!GetHasSkill(SKILL_PERSUADE, oPC)) return FALSE;
|
||||
|
||||
int iPPerCheck = d20(1) + GetSkillRank(SKILL_PERSUADE, oPC);
|
||||
int iMPerCheck = d20(1) + GetSkillRank(SKILL_PERSUADE, OBJECT_SELF);
|
||||
|
||||
if (iPPerCheck > iMPerCheck)
|
||||
{
|
||||
return TRUE;
|
||||
}
|
||||
else
|
||||
{
|
||||
return FALSE;
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
}
|
Reference in New Issue
Block a user