* ----------------------------------------------------------------------------
* 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]