MZ OcRam's NPC Scheduler plugin - Need help with linking events please!

Hello again @OcRam (and anyone else who has some insight to this problem!) Thanks for your help so far with your NPC Scheduler plugin!! 🙂

I'm working on linking events now. I had a look at Fisher's Wife in your demos, but I haven't been able to replicate the linking in my project... I think you're brilliant to have made something like this but I'm not brilliant enough to follow what's going on LOL.

I can't understand the instructions very well, so if you have time I would love some help! :,D

Referring to your explanation in the plugin:
"Example: Map 1 has event which is traveling to some building. Inside that
building (Map 2) is event '5' which is the event that travels outside.
Well you can't be in 2 places at the same time can you?
That's where you must link these events.

In Map A call $gameSystem.linkSchedule(2, 5, x, y); after that when you
transfer to map 2: event id 5 is located in given x, y and is transparent
and has it's normal schedules! "Transparent" is set to "OFF" when event
starts to move towards it's 'home' position and "Through" is set to "OFF"
if priority is not "Above characters"."

I have a couple things I want to clarify:
1) "Map 1" and "Map A" are the same map in the example, right?

2) "Inside Map 2 is event 5 which is the event that travels outside" - just to clarify, is event 5 travelling from inside to outside, or is it currently travelling outside and we want it to go inside?

3)Does this mean I write something like this in the Contents Box?:

Screenshot 2025-03-26 132459.png


4) Which Contents Box do I write it in? The map I am transferring FROM or the map I am transferring TO? Ex: If Map A is the location I am in, and Map B is the location I am going to, do I write the coordinates I want to appear at in Map B in the "Map A contents box" or "Map B contents box"?

Really sorry for all the dumb questions 🙁 🙁

Thank you again for your help!!
1) "Map 1" and "Map A" are the same map in the example, right?
Yes. And thank you for pointing this out, I will fix it before next release.

2) "Inside Map 2 is event 5 which is the event that travels outside" - just to clarify, is event 5 travelling from inside to outside, or is it currently travelling outside and we want it to go inside?
In that example event is travels from map 1 to map 2.

3)Does this mean I write something like this in the Contents Box?:
If NPC Scheduler plugin is hard to master this must be the hardest part of it.

Again it is best to take a look for "living" example in Demo project there's "Fisher's wife" who travels between 3 different maps. Morning time she goes to shopping, day time she goes back to home to make dinner and evening is dinner time! Obviously she sleeps at night.

EDIT: Sorry didn't notice you already looked at this.

But some basics for isLinkOk and linkSchedule methods. These mathods are called when you transfer player to another map.

this.event().isLinkOk(event_id, day_phase) will check if NPC is in it's correct place relative to current day phase and this.event() is the event which transfers player to another map. To sum it up we just check if NPC has already gone "out" of this current map. This function will return true if NPC is still in same map with player.

If TRUE then $gameSystem.linkSchedule(map_id, event_id, x, y) will assign NPC to it's correct place in next map. This will create illusion for NPS's to travel between different maps.

If isLinkOk returns FALSE nothing is needed to do, since NPC is already there where it should be.

4) Which Contents Box do I write it in? The map I am transferring FROM or the map I am transferring TO? Ex: If Map A is the location I am in, and Map B is the location I am going to, do I write the coordinates I want to appear at in Map B in the "Map A contents box" or "Map B contents box"?
See above answer - you always check all NPCs who are POSSIBLY (depending on their schedules) "traveling" to same direction with player.

BTW: Please post questions related to OcRam -plugins to OcRam thread. I might not notice these seperate threads and thus won't be able to answer.

Original thread: https://forums.rpgmakerweb.com/threads/ocrams-npc-scheduler-plugin-need-help-with-linking-events-please.176549/