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

[交流讨论] DCupu Eventing - Skippable Event

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

    连续签到: 2 天

    [LV.7]常住居民III

    4446

    主题

    864

    回帖

    2万

    积分

    管理员

    Rank: 9Rank: 9Rank: 9

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

    灌水之王

    发表于 前天 16:09 | 显示全部楼层 |阅读模式
    This eventing tutorial works with most RPG Maker.

    I must admit, that even though it's NOT PERFECT and INCONVENIENT, this is probably the most relatable way of making a skippable content in your game.

    What is this about?
    Common question from most player : "Can we skip the cutscene?"
    Yes, this tutorial is trying to answer that very question.

    Feature
    Allows your player to skip event content with a press of button.

    Requirement

    • Basic knowledge of how event page works.
    • Understanding of how parallel process works.
    • Difficulty level : Apprentice

    How?
    It's actually so simple (it just tricky) that I can't put difficulty rating to this tutorial and could be explained with just a few sentences.

    • Your main event will just contain a loop, waiting for a button trigger.
      Spoiler: 1st page
      [/quote]
    • Add an extra page with parallel process trigger which contain your actual event.
      Spoiler: 2nd page[quote]

    Full explanation
    What happens there, you just make two event page running at the same time. The true nature of parallel process event is that it immediately run when the condition are fulfilled and immediately cut-off when the condition are not fulfilled. You can say that parallel event is like a fake event that run on different line than the normal event. Making use of this trait, you use self switch A to trigger your skippable content while actually you are trapped inside a loop waiting for a button trigger. And when you press that button, you instantly ended the parallel event.

    Points to be noted

    • If you want the event to wait for the player input, it's necessary to trapped the event inside a loop.
    • Always leave breathing space (at least wait 1 frame) when using loop.
    • Multiple parallel process may possibly run at the same time. BUT inside an event, only a single page with higher priority may run. Normal event have a nature to finish its page first while parallel can be cut-off in the middle. That contradiction is what make this phenomenon.
    • For the advanced skip button option, you might want to use conditional script / script call for that.
    What we learn?

    • Events run in two way. Inside interpreter (main), and outside interpreter (parallel).
    • Main event trait
      - Player don't have control.
      - Stable. When another main event condition fulfilled, It will queue until the last main event finished.
      - Will finish its page content first before checking its condition again.
    • Parallel event trait
      - Player may still have control.
      - Unstable. May cut off in the middle when its condition are not met completely disregard the main event.
      - Will constantly checking its condition.
    • Event pages technically ARE parallel disregarding its type. This are proven by how two event page can run at the same time in a single event. The active page may have changed, but the main event still following its rule by trying to finish its content first, EVEN though another page are also running.
    What made it imperfect
    is when dealing with the window message. If an event page is like a timeline that always move, window message freeze it. It play by its own rules. Yeah, skipping will still work, only after you escape from window message, so it will be a little weird. When window message are involved, you will be limited to only use [cancel] button as the skip button and are not allowed to use show choice. However it can be solved using a conditional script or script call that allow you to forcefully escape the window message.

    For the last, let me know if there's something you don't understand or what would you like to suggest to improve this tutorial I made.

    Thank you ~


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

    本帖子中包含更多资源

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

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

    使用道具 举报

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

    本版积分规则

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

    幸运抽奖

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

    立即查看

    聊天机器人
    Loading...

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

    GMT+8, 2026-7-14 14:20 , Processed in 0.111929 second(s), 56 queries .

    Powered by Discuz! X3.4

    Copyright © 2001-2020, Tencent Cloud.

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