//::///////////////////////////////////////////////
//:: FileName jhr_test_knowold
//:://////////////////////////////////////////////
//:://////////////////////////////////////////////
//:: Created By: Script Wizard
//:: Created On: 7/14/2002 4:56:33 AM
//:://////////////////////////////////////////////
int IsDay()
{
    int nHour =  GetTimeHour();
    if  ((nHour >= 5) && (nHour <= 19))
    {
        return TRUE;
    }
    else
    {
        return FALSE;
    }
}

int StartingConditional()
{

    // Inspect local variables
    if(!(GetLocalInt(GetPCSpeaker(), "nHeardAboutOldManFlag") == 1))
        return FALSE;
    if(!(GetLocalInt(GetPCSpeaker(), "nSpokeAboutHenriOnceFlag") == 0))
        return FALSE;
    if(!(GetLocalInt(GetPCSpeaker(), "nFarmDoorOpenedFlag") == 0))
        return FALSE;
    if(!(IsDay() == TRUE))
        return FALSE;
    return TRUE;
}
