How to make a NPC enable at a certain time?

Post » Mon Nov 23, 2009 6:33 am

How do you make it where an npc would enable at a certain time during the game day and then disable at a certain time every day?
User avatar
BethanyRhain
 
Posts: 3434
Joined: Wed Oct 11, 2006 9:50 am

Post » Mon Nov 23, 2009 12:52 pm

This will Disable the NPC each evening, and Enable in the morning. (change the actual hours as you see fit)
Begin If ( MenuMode == 1 )ReturnEndifIf ( GameHour >= 20 )	If (GameHour <= 23 )If ( GetDisabled == 0 )       disable    Endif EndifEndifIf ( GameHour >= 0 )	If (GameHour < 6 )If ( GetDisabled == 0 )       disable    Endif EndifEndifIf (GameHour >= 6 )	If (GameHour < 20 )If ( GetDisabled == 1 )       enable    Endif EndifEndifEnd

User avatar
saxon
 
Posts: 3376
Joined: Wed Sep 19, 2007 2:45 am

Post » Mon Nov 23, 2009 3:44 pm

Thanks a lot!
User avatar
Amber Ably
 
Posts: 3372
Joined: Wed Aug 29, 2007 4:39 pm


Return to III - Morrowind