Jump to content

Day/Night Appearances for NPCs


CoM_Solaufein

Recommended Posts

See Maheer in the promenade. Basically, add him both places and schedule him right.

 

Otherwise, you can just use Time() triggers and Activate()/Deactivate() to control it entirely through script (Deactivate() one when the other should Activate(), depending on your Time() checks). This works if you don't plan on touching the AREs.

IF
TimeGT(5)
TimeLT(18)
Global("MeHide","LOCALS",0)
THEN
RESPONSE #100
SetGlobal("MeHide","LOCALS",1)
Deactivate(Myself)
END

IF
Or(2)
TimeLT(6)
TimeGT(17)
Global("MeHide","LOCALS",1)
THEN
RESPONSE #100
Activate(Myself)
SetGlobal("MeHide","LOCALS",0)
END

and opposite for the outdoor guy. The times aren't exact (the example would be like 0630 to 1730 having the indoor guy turn off), so it won't happen immediately at 6AM (Time(5) lasts a bit past 6AM the way time is counted in the game).

Link to comment

There's also code like this in Aurora's Shoes that takes it a step further - she actually walks home at night and goes to bed, and a night attendant wakes up from his hovel and walks to her stall to take her place (and vice versa at daybreak).

Link to comment

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...