Anyone who has played the Pokemon Crystal on GBA back then would probably remember that cave where we can find a Lapras every Friday. The question is, how can we create such event on RPGmaker easily without having to use (potentially complex) parallel processing, self switches, and/or some sort of variables/switches to check/keep track of certain condition(s)? One way to achieve this easily is to use this <page condition> script.
RPGmaker does not come with a built in clock/time system that helps keep track of minute, seconds, hour, days, etc. There is a timer to keep track of how long we have spent playing, but that’s not what we are looking for. I am pairing Hime’s Page Condition script with Vlue’s Advanced Time script in order to achieve what I am trying to demonstrate in this tutorial.
Table of Contents:
- What is Hime’s Page Condition script?
- How to install Hime’s Page Condition script?
- How to use Hime’s Page Condition script in your own game?
- Sample Code + demo included
- Vlue’s scripts are free to use in non-commercial and commercial project. Credit is needed and donation is appreciated.
What is Hime’s Page Condition script?
The RPG maker VX Ace event page comes with limited amount of conditions that must be met in order for the event to spawn on the map. These conditions are limited to switch, variable, self switch, item and actor. What if we want to use a custom condition that comes with a script, or what if we want to check if the party has x amount of gold before the event will spawn? We will have to use additional event page that will be activated using a self-switch from a parallel process page. This can potentially be confusing for users.
Once we have Hime’s Page Condition script installed, we can convert conditional branch into event condition through the use of a comment.
How to install Hime’s Page Condition script?
Get the script from Hime’s website, open the script editor (F11) and insert it under the “▼ Materials section” and above the “▼ Main Process section”. It is the same as any other script. Remember to give the script the appropriate name so that you can find it easily when installing add-on to this script later. If you are also using Hime’s Negated Conditional Branch script, this script must be placed under it.
How to use Hime’s Page Condition script in your own game?
This script can be used in Event, Troops, and Common Event page.
To create a custom event condition, first we need to create a comment with the phrase
Then create a conditional branch event right after the comment. The conditional branch will be converted into a page condition required in order for the event to spawn. If you are unsure where to find “Comment” or “Conditional Branch” in the event creation page, please refer to the following image:
Once you have added the <page condition> comment, create a conditional branch with the condition for the event to spawn.
The following is the alternative solution to the same quest item that player have to interact with, except we are not using the Page Condition script
Troop Event page
This example is used together with Hime’s Enemy Reinforcement script. A rare slime only will spawn if Actor 1, Eric, job is Soldier, AND the player has 0 gold, AND Eric is equipped with a Gigantes Axe. Definitely one way to include a hidden rare spawn or something.
Common Event page
In this example, we are going to change the weather IF actor 1, Eric, is a soldier AND after the player receive a quest.
Remember the example I mentioned at the start about Pokemon Crystal and the Lapras cave?
If you want to experience it first hand, I have included a demo for you to try it out yourself. Click here! To check what time it is in-game, use the shift key to turn the clock on/off.