设为首页收藏本站同能贴吧 切换语言 繁体中文
开启辅助访问 切换到窄版
扫描二维码关注官方公众号
返回列表
+ 发新帖
查看: 87|回复: 0

[制作教程] [Tutorial] 姫Hime’s Page Condition Script

[复制链接]
累计送礼:
0 个
累计收礼:
1 个
  • TA的每日心情
    开心
    前天 04:10
  • 签到天数: 209 天

    连续签到: 2 天

    [LV.7]常住居民III

    4447

    主题

    864

    回帖

    2万

    积分

    管理员

    Rank: 9Rank: 9Rank: 9

    VIP
    7
    卡币
    22901
    OK点
    16
    推广点
    0
    同能卷
    50
    积分
    28242

    灌水之王

    发表于 3 天前 | 显示全部楼层 |阅读模式
    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.


    本贴来自国际rpgmaker官方论坛作者:Sinweaver处,因国际论坛即将永久关站,为了存档多年珍贵资料,署名转载到本论坛存档,由于官方帖子为英文原帖,需要中文翻译请点击论坛顶部切换语言为中文就可以将帖子翻译成中文浏览,方便大家随时查看,原文地址:https://forums.rpgmakerweb.com/threads/tutorial-himes-page-condition-script.45708/

    本帖子中包含更多资源

    您需要 登录 才可以下载或查看,没有账号?立即注册

    x
    天天去同能,天天有童年!
    回复 送礼论坛版权

    使用道具 举报

    文明发言,和谐互动
    文明发言,和谐互动
    高级模式
    您需要登录后才可以回帖 登录 | 立即注册

    本版积分规则

    简体中文
    繁體中文
    English(英语)
    日本語(日语)
    Deutsch(德语)
    Русский язык(俄语)
    بالعربية(阿拉伯语)
    Türkçe(土耳其语)
    Português(葡萄牙语)
    ภาษาไทย(泰国语)
    한어(朝鲜语/韩语)
    Français(法语)
    关闭

    幸运抽奖

    社区每日抽奖来袭,快来试试你是欧皇还是非酋~

    立即查看

    聊天机器人
    Loading...

    QQ|Archiver|手机版|小黑屋|同能RPG制作大师 ( 沪ICP备12027754号-3 )

    GMT+8, 2026-7-14 14:35 , Processed in 0.109937 second(s), 55 queries .

    Powered by Discuz! X3.4

    Copyright © 2001-2020, Tencent Cloud.

    快速回复 返回顶部 返回列表