Toggle Event Page
2018.01.14
by Shaz
Introduction
This plugin allows you to temporarily disable a page on an event on the current map, and to re-enable it again. It is like the Erase Event command, but works on individual pages instead of the whole event. Like that command, the effect is only temporary - when you leave the map and return, all pages will be enabled again. It works alongside page conditions - the highest numbered page whose conditions are met and has not been disabled will become active.
How to use
Add plugin to your js/plugins folder - name must be Shaz_TogglePage.js - and enable in plugin manager.
Enter TogglePage in a plugin command, followed by optional arguments.
You can use a formula for one or both arguments - just make sure there are no spaces.
The page id refers to what you see in the editor. Tab 1 is the first page id.
Example
TogglePage - toggles the current page of the current event
TogglePage 5 - toggles page 5 of the current event
TogglePage 10 3 - toggles page 3 of event 10 on the current map
Plugin
Download from pastebin
make sure to save it as Shaz_TogglePage.js
Credit
- Shaz
Terms
- free for use in commercial games
- do not post elsewhere - link back to this page
Notes
- This plugin
overwrites the
Game_Event.prototype.findProperPageIndex function. There will likely be compatibility issues if you have other plugins that overwrite the same function. There
may be compatibility issues if you have other plugins that alias the same function - try changing the plugin order.