FANDOM



NPC night conversation

What It Does

Checks the time of day, if it is night will start a conversation


Notes

I used this in text apears when on my merchants. They say "sorry my store is closed fo the night" Make a normal merchant conversation, put something like "sorry I'm closed" at the top in conversation editor. place this script in the Text appears when slot

Special thanks goes to Opticus, because I edited his night spawn script to get this one

The Script

//night conversation. used in text appeas when
int StartingConditional()
{
    //declarations
    int HourOfDay;
    //Assign the current hour of the day to our variable.
    HourOfDay = GetTimeHour();
    if(HourOfDay >= 6 && HourOfDay <= 17)
        return FALSE;
    return TRUE;
}

Ad blocker interference detected!


Wikia is a free-to-use site that makes money from advertising. We have a modified experience for viewers using ad blockers

Wikia is not accessible if you’ve made further modifications. Remove the custom ad blocker rule(s) and the page will load as expected.