RPG Maker Forums

More Page Conditions
2018.01.13
by Shaz

Introduction
This is a simple little plugin that allows you to add more page conditions via comments in the event commands list.

How to use
Add plugin to your js/plugins folder - name should be Shaz_MorePageConditions.js - and enable in plugin manager.
On your event page, enter a comment beginning with cond to add to the existing page conditions. Any script command that evaluates to a true or false value can be used (see Notes for caveat).

Shortcuts
\ss([1, 2, 'A']) will be converted to $gameSelfSwitches.value([1, 2, 'A'])
\s(15) will be converted to $gameSwitches.value(15)
\v(12) will be converted to $gameVariables.value(12)

Example
cond \s(15) && \v(8) >= 10 && \v(8) <= 15 - will evaluate to true if switch 15 is on and variable 8 is between 10 and 15 (inclusive)

Plugin
Download from pastebin
make sure to save it as Shaz_MorePageConditions.js

Credit
- Shaz

Terms
- free for use in commercial games
- do not post elsewhere - link back to this page

Notes
- Although you can add any script call that will evaluate to true/false as a condition, it may not cause an immediate change of pages. The map only evaluates page conditions when something has requested a refresh. By default, this only happens when things listed under the Conditions heading on the event page change - switches, self switches, variables, party members, items (items, weapons, armors). If you want to add a condition based on something else - for example, amount of gold, hp of party leader, etc), the condition will only be checked when one of those other things changes, requesting a refresh. Or you could add a script call on any event that might cause those new conditions to change: $gameMap.requestRefresh() to force event pages to be re-checked. Be careful not to do this too often - definitely not in a parallel process event, as refreshing event pages is a CPU-hungry activity and will cause lag if done too frequently.

Latest Threads

Latest Posts

Latest Profile Posts

He mad, but he cute :kaopride:

Our latest feature is an interview with... me?!

People4_2 (Capelet off and on) added!

Just beat the last of us 2 last night and starting jedi: fallen order right now, both use unreal engine & when I say i knew 80% of jedi's buttons right away because they were the same buttons as TLOU2 its ridiculous, even the same narrow hallway crawl and barely-made-it jump they do. Unreal Engine is just big budget RPG Maker the way they make games nearly identical at its core lol.
Can someone recommend some fun story-heavy RPGs to me? Coming up with good gameplay is a nightmare! I was thinking of making some gameplay platforming-based, but that doesn't work well in RPG form*. I also was thinking of removing battles, but that would be too much like OneShot. I don't even know how to make good puzzles!

Forum statistics

Threads
106,035
Messages
1,018,459
Members
137,821
Latest member
Capterson
Top