Core: Damage Processing

This script re-writes the damage processing method in Game_Battler, increasing flexibility and consequently compatibility between scripts. All it does is re-arrange each line of the original method into several methods, each performing certain types of calculations. The damage is then returned and passed to the result to apply it to the battler.

By adding more methods, there is more opportunity to insert extra calculations before or after certain modifiers are applied.

Download

Script: http://db.tt/LZSeDHZ5

Usage

Intended for scripters. If you compare the original method with the new methods I’ve written, you should see that it is the exact same logic except written in a more round-about way.

I’ve grouped different damage modifiers based on whether I thought they were commutative, so for example things like element modifiers and item modifiers don’t really matter what order they appear, but it is important that base damage is calculated before modifiers are applied.

You can now choose where to alias rather than just trying to work with the original method and end up overwriting it.

About HimeWorks

Programmer, Software Developer, Gamedev. Currently focused on game development in RPG Maker. I offer plugins, tutorials, videos, and other materials at HimeWorks.
This entry was posted in RMVXA. Bookmark the permalink.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s