24 lines
319 B
Plaintext
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;
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
}
|