Hi there!
I can say nothing about the Visu plugin. But I can say how my plugin works, and maybe you can find a way in the Visu plugin to fix that.
Since the experience for each actor can be different due to the level difference between each one and the enemy, I cannot rely on the BattleManager._rewards.exp, since he gets a single value from the
$gameTroop.expTotal().
But you can get the individual experience value from each actor by using the following script call:
Eli.ExpByLevel.getActorLastExp(ActorId)
Replace the ActorId with the id of the actor you want to know how many experience he gained after battle.
Thanks! With that, it seems I got it figured out. Just to have a quick tutorial for anyone who stumbles on this in the future (or for myself if/when I forget down the line):
Open VictoryAftermath plugin in RPG Maker MZ
Go to Reward Strips
I copied the EXP line and pasted it at the bottom, to have a backup of default behavior, then doubleclick the line to open it, doubleclicked the JS: Show line, and changed it from "return true" to "return false" (so this line doesn't show up ingame)
Then I went to the copy-pasted EXP line that will be edited, double clicked to open it, then doubleclicked the JS: Data line
Now enter here:
return Eli.ExpByLevel.getActorLastExp(ActorId);
Where as stated by Eliaquim, replace ActorId with the # of the party member. I set it to 1 (this game only has 1 playable character).
Now it will correctly show an EXP line in game that updates based on the XP reduction value.
If you have multiple party members, I think you would want to have multiple EXP lines, each with their own ActorId value, and instead of it being named EXP (edited under Label after doubleclicking an EXP line), you would want it to be PartyMemberName EXP for Label. I have another game with 5 party membres I plan on using this XP reduction for, so I can test this out there shortly and update if it works this way.
EDIT: And just wanted to say, thanks so much for making this plugin! It really is helping set my 2nd game apart from the 1st, and I like to discourage too much grinding, this helps with that. I am *planning* on using it in my 3rd game as well, but I'll see, I might decide to let that one be an easier game (it's supposed to be a parody game) by letting people outlevel bosses so they aren't as difficult as I have them in first (released) and second (work in progress) games. EDIT3: Hmm okay for this one, I can make it show different EXP values based on ActorId, so in my 5 party member game it has 5 entries. But I don't know how to make it so instead of saying EXP for each line, to instead say PartyMemberName EXP instead. Anyone able to help with this? The line in VictoryAftermath for where it's getting the text from, is:
"return TextManager.exp;"
EDIT2: Another small issue, but I have found a workaround in case something else can't be figured out. At the bottom of VictoryAftermath, where it has the party member XP gauge, it will update according to how much the monsters would give without the reduction first, and after that is shown, it then updates to show the value post-reduction. For now I've worked around this by making the update time take 0 frames instead of any value - that makes it just show ie. 0 increase on the gauge if a monster gave 0 xp post reduction. But this gets rid of showing the gauge grow from the XP gained. Ideally I could have the gauge still grow when needed, and when a monster gives less XP, have the gauge immediately grow according to that, as opposed to right now where when growth is shown, it will grow ie. 2 xp and then after it shows that adjust to show less/no growth. I don't see anything under VictoryAftermath general settings (where the update duration for the gauge is) for where the gauge pulls the value from, so maybe this can't be adjusted.