This script allows you to use a formula to calculate how much exp is obtained from an enemy.
Script: download here
Place this script below Materials and above Main
Note-tag enemies with
<exp formula: FORMULA>
Where the FORMULA is any valid ruby formula that returns a number.
You can use the following variables in your formula:
exp - the default exp value set in the database for that enemy a - this enemy p - game party t - game troop v - game variables s - game switches
If no exp formula is specified, then the default exp is given.
If you would like to use ruby statements that extend across multiple lines,
you can use the extended note-tag:
<exp formula> if v exp + 200 else exp - 200 end </exp formula>
This may be useful if you have complex logic and you don’t want to write it as
Divide exp by the number of battle members
<exp formula: exp / p.battle_members.size >
Increase exp by some multiplier based on variable 1
<exp formula: exp + (v * 100) >
Give a nice bonus based on whether switch 1 is ON
<exp formula: s ? exp * 10000 : exp >