RATDOG/_module/nss/lvl01_bone_srch5.nss

28 lines
590 B
Plaintext
Raw Permalink Normal View History

//:: Returns true if PC passes a DC 5 search check
int StartingConditional()
{
//:: Declare major variables
object oPC = GetPCSpeaker();
object oSelf = OBJECT_SELF;
string sTag =GetTag(oSelf);
if (GetLocalInt(oPC, "FoundSlime"+sTag) == TRUE)
{
return FALSE;
}
// Check if the player's search skill check is successful against DC 5
if (GetIsSkillSuccessful(oPC, SKILL_SEARCH, 5))
{
//:: Player passed the search check
return TRUE;
}
else
{
//:: Player failed the search check
return FALSE;
}
}