设为首页收藏本站同能贴吧 切换语言 繁体中文
开启辅助访问 切换到窄版
搜索附件  
同能RPG制作大师 › 附件中心 › 同能RM技术讨论区 › RPG Maker MV 讨论区 › Battle Test v1.0: APHO_BattleTest.js

Battle Test v1.0: APHO_BattleTest.js

 

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

幸运抽奖

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

立即查看

Loading...

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

GMT+8, 2026-10-4 02:49 , Processed in 0.101998 second(s), 19 queries .

Powered by Discuz! X3.4

Copyright © 2001-2020, Tencent Cloud.

返回顶部