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

[转载发布] Touch Surprise Battles

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

    连续签到: 2 天

    [LV.7]常住居民III

    8176

    主题

    864

    回帖

    3万

    积分

    管理员

    Rank: 9Rank: 9Rank: 9

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

    灌水之王

    发表于 2026-7-18 17:02:35 | 显示全部楼层 |阅读模式
    Touch Surprise Battles v1.4
            By DreamX

             
    Introduction/Features
            Events labeled with <enemy:1> will use their direction and the player's direction to decide whether their battle processing command results in a preemptive, surprise, or normal battle. You can also force the next evented battle to be preemptive, surprise or normal.


    Patch Notes


            v1.4a (1/23/16): Fixed compatibility for Orange Custom Events.


            v1.4 (1/23/16): Added compatibility for Orange Custom Events.


            v1.3 (1/16/16): Added parameters for back preemptive/surprise battles chance.


            v1.2 (1/14/16): Plugin commands now apply to touch <enemy:1> events.


            v.1.1 1/12/16: Fixed bug with maps that don't have all events sequentially ordered (for example, if you delete an event) and added compatibility for Sanshiro's Map Generator.


    How to Use
            Right click the script link and select save link as.


            Make sure to set the switches in the parameters or the script won't do anything.
            Put <enemy:1> into an event so that when the player and it touches, it'll set the next battle type depending on how they touched (you touch their back = preemptive, they touch your back =  surprise, otherwise = normal). In addition, surprise battles may occur when the enemy touches the player from the side or preemptive battles if vice versa. Set the chance of this occuring in the parameters.

            The following plugin commands do not apply to random battle encounters you get from walking around on the map (it does apply to battle processing event commands that are "same as random encounter," though).


            Plugin Commands:
            ForceSurpriseBattle - Forces the next battle to be surprise.
            ForcePreemptiveBattle - Forces the next battle to be preemptive.
            ForceNormalBattle - Forces the next battle to be normal.


            ResetBattleType - Removes the forced state. If the event is labeled <enemy:1>, the battle type will be decided by direction again.


    Script


    Credit and Thanks
            - DreamX


     Script portions used, modified or referenced in this plugin: Jeneeus Guruman - Preemptive-Surprise Event Battle:
                    Jene.gameInterpreterCommand301
                    Jene.gameCharacterBaseSetDirection
                    Game_Interpreter.prototype.preemptiveOrSurprise


    Author's Notes/Terms of Use
            Free to use and modify for commercial and noncommercial games, with credit.


    You should credit Jeneeus Guruman for the referenced script.


    本贴来自国际rpgmaker官方论坛作者:DreamX处,因国际论坛即将永久关站,为了存档多年珍贵资料,署名转载到本论坛存档,由于官方帖子为英文原帖,需要中文翻译请点击论坛顶部切换语言为中文就可以将帖子翻译成中文浏览,方便大家随时查看,原文地址:https://forums.rpgmakerweb.com/threads/touch-surprise-battles.54808/
    天天去同能,天天有童年!
    回复 送礼论坛版权

    使用道具 举报

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

    本版积分规则

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

    幸运抽奖

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

    立即查看

    聊天机器人
    Loading...

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

    GMT+8, 2026-8-1 15:39 , Processed in 0.121506 second(s), 55 queries .

    Powered by Discuz! X3.4

    Copyright © 2001-2020, Tencent Cloud.

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