RATDOG/_module/nss/lvl01_bone_src10.nss

28 lines
596 B
Plaintext
Raw Permalink Normal View History

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