MZ Cant figure out Ocram npc schedule plugin

Even checked out his demo, i just don't understand it, I know I have to type in the notetag in the event but I don't know what to add in it since in the demo the same npc with different notetags on different maps

I just want the npc on the pier during the day and at night walk to his home, that's all I want and its not wroking
1641556278732.png
1641556288192.png
there was a tutorial of the NPC schedule, but it was a list of scriptcalls
on the pages and no notetag!

in this [sneakpeak] is an example, but it might have changed in the MZ
version as it didn't come to MV though, so you can recheck the MZ
demo, and the event with the schedular on it to see how it is set, and
the helpfile instruction what does what though.
Hello, please use notify/"ping" (at)Username if you want support directly. I accidently found this thread.

Anyways to have fisher go to pier notetag would be:
Code:
<apos:[4,9]><home_phases:1,4>
  1. place event in it's "home pos".
  2. Write notetag above to event
  3. Where 4,9 is coordinates to pier
  4. home_phases 1 = Night and 4 = Dusk (2 = Would be Dawn and 3 = Day)
    1. So when it's dawn/day fisher is at pier otherwise he's at home
  5. Write (Autonomous Movement) Move Routes (usually this is forgotten) when character reaches destination
    1. On 1st page I have only added "Transparency OFF" (no-repeat)
    2. On 2nd page I have only added "Turn down" (no-repeat)
  6. Please remember other event behaviour also like "Walking", "Through" etc... To have them as you like (they are page specific)
1st page of said event:
1st_page.png


2nd page of said event:
2nd_page.png


Edit: @ShadowDragon thank you for pointing out that MV NPC video in YouTube.
MV scheduler was wiped with map generator + obfuscator, when my previous PC (and HD) suffered sudden death from surge spike... (I think I should remove those vids from YouTube 🙂 )
Srry to hear, but can happen, if i's totally gone, it might be a good
idea to remove it to avoid confusions.

but scriptcalls whas a nice idea too, but maybe comments might work too
if it's not easier to use per day if you use switches for those times?
Srry to hear, but can happen, if i's totally gone, it might be a good
idea to remove it to avoid confusions.

but scriptcalls whas a nice idea too, but maybe comments might work too
if it's not easier to use per day if you use switches for those times?
Yea script calls were ok, but it would have required some scripting knowledge.
I have tried to make MZ scheduler much easier, but still have super complex schedules possible (those might still require some scripting - especially in IF conditions).

Now simple (and even semi-complicated) schedules requires zero scripting knowledge.
Ok im figuring it out, it was never mentioned that you have to place the npc at the home position first. the problem though is his home position is in a bit of a distance and when its time to go home, he walks into a wall at the top of the roof and just stays there instead of going around the building and to the door position
1641596522578.png
Ok im figuring it out, it was never mentioned that you have to place the npc at the home position first. the problem though is his home position is in a bit of a distance and when its time to go home, he walks into a wall at the top of the roof and just stays there instead of going around the building and to the door positionView attachment 212047
NPC movement uses "Find direction to" provided by RPG Maker core. And if route is too "complicated" (takes too much iterations to find out shortest route) result would be that.

I have made some modifications to that method with OcRam_Movement so it will do more iterations to find out shortest route and won't get stuck that easily.

And you could try to trick events with event block regions (region passabilities are in OcRam_Core) to avoid too complicated move routes (and force them to choose always left side in this example).
how does multiple npc go home to the same house since you can only have 1 event occupy 1 square, which is below the house door. since the npcs must be set up at the home position in the editor instead of being placed at their day position?
If it's only 2 events (and simple schedules) I would just reverse home pos and apos.

