-
::@creativeIG raised a good point on Youtube:
Thanks for these amazing tutorials. I hope I can still ask a question and get an answer here. From what I understand, the UpdateNPCLocations() function in NPCManager first gets the events prior to the current time, then only keep the latest event before checking priority. What if I set the fishing event at 7am on Monday, and when it gets to 8am, the everyday going to work event will overwrite the fishing one, since it’s the later event, despite its lower priority, which is not what we want right? I don’t if I understood it correctly, hope you could elaborate on that abit. Thank you!
We set it up this way because if the high-priority fishing event is followed by a general lower-priority event, the NPC would be stuck fishing all day instead of proceeding to the next event!
The system treats each hour as a clean slate. Events are meant to start and end at specific times rather than running indefinitely. Think of it as an hourly slot system, and if you would like the NPC to go fishing for another hour, simply make a new entry with a high priority.
::message: Internal server error