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
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/