Aantioch_Infernum/_module/nss/element_persuade.nss
Jaysyn904 22947ad4b6 Initial Upload
Initial Upload
2023-08-08 16:22:17 -04:00

24 lines
319 B
Plaintext

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;
}
}