MV Looking for a way to slightly tweak a pair of Yanfly plugins.

So basically the three plugins I'm working with are Yanfly's Victory Aftermath, Victory Aftermath extension Level Up and Job Point .

Those plugins allow me to show a more detailed page when battle ends and show a specialized level page. I have a system for job points in my game and these plugins show job points earned, but only points earned in battle. For me, I only want them to gain job points only when they level. The idea is they gain the points and can choose which skills to learn when they level. The job points plugin allows me to do this, but the problem is with displaying this information to the player with the other two plugins.

Problem number #1 is that Victory Aftermath will only show JP earned if it was earned from battle itself, not because of leveling. Level up extension doesn't have a way to display job points at all.

I also have an unrelated problem #2. Victory Aftermath let's you display items gained from battle as part of the display, but it displays even if no items were gained, which leads to players just getting a pointless screen sometimes. Trying to see if there's a way to conditionally disable that so it only shows items gained of they actually gained them.
Problem number #1 is that Victory Aftermath will only show JP earned if it was earned from battle itself, not because of leveling. Level up extension doesn't have a way to display job points at all.
If you open the Job Points plugin and change line 552 to read
Code:
return this.jp();
it should change the displayed amount to be the actor's total JP.

Victory Aftermath let's you display items gained from battle as part of the display, but it displays even if no items were gained, which leads to players just getting a pointless screen sometimes.
Does it really? It doesn't for me, but then items and gold are on the same screen and all of my enemies drop gold. Just stop being so stingy! 😛

But try this...in the Victory Aftermath plugin, go to the end of line 972, hit Enter to make a new line. Paste:
Code:
if (!BattleManager._rewards.gold && !BattleManager._rewards.items.length) this.processNextVictoryStep();

Then, on the next line, add an else before the if
Actually found an easier solution to problem #1. I added "custom" in "victory order" and it works even if they only get up on level. But it's the same issue as problem #2 where it displays it even if they didn't earn any JP. I'll try your fix real quick.

Okay so for me, line 972 displays as
Code:
Scene_Battle.prototype.updateVictoryDrops = function() {

So you want me to drop the code after that?

Okay, so just to make sure before I save the file and confirming I did it right. That whole section of code should look like this now?

Code:
Scene_Battle.prototype.updateVictoryDrops = function() {
if (!BattleManager._rewards.gold && !BattleManager._rewards.items.length) this.processNextVictoryStep();
    else if (!this._victoryDropWindow) {
      this.createVictoryDrop();
    } else if (this._victoryDropWindow.isOpen()) {
      if (this.victoryTriggerContinue()) this.finishVictoryDrop();
    }
};

Went ahead and tested it and that takes care of problem # 2. Going to try the job point fix next.
Well, it mostly works. After changing the code it displays the current JP instead of the JP gained, which ... I didn't even consider approaching the problem from that angle but it works. I can change in the plugin itself the way it's worded so it says current JP on that screen instead of JP earned.

Only problem is there is a little percent bar animation that pops up on the JP screen implying it filling up even if the actor hasn't leveled etc. I can see that being pretty misleading for players.

Is there any way I could either 1) Disable that percentage graphic? or 2) Have it do a conditional for the Job Point screen like you did for item / equipment drop screen, (only display if the actor gained a level / earned JP).

Either or would work I think. If I can do #2, then I can revert line 552 back to what it was and everything will work.

Edit: Okay it's not a percentage graphic or bar. I mean it shows an animation of the number filling up. I'm trying to get it to just do a static display if I'm doing option 1. Sorry wasn't more clear.

Original thread: https://forums.rpgmakerweb.com/threads/looking-for-a-way-to-slightly-tweak-a-pair-of-yanfly-plugins.164917/