//:://////////////////////////////////////////////
//:: Created By: Squid (jhvh@squid.org)
//:: Created On: 5/20/2002 10:00:00 PM
//:://////////////////////////////////////////////
#include "nw_i0_tool"

int ST_UNCOVERED = 1;
int ST_HIDDEN = 0;
object oSecretObject = GetObjectByTag("ot_BoulderWithSecret");
int StartingConditional(){
        // Return false if we've already been found.  This way only dialog option
        // A) is shown to the player(s).
        // Should never get here if first conditional dialog line works
        if (GetLocalInt(oSecretObject, "nStateDiscovered") == ST_UNCOVERED) {
                return FALSE;
        }

        // See if player fails a medium difficulty spot check against this object.
        // Edit this portion to change the difficulty of the roll up or down.
        if(AutoDC(DC_EASY, SKILL_SPOT, GetPCSpeaker())) {
            // Player has successfully made the spot check.  Flag the object as uncovered, and proceed into
            // the dialog to allow them to trigger the object in the future using discover_object_2
            SetLocalInt(oSecretObject, "nStateDiscovered", ST_UNCOVERED);
            return TRUE;
        }else {
            return FALSE;
        }
}
