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

[制作教程] Conditions, Triggers, and Event pages

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

    连续签到: 2 天

    [LV.7]常住居民III

    4456

    主题

    864

    回帖

    2万

    积分

    管理员

    Rank: 9Rank: 9Rank: 9

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

    灌水之王

    发表于 前天 07:45 | 显示全部楼层 |阅读模式
    RPG Maker VX Ace Lite and VX Ace Tutorial:
    Conditions, Triggers, and Event pages
    Understanding the Ins and Outs of Event Execution



    *******************************
    Honestly, a really great explanation of all of this can be found in the blog.
    If I had known it was there, I wouldn't have made this post. (*embarrassed face*)
    For a more thorough explanation of these triggers, please see:

    Event Triggers Part 1, which covers Action Button, PLayer Touch and Event Touch and
    Event Triggers Part 2, which covers Autorun and Parallel Processes.
    *******************************





    But, Oh well!! Here we GO!
    Events are the heartbeat of your game, but what makes them tick?





    That is a lot of information on one page! What do all of those sections mean?

    Well, the event capabilities of your game are pretty sweet, so you won’t be surprised to hear that there are quite a few things to learn about events - way more than could ever be covered here!

    But one of the important things you will want to understand is what makes events active and how they start executing. And this means understanding Conditions, Triggers, and Event pages.



    So briefly, events are made up of event pages. Every event page contains a Condition section, a trigger, and a list of event commands (even if there are none.)

    The first thing to understand is that every event must satisfy Conditions before it can even show up in the game. Your game can have fifty events on the map, but if they all have that first line in the Conditions section set to “switch 001 is ON” and you never turn switch 001 “ON” then your fifty events will never become active. Every condition listed in the Conditions sections must be true for the Event page to be active. So if there are two conditions, they must both be true for the event page to become active.

    The next thing to understand is that an event page being “active” doesn’t mean anything will happen. Depending on the graphic and the movement, etc, there may be no image to even show up on the map. So events with graphics will be seen when they satisfy the conditions of their event page (the page will be active,) and they will move in whatever way they have been set up to in the Autonomous Movement and Options sections. But in order for the Event Commands to happen, they must be triggered.

    Here is a summary of the triggers: 
    TriggerApplication Example

    Action Buttonplayer uses enter or space bar
    ex: for use when a player "talks" with an NPC
    Player Touch
    player "bumps into" an event with priority "same as character", or walks over an event "beneath character"
    ex: when a player reaches a location which initiates a cut-scene
    Event Touch
    player must merely be next to an event, and not necessarily facing it
    ex: an enemy encounter which begins if the enemy is on the tile next to the player
    Autorun
    begins automatically and repeatedly until stopped, halting other event processing
    ex: for events which begin when entering a map, or when a switch is on, or other conditions are satisfied, and must proceed until completion
    Parallel Process
    begins automatically and repeatedly until stopped, allowing other events to continue
    ex: for events which occur concurrent with the player's activities. 


    Once the trigger is pulled, as it were, the event commands will execute.

    Remember that events are made up of multiple event pages. The purpose of multiple event pages is to allow a set of closely related commands to be linked together in one event, but to have certain portions happen under different conditions. Each event page should have its own unique set of conditions. For example, the first page may have no conditions at all, and the second page may have the condition of Self-Switch A being “ON.” This is very common. In complex eventing systems, event pages will be dependent on many more factors, such as the value of a variable or the presence of an actor in a party, or both!

    And the final condition of event execution is that the event page which gets first dibs on being able to be active is the one that has the highest number and looks like it is in the back. (It is a little counter-intuitive at first. Event Page #1 is LAST to be evaluated. If you have ten event pages, Event Page #10 will have its conditions checked first. If they are all good, then that page will run.)













     
    See Granny’s Signature for a list of Ace Tutorials for the New Ace User




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

    本帖子中包含更多资源

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

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

    使用道具 举报

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

    本版积分规则

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

    幸运抽奖

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

    立即查看

    聊天机器人
    Loading...

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

    GMT+8, 2026-7-14 15:48 , Processed in 0.143751 second(s), 55 queries .

    Powered by Discuz! X3.4

    Copyright © 2001-2020, Tencent Cloud.

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