Aantioch_Infernum/_module/nss/element_persuade.nss

24 lines
319 B
Plaintext
Raw Permalink Normal View History

2023-08-08 16:22:17 -04:00
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;
}
}