Displaying an increase in Experience Gained

Hi everyone~

I'm working on a little project right now and I'm really messing with all the stats a lot.  For instance I'm modifying Defense and Magical Defense in the skills to affect attack, along with renaming them in game.  

One feature I can't work out is how to increase the Experience Gained to display properly.  As I have it right now the experience gained gets an additional 1% from each point in the LUCK stat, and the exp gain works properly but I'm running into a major road block on displaying it on the fight recap.  

Example:

I have a fight set up to test, with the player luck set to 10 and an experience gain of 1000 exp / fight.  After the fight I consistently get the message 'player was victorious, 1000 exp received', when the actual experience gained is 1100. 

I have also tried using a passive skill to make [ EXR = (Luck/100) + 1 ] , but that doesn't display properly either.

Anybody know what changes I need to make for the experience gained to be correctly displayed post-battle?

Thanks!
You need to edit the display_exp method in BattleManager. The default simply shows the combined exp total of the enemies:

def self.display_exp

    if $game_troop.exp_total > 0

      text = sprintf(Vocab:😮btainExp, $game_troop.exp_total)

      $game_message.add(text)

    end

  end

 

I didn't actually notice until you asked this that the default battle engine always shows the exact exp total the enemies give and not how much exp was actually received, but I think it does this because the default only shows a generic exp gain message rather than how much actual exp was received by each party member. You could change it to show an individual message for each actor if you wanted.

Original thread: https://forums.rpgmakerweb.com/threads/displaying-an-increase-in-experience-gained.39569/