This script allows you to specify custom damage formulas depending on who the attacker and target are. The default formula allows you to specify A and B, but it doesn’t take into consideration whether they are actors or enemies.
This script provides 4 sub-formulas that will be used depending on who is A and B.
There are four cases to consider
- A is actor, B is enemy
- A is actor, B is actor
- A is enemy, B is actor
- A is enemy, B is enemy
Script: download here
Place this script below Materials and above Main
The general format of the note-tag to use is
<damage formula: TYPE> FORMULA </damage formula>
Where TYPE is one of
AA – actor to actor
AE – actor to enemy
EA – enemy to actor
EA – enemy to enemy
And the FORMULA is your usual damage formula.
If a sub-formula is not specified, then it is assumed to be the main formula
that is defined in the damage box built into the database editor.