Battle Control Script (Version 0.3 Released 9.29.2015)

Battle Control Script, Version 0.3
by bgillisp


Introduction

This script is intended to allow the designers to better control how little details in the battle system is applied, without having to tweak the damage formula or have different damage formulas for every skill. Right now it is in a *very* early development stage, and progress is as I have time for it, so it might be a while before it is final. However, what is posted here still works well enough that I use it in my game, so if you can find a use for it, go ahead and use it.

Features

-(In Version 0.1) Ability to add a state which will make the battler do minimum or maximum damage for all attacks, until the state wears off. Default is state 26 for minimum, 27 for maximum, but you can edit those in the editable region.

-(In version 0.2) Ability to add a notetag to a skill to make it have a better to hit than default.

-(0.2) Ability to set a min or max to a skill individually via a notetag, or you can set a global max or min in the editable region. Right now it only effects damage spells, healing spells will be upcoming in a future version.

-(0.3) Ability to set a global value for critical hit damage. Now if you think 3x damage for a critical is too much, you can tweak it.

-(0.3) Ability to set states which raise or lower critical hit damage received or taken.

-(0.3) Ability to set critical hit damage to be based on a formula. The formula is added on as a bonus, so you still need the global value.

-(0.3) Ability to set a monster to do bonus critical hit damage. Now you can make a crab that does x4 damage on critical hits, while the rest do 2x.

Screenshots
None - would require video to show the effect.

How to Use
Install the script by pasting in the materials section, but before main. This script does overwrite make_damage_value, so it must be *above* any scripts which alias that function. As such, I recommend you post this script above any battle system scripts, else your battle system script might not work.

Demo
Plug and play, just copy and paste.

Script
On pastebin: http://pastebin.com/fg7JW3vR

FAQ

Q: The link doesn't work

A: Notify me so I can fix it

Q: When do you think this script will be final?

A: No idea. I'm still learning RGSS and Ruby as I write these, and I post them when I get something that is functional and not crashing games. It might be one week to implement all the intended features, or it might be 6 months to a year as I have to go research how to implement things in between game development and work.

Q: I added your script and script Y stopped working!

A: Try posting this script above that script. As stated above, this script overwrites make_damage_value, which requires this script to be *above* any battle system scripts. Posting this script below the battle system will cause the battle system script to stop working.

Compatibility Notes

-Must go above my HP Barrier script, else it will stop working

-If you are using Yanfly's Battle engine, this script must go above Yanfly's Battle Engine.

(Both have been tested and confirmed working as of 7.28.2015)

Author's Notes

Free for use in commercial and non-commercial games, with credit given.

So what I have here at the moment works, what I want to know is, what about the way RPGMaker handles to hit, variance, evade, critical hits, critical hits, and so on, annoys you, and what would you like to see changed, if possible? Post requested features below, and I'll start work on my intended ones to add while people post and/or test out what I have so far.
Updated to version 0.2. Since this update allows you to add (or subtract) to hit to individual skills, I decided to rename this script to battle control script.

Unfortunately, it is still not too compatible with battle systems besides the default at the moment. I plan to work on fixing that once the rest of the other features are final.
Update to Version 0.3. Now you can control better how critical hit damage is done. You can set a global modifier for all critical hit damage, and you can add states which increase or decrease critical hit damage taken or received (or both). And, if you feel adventurous, you can set it up so that your critical hit damage goes up as a stat goes up. Want critical hit damage to increase as LUK goes up? Now that's possible.

Also, I did test the script out with Yanfly's Battle engine, and no errors were encountered as long as this script was above Yanfly's ACE Battle Engine. I imagine it should work with other battle engines as long as you post this script above the battle engine scripts.

Original thread: https://forums.rpgmakerweb.com/threads/battle-control-script-version-0-3-released-9-29-2015.40333/