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

[转载发布] Dynamic Branching

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

    连续签到: 2 天

    [LV.7]常住居民III

    7959

    主题

    864

    回帖

    3万

    积分

    管理员

    Rank: 9Rank: 9Rank: 9

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

    灌水之王

    发表于 昨天 13:06 | 显示全部楼层 |阅读模式
    Dynamic Branching v1.0
    JakeMSG

    Introduction

                    With this plugin, you're capable of giving the player the choice to "branch" out, by pressing customizable keys on their keyboard, to go to specific labels.
                    Thus, you're able to "branch dynamically" during event processing, instead of being restricted to branch/label jump only at predetermined positions in the event editor.

    Features
    - Use Labels to enable the game to wait for specific (customizable) key inputs from the player, before jumping to specified labels per each individual possible key (keys are specified by their ASCII code).
    - The ability to also disable the above feature where needed.
    - The ability to even "revert" a "jump", to essentially jump back to the initial jump's starting position (and even provide an offset for said starting position).
    * There's also a Javascript function you can use for referencing a key directly by its (ASCII) keyCode instead of its keyName (which you'd normally have to set prior), in conjunction with any Input functions!
    ==== NEW!
    - Made the MZ version!
    - Unlike the MV version (which solely use the "Label" instruction), it solely uses the "Jump to Label" instruction. Otherwise, it works exactly the same.
    - Keep in mind, if your "Jump to Label" is named exactly as another Label in the event page, priority will be taken by my plugin's new function for the "Jump to Label" instruction over its initial function. Best to avoid such function conflicts, just to keep things simple(-er).

    How to Use
                    Download this plugin and paste it in the "/www/js/plugins" folder for MV (or just "js/plugins" folder for MZ), then enable it within the editor, as per usual.
                    I recommend also using a site, on the side, to check for the ASCII codes for your keys, such as [this one].

    Download

    Terms and Credits
    Use however you wish, wherever, credit me if you feel like it / give me a copy of your game if you feel generous


    New Trick - Parallel Eventing capability (by sending key Input via Script Calls)
    If you want to trigger the Jumps in an Event Page by using Parallel Eventing outside of said event page, you can do so by sending a key Input from script calls, like so:
    1. * Input._currentState[keyNameOrCode] = true;
    复制代码
    1. * {Wait In-Editor Instruction} = 4 Frames
    复制代码
    1. * Input._currentState[keyNameOrCode] = false;
    复制代码
    1. * ==== "keyNameOrCode" can be any keyName (much like all other Input function work), or even use my "aKey" new method
    复制代码
    1. * ==== The Wait needs to be > 1 frames (safe to use 4 frames), so that it can be detected during main Event processing
    复制代码

    This can also work using the javascript function I added with the Plugin to reference keys by their (ASCII) keyCodes!


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

    本帖子中包含更多资源

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

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

    使用道具 举报

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

    本版积分规则

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

    幸运抽奖

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

    立即查看

    聊天机器人
    Loading...

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

    GMT+8, 2026-7-31 23:35 , Processed in 0.105297 second(s), 53 queries .

    Powered by Discuz! X3.4

    Copyright © 2001-2020, Tencent Cloud.

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