New Premium Module: Tyrants of the Moonsea! Read More
I am looking for a script to put into an Area's OnHeartbeat event, which will, if it is daytime, will cause an NPC to wander from torch to torch, shutting off the light, and if night, the NPC will wander from torch to torch turning them on. Obviously the NPC would need to check each torch to make sure they don't turn off lights at night, or turn them on during the day.
I use Lilac Soul's Script Generator to do scripts, and while attempting this script, I didn't see a way to check to see if the torch was activated or not. My own understanding of scripting is only good enough to make small modification in simple scripts, so any help with this would be greatly appreciated.