Enemy Exp Formulas




This script allows you to use a formula to calculate how much exp is obtained from an enemy.


Download


Get it at Hime Works!
At first I thought this script would make the enemy level up in battle making it harder for the player. XP 

A question:

Can we use a conditional branch in the formula?

Example:

if average party level >= 10

then

exp + 1

else

exp * 1

Above example for limiting the player from level grinding.
You're going to have to figure out how to write it in ruby but it would be something like

Code:
average_party_level >= 10 ? exp + 1 : exp - 1
Alternatively, I have just updated the script to support an "extended notetag" which allows you to write it in multiple lines
Code:
<exp formula>if average_party_level >= 10  exp + 1else  exp - 1end</exp formula>
You can have some pretty complicated things in there.
I always impressed when you release a new script. The idea is simple, yet nobody got that idea. And it make me want to redesign my game concept.

Anyway, good job ~
it's one really useful script. we can play with the formula. definitely gonna use this.

please create the enemy 'gold' formula next LOL. it will be wonderful.
Ya why not let's have some gold formulas since it is just a matter of renaming "exp" to "gold". I can't add it to this script since I already said it was "enemy exp formulas"
Script updated to support "this enemy" as a formula variable using the common `a` variable.

For example, if you have access to enemy levels, you can base the exp gained on the level like this

Code:
<exp formula>  a.level * 50</exp formula>
Which means the amount of exp you get is 50 times that particular enemy's current level.

Original thread: https://forums.rpgmakerweb.com/threads/enemy-exp-formulas.14004/