[Tutorial] 姫Hime’s Page Condition Script

Sinweaver

Veteran
Veteran
Joined
Aug 11, 2015
Messages
598
Reaction score
418
First Language
English
Primarily Uses
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

Notes:

  • Hime's scripts are free to use in non-commercial projects. Please contact Hime if you wish to use these scripts in a commercial projects. The Terms of Use can be found here, and you can contact Hime directly by clicking here.
  • 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

<page condition>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:



Event Page

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.



Sample Code

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.
 

Users Who Are Viewing This Thread (Users: 0, Guests: 1)

Latest Threads

Latest Posts

Latest Profile Posts

How many parameters is 'too many'??
Yay, now back in action Happy Christmas time, coming back!






Back in action to develop the indie game that has been long overdue... Final Fallacy. A game that keeps on giving! The development never ends as the developer thinks to be the smart cookie by coming back and beginning by saying... "Oh bother, this indie game has been long overdue..." How could one resist such? No-one c
So I was playing with filters and this looked interesting...

Versus the normal look...

Kind of gives a very different feel. :LZSexcite:
To whom ever person or persons who re-did the DS/DS+ asset packs for MV (as in, they are all 48x48, and not just x2 the pixel scale) .... THANK-YOU!!!!!!!!! XwwwwX

Forum statistics

Threads
105,849
Messages
1,016,977
Members
137,563
Latest member
cexojow
Top