Two updates have been made to the Parameter Bonuses script.
- Classes, weapons, armors, and states all support parameter bonuses
- You can reference each object’s own attributes in the bonus formula
When you add bonuses to an actor, the bonus will always be applied. However, sometimes you want bonuses to be activated under certain circumstances, such as wearing a piece of armor or applying a state.
By note-tagging parameter bonuses to different database objects, you can create all kinds of equips and states with unique functionality.
For example, suppose you want to create a skill that will double a battler’s atk. You can create a state that has the note-tag
<param bonus: atk> a.atk </param bonus>
And whenever the state is applied, it will increase the battler’s atk by the amount of atk it currently has, effectively doubling its atk.
In addition, the formulas have been upgraded to allow you to reference the object’s attributes.
This means that you can directly reference a weapon’s original atk, or an armor’s original def, or maybe the price of an item. Essentially, you can access any attribute on any objects that the bonuses are attached to, including additional attributes added by other scripts.
More information can be found in the script: Parameter Bonuses