Adding custom text to Yanfly's Victory Aftermath plugins

Hello!

Even though it's pretty irrelevant for my question, I will say that I am using two plugins that give my players points when they level up:
Spoiler
1- Yanfly's Stat Allocation plugin, which lets you gain X Allocation Points per level up, and then invest them to improve your stats.
2- SomeFire's Skill Tree System, which lets you gain X Skill Points per leel up and then invest them to learn skills and progress through the skill trees to unlock new ones.

The thing is, I would love if YEP_VictoryAftermath and/or YEP_X_AftermathLevelUp could include a small text near actors who leveled up, indicating that they obtained X Allocation Points and X Skill Points.

In my case, it's impossible to level up twice in a single battle, and you always get a fixed amount of points per level up, so I wouldn't even need to add variables. I would just need a piece of text (+2 AP, +1 SP) to show up when an actor has leveled up.

Here are some pictures of how I want it to look like (made in Paint):
In YEP_VictoryAftermath
Spoiler
victory-aftermath.png
In YEP_X_Aftermath Level Up
Spoiler
aftermath-level-up.png

I tried to edit the victory aftermath plugins, but I just don't know how to do it... and I thought about job points, but I want AP and SP to be independent from each other.

Thank you!


EDIT:
I found a solution to add text to the lvl up screen. This did it for me: (DreamX's Victory Aftermath Extension)
https://forums.rpgmakerweb.com/index.php?threads/dreamxs-victory-aftermath-extension.60509/
you could get yanfly job point plugin, hide all its menu visability.
this plugin already links to aftermath level up, you would just change the notification to read as you set AP/SP gain.
you could get yanfly job point plugin, hide all its menu visability.
this plugin already links to aftermath level up, you would just change the notification to read as you set AP/SP gain.

Hello, thanks for your reply! I thought about using job points, but there are some downsides to that method, particularly if your JS knowledge is very limited (which is my case):
  • The Job Points plugin does not link to YEP_X_AftermathLevelUp, but to YEP_VictoryAftermath. It just creates a new "step" in the victory aftermath sequence (so that it goes like... 1)Exp gained by everyone; 2) specific level up windows for actors who leveled up; 3) job points gained by everyone).
  • While it makes sense for job points to have their own "step" like that, because you get job points through many different ways and every actor will get a certain amount depending on their battle performance... having a whole window dedicated to showing "+2 AP, +1 SP" for actors who leveled up feels unnecessary.
  • The Job Points window includes every actor, not only the ones that leveled up, so that's another thing that would need modification
So, turning the Job Points window into an AP/SP window is not as straightforward as it seems, and I think it's actually simpler (and looks nicer) to somehow add a small custom text to the VictoryAftermath window or to the AftermathLevelUp window, as shown in the edited images I shared.

Original thread: https://forums.rpgmakerweb.com/threads/adding-custom-text-to-yanflys-victory-aftermath-plugins.109877/