Other 2 options would be advanced schedules or JS call to set home pos.
could you explain advance schedule especially the link to another map one, in detail
Below are plugin instructions. Don't know how to explain that any better...
Spoiler: Plugin instructions for advanced schedules
Code:
 * ----------------------------------------------------------------------------
 * Event notetags (COMPLEX schedule):
 * ----------------------------------------------------------------------------
 * With complex schedules you can create very detailed schedule for each NPC.
 * And combined with some random/linked schedules it makes good illusion that:
 * "WOW! This place is actually living! I wonder what happens next!"
 *
 * NOTE: For complex schedules all "simple" schedule notetags are ignored.
 *
 * ----------------------------------------------------------------------------
 * TIP: Use "notepad" to script event notetags (easier to see "big picture")!
 * ----------------------------------------------------------------------------
 * Create event with 4 pages. Pages must have following self switches:
 * Page1 "A" (Night), Page2 "B" (Dawn), Page3 "C" (Day), Page4 "D" (Dusk)
 * ... and following EVENT NOTETAG(s)
 *
 * All weekdays (and weathers) AKA "Default schedule":
 *      <schedule:[x1,y1],[x2,y2],[x3,y3],[x4,y4]>
 *
 *      x1, y1 = Night position and triggers self switch "A"
 *      x2, y2 = Dawn position and triggers self switch "B"
 *      x3, y3 = Day position and triggers self switch "C"
 *      x4, y4 = Dusk position and triggers self switch "D"
 *
 *      [x,y] can be replaced with null, meaning event keeps current position.
 *      NOTE: Only one (1) "default" declaration can be made per event...
 *
 *      NOTE2: Transparency will be turned OFF and player interfering is
 *      disabled while event is going to 'home' position!
 *
 * Specific weekdays (overrides default schedule on desired weekdays):
 * <schedule_wd:[weekday_array],[x1,y1],[x2,y2],[x3,y3],[x4,y4]>
 *      <schedule_wd:[5,6],[x1,y1],[x2,y2],[x3,y3],[x4,y4]>
 *      <schedule_wd:[1],[x1,y1],[x2,y2],[x3,y3],[x4,y4]>
 *
 * Specific weather (overrides default/wd schedules on desired weathers):
 * <schedule_weather:[weather_id_array],[x1,y1],[x2,y2],[x3,y3],[x4,y4]>
 *      <schedule_weather:[-1,-2],[x1,y1],[x2,y2],[x3,y3],[x4,y4]>
 *      <schedule_weather:[2],[x1,y1],[x2,y2],[x3,y3],[x4,y4]>
 *
 * TIP: Disable and/or enable schedules in autorun event to change default
 * schedule priorities! Example: Autorun with "weekday=6" condition can
 * disable weather schedules meaning weekday is active no matter the weather!
 *
 * OR JUST RANDOM?! (overwrites everything else when occurs):
 *
 *      And because this is random we are talking about, it is possible that
 *      same schedule is randomized multiple times in row...
 *
 *      ----------------------------------------------------------------------
 *      // 0.3% chance randomized for EACH dayphase and lasts 1 dayphase
 *      <schedule_random:[0.3,-1],[x1,y1]>
 *
 *      TIP: This is perfect way to give player a hint of a hidden secrets for
 *      example. "I think I heard something in the bushes over there..."
 *
 *      -----------------------------------------------------------------------
 *      // 10% chance randomized at DAWN and lasts 4 dayphases
 *      <schedule_random:[10,2],[x1,y1],[x2,y2],[x3,y3],[x4,y4]>
 *
 *      TIP: Maybe NPC needs some time-off from duties sometimes? At the
 *      morning slooow wakeup and then maybe... day at the beach? Evening is
 *      time for good food for sure! And then party! Or just go to sleep?
 *
 *      -----------------------------------------------------------------------
 *      // 2% chance randomized at NIGHT and lasts 2 dayphases
 *      <schedule_random:[2,1],[x1,y1],[x2,y2]>
 *
 *      TIP: Then maybe some drama? Who goes out in the middle of night to
 *      visit lady in the next door!?
 *
 *      -----------------------------------------------------------------------
 *
 *      NOTE: Random schedule indexes starts from 0 and number is increased
 *      by 1 each time new random schedule (max 9) is found in event notetags.
 *
 *      Random schedule [X,Y] positions starts from randomized day phase.
 *
 *      IF there is NO random schedule ACTIVE, random schedules are checked
 *      at start of EACH DAY PHASE (not 'onNewWeather').
 *
 *      Total of 10 (0-9) random schedules can be assigned per event and each
 *      schedule may last 1 to 9 day phases.
 *
 *      // When you want to check if specific random schedule is randomized
 *      // (In above examples index 1 would belong to schedule with 10% chance)
 *      // Returns true if random schedule with index 1 is active, else false
 *      $gameSystem.isRandomSchedule(map_id, event_id, random_schedule_id)
 *      this.event().isRandomSchedule(1)
 *      this.event().schedule.activeSchedule // returns < 0 if not random
 *
 * ----------------------------------------------------------------------------
 * Event COMMENTS (EXTRA MOVEROUTES FOR NON-DEFAULT SCHEDULES):
 * ----------------------------------------------------------------------------
 * Event comments are page (day phase) specific!
 *      Page1 + Selfswitch "A" = Night
 *      Page2 + Selfswitch "B" = Dawn
 *      Page3 + Selfswitch "C" = Day
 *      Page4 + Selfswitch "D" = Dusk
 *
 * For example: If you have random schedule which can occur ANY day phase then
 * each page must be taken care of individually! This gives you possibility
 * to make NPC react to current day phase (or even to weather with "if"s).
 *
 * Comments are always placed ABOVE desired moveroute. Marked moveroutes will
 * be applied when schedule occurs AND event has reached it's position!
 *
 * To set custom moveroute to random0 schedule (all pages where needed):
 * *Comment*    <random0>
 * *Moveroute*  ['arrived' moveroute for this schedule]
 *
 * To set default moveroute to all weather schedules (all pages where needed):
 * *Comment*    <weather>
 * *Moveroute*  ['arrived' moveroute for this schedule]
 *
 * To set default moveroute to all weekday schedules (all pages where needed):
 * *Comment*    <weekday>
 * *Moveroute*  ['arrived' moveroute for this schedule]

