Start an Event with different page

idk if someone already made this and on the right forums

There might be a condition where you want to run an event but instead of latest page, you run on specific page
The first and last one show messages in the last content,
1743723490221.png

The 2nd page show animation blackhole
1743721970170.png


Normal behavior run the latest like this
1743723773075.png


To run specific page, it can be done by using Yanfly plugin or using script

for script it should be like this

JavaScript:
$gameMap.event(1)._pageIndex = 1;
$gameMap.event(1).start();

Note: Index start from 0

The result should be like this (Running page 2)
1743723603310.png


Note that changing _pageIndex it will stuck on specific number you input. To revert it, simply use .refresh() like this
$gameMap.event(1).refresh()

Also, transfer to other map and return back it will revert to default settings

Edit: I test it with autorun, like this
1743936559644.png


While calling event id 8
1743936587929.png


The result is showing message from event id 7 until the event completely stops, and then run event id 8
will it revert if you transfer maps?
or is it always page 2 when you transfer and back?

this is kinda nice as priority-type of below/same, above arent saved.
so is this method saved or not during transfer?
will it revert if you transfer maps?
or is it always page 2 when you transfer and back?

this is kinda nice as priority-type of below/same, above arent saved.
so is this method saved or not during transfer?
I've tested it and it will revert back to page 3 (Last page) if you transfer into other map and going back to previous map

But transfer on the same map it will stays page 2

I also add another note in edit regarding autorun trigger. Haven't test the parallel trigger one

Original thread: https://forums.rpgmakerweb.com/threads/start-an-event-with-different-page.176732/