Hi guys, currently I'm making a game with level-based exp gain. I use YEP enemy level & enemy base parameters.
So, I'm looking for an effect where my actors will get exp based on enemy's vs each actor's levels.
Original thread here: https://forums.rpgmakerweb.com/inde...ained-based-on-the-difference-in-level.96158/
From that thread, I modify it into:
What I'm looking for (Example):
Actor A is level 1 and actor B is level 3
Enemy AA is level 1 and enemy BB is level 2
EXP is divided among living actors
in the end of battle, Actor A gets 80 / 2 * 2 = 80 from enemy AA and 80 / 2 * 2.4 = 96 from enemy BB
Actor B gets 80 / 2 * 1.6 = 64 from enemy AA and 80 / 2 * 1.8 = 72 from enemy BB
and yes the EXP are count separately for each actors...
*I've tested it and only the var 'base' works... I feel that something like "this.whatever" line should be used somewhere... I'm not so good with JS tho...
Thanks in advance!
So, I'm looking for an effect where my actors will get exp based on enemy's vs each actor's levels.
Original thread here: https://forums.rpgmakerweb.com/inde...ained-based-on-the-difference-in-level.96158/
From that thread, I modify it into:
Code:
<Custom Base exp Formula>
Var Base = 80
if (level-6 >= $gameActors.actor(1).level)
{exp = Base * 5;}
else if (level-5 === $gameActors.actor(1).level)
{exp = Base * 4.3;}
else if (level-4 === $gameActors.actor(1).level)
{exp = Base * 3.7;}
else if (level-3 === $gameActors.actor(1).level)
{exp = Base * 3.2;}
else if (level-2 === $gameActors.actor(1).level)
{exp = Base * 2.8;}
else if (level-1 === $gameActors.actor(1).level)
{exp = Base * 2.4;}
else if (level === $gameActors.actor(1).level)
{exp = Base * 2;}
else if (level+1 === $gameActors.actor(1).level)
{exp = Base * 1.8;}
else if (level+2 === $gameActors.actor(1).level)
{exp = Base * 1.6;}
else if (level+3 === $gameActors.actor(1).level)
{exp = Base * 1.4;}
else if (level+4 === $gameActors.actor(1).level)
{exp = Base * 1.2;}
else {exp = Base;}
</Custom Base exp Formula>
What I'm looking for (Example):
Actor A is level 1 and actor B is level 3
Enemy AA is level 1 and enemy BB is level 2
EXP is divided among living actors
in the end of battle, Actor A gets 80 / 2 * 2 = 80 from enemy AA and 80 / 2 * 2.4 = 96 from enemy BB
Actor B gets 80 / 2 * 1.6 = 64 from enemy AA and 80 / 2 * 1.8 = 72 from enemy BB
and yes the EXP are count separately for each actors...
*I've tested it and only the var 'base' works... I feel that something like "this.whatever" line should be used somewhere... I'm not so good with JS tho...
Thanks in advance!