But to get started: Start with <schedule:[x1,y1],[x2,y2],[x3,y3],[x4,y4]> where coordinates are given for Night (Event page A ) , Dawn (Event page B ), Day (Event page C ), Dusk (Event page D ). As you can see each page represents a day phase. Each page can be evented the way you like it (and may have it's own custom move routes etc...). After that move slowly to weekday / weather schedules (if needed).

TIP: Notepad will be your friend if there a lot of those notetags (schedules for different weekdays / weathers) without notepad I would have gone mad...

Linked events are semi-difficult thing to achieve (but they create more immersion when you get 'em to work).

Example: $gameSystem.isLinkOk(95,11,9,2) // Returns true IF event id 95 is NOT in 11,9 xy coordinates at day phase 2 (dawn). This is used to check that has NPC already 'transferred' to destination map (already in given coords) (as stated in plugin help).

$gameSystem.linkSchedule(14,9,8,13) // Will link event id 9 on map 14 to 8,13 xy coordinates (and in this example fishers wife will be spawned to shop entrance instead of already looking goodies in shop in its "homepos"). Basically this will relocate event (in another map) to another position where it will walk to it's home pos.

And I'm sorry for my bad English (I'm trying my best) ;p - I hope my answers weren't totally gibberish.

I had difficulties to write those instructions and I'm so glad that you have patience to try it!
I am still having problems with the linking, she walks to the pub at the given time of the day, I enter pub and she is there but when I exit pub she is at the entrance of the pub and then disappears but blocks the path so cant enter pub

Also even though I have <indoors> notetag in my pub, I can still hear bgs from outside and the dusk, dawn and night tint are still active
1641768164808.png
1641768178108.png
1641768039424.png
1641768067732.png
1641768076710.png
I am still having problems with the linking, she walks to the pub at the given time of the day, I enter pub and she is there but when I exit pub she is at the entrance of the pub and then disappears but blocks the path so cant enter pub

Also even though I have <indoors> notetag in my pub, I can still hear bgs from outside and the dusk, dawn and night tint are still active
View attachment 212273View attachment 212274View attachment 212270View attachment 212271View attachment 212272
Can you check events _through property? Write $gameMap.getEventById(event_id)._through to console (when you aren't able to pass through).

Is <indoors> tag in map or tileset notetag? It should lower volume for weathers and prevent time system BGS. Tinting for indoors can be managed via plugin parameters.
indoors are tag in the tileset notetag
indoors are tag in the tileset notetag
Have you tried indoors tag to map? And what OcRam.isIndoors() says in console?
ocram time system plugin is broken, when im inside and transitions to night, when i exit house its daytime outside. and I even turned all tint indoors to 0 and it still transitions to night tint indoors
ocram time system plugin is broken, when im inside and transitions to night, when i exit house its daytime outside. and I even turned all tint indoors to 0 and it still transitions to night tint indoors
Thank you for the report,

Can you repeat this in demo project? Because it works in my other projects just fine.

And by default time passes also while player is in indoors map.

If you are using also OcRam_Lights there are also tinting parameters (and you can disable time system tint if needed, personally I use both tints to create somewhat "smoother" lights).
yeah having 0 0 0 0 tint indoors affected the outside instead so I put them back to normal and added ocram lights plugin.

I have the weather system too, but default is the weather random?

I added weather pools to my tileset but when starting up the game it is always raining, and doesn't seem to stop either
1642071596613.png
yeah having 0 0 0 0 tint indoors affected the outside instead so I put them back to normal and added ocram lights plugin.

I have the weather system too, but default is the weather random?

I added weather pools to my tileset but when starting up the game it is always raining, and doesn't seem to stop either
View attachment 212759
Have you ensured that there is no forced weather in that map and configured weather pools to match those ids?

Edit: oh and make sure that each season has correct weather pools. For example in my demo project it is very likely to rain when it's "autumn"
How do i make the night bgs turn off while inside?
or any bgs that is outside for that matter

or just general map change, I don't want to hear birds chirping in the forest and then I can hear them indoors too

Original thread: https://forums.rpgmakerweb.com/threads/cant-figure-out-ocram-npc-schedule-plugin.143702/