What would I need to add to this script so that this door would unlock at night (between 2000 and 0800 as written) with a Key? Like, say it's midnight and the door to the mages guild is locked. Since I'm a member, I have a Mages Guild Key so I can enter at any time. I enter the door at midnight and when I leave, will it still be locked? Is there a way to script it so the door relocks itself if I leave anytime before 0800?
begin IS_Locked_Night_Mediumshort doonceif doonce != 1; day if gamehour >= 8 if gamehour <= 20 unlock set doonce to 1 endif endifendifif doonce != 2; night if gamehour < 8 lock 50 set doonce to 2 endifendifif doonce != 2; night if gamehour > 20 lock 50 set doonce to 2 endifendifend