设为首页收藏本站同能贴吧 切换语言 繁体中文
开启辅助访问 切换到窄版
返回列表
+ 发新帖
查看: 219|回复: 0

[转载发布] Battle Test v1.0

[复制链接]
累计送礼:
0 个
累计收礼:
1 个
  • TA的每日心情
    开心
    昨天 03:27
  • 签到天数: 222 天

    连续签到: 1 天

    [LV.7]常住居民III

    9102

    主题

    893

    回帖

    7万

    积分

    管理员

    Rank: 9Rank: 9Rank: 9

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

    灌水之王

    发表于 2026-7-29 11:52:50 | 显示全部楼层 |阅读模式
    Introduction
    Provides various features to help with battle testing.

    Features

    • Run custom code at the start of each battle test.
    • Control the quantity of items given during battle test.
    • Set the starting HP/MP Rate of the party, as well as give a bonus/penalty to starting TP during battle test.
    • Allows for logging details of the battle to the console.
    • Allows for not closing the game after a battle test.
    How to use
    Save as APHO_BattleTest.js, add it via the plugin manager, adjust parameters as you see fit.
    Spoiler: Parameters Explanation
    Battle Test Initialise Code:
    Put custom code that you want to run before a battle test here. This will only apply to battle tests, and not test play.

    Override setupBattleTestItems:
    If enabled, allows you to set the quantity of items given during battle test. You can also set a different quantity for regular/key items/hidden items A/B.

    Exclude Item Prefix:
    Items whose names start with this are never given during battle test. Leave blank to not exclude anything.
    (For example, if you use items with names like '==POTIONS==' to divide your database for organisation, you can set this to '==' to ignore all such items)

    HP Rate, MP Rate:
    Starting HP/MP Rate of the party during a battle test. Must be a value between 0 to 1, where 1 is full HP/MP.

    TP Bonus:
    Grant a flat bonus to TP at the start of battle test. Can be negative to instead lose TP. Requires 'Preserve TP'.

    Detailed log:
    If set to true, details of the battle will be logged to the console. This works during test play as well. Set the value display and decimal rounding to whatever you prefer (if you do not want decimals to be rounded, set Decimals to -1), and set each parameter in the list to whether you want it logged or not.

    Close after battle test:
    By default, the game will close itself after a battle test.
    You may optionally choose to not close the game.
    This might be useful if you wish to review the logs at the end of battle.
    Note that doing so requires overriding BattleManager.updateBattleEnd whenever in a battle test.
    Script
    Spoiler: CODE
                    JavaScript:       


    Notes

    • Since this plugin is purely for testing purposes, it can be removed or disabled prior to deployment.
    • If using YEP_BattleEngineCore.js, place this plugin above it in the Plugin Manager.
    Terms of Use

    • Edits allowed for personal use.
    • Do not repost or claim as your own, even if edited.
    • Do not use for training AI models. This includes, but is not limited to, inputting the plugin contents or part thereof into AI models that train on user input.
    Version History
    v1.0 - 2023/10/19 - Initial release.

    Download Link
    GitHub

    Spoiler: SCREENSHOT




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

    本帖子中包含更多资源

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

    x

    帖子地址: 

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

    使用道具 举报

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

    本版积分规则

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

    幸运抽奖

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

    立即查看

    聊天机器人
    Loading...

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

    GMT+8, 2026-10-22 03:00 , Processed in 0.066782 second(s), 56 queries .

    Powered by Discuz! X3.4

    Copyright © 2001-2020, Tencent Cloud.

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