MV YEP SkillCore and MrTS_DifferentHpMpTp compatibility

Hello everyone 👋

(I hope I'm in the right section of the forum otherwise, my apologies to the moderators)

I have a small compatibility issue between two MV Plugins:
Yanfly's Skill Core (which I think a lot of people know)
and MrTS_DifferentHpMpTpColorsAndNames which is a “smaller” one that allows, for class, to choose a different name and color for each resource.

The worry is that when I choose a skill, the resource type displayed for any character will be a custom name, but always the name I chose for the 4th combat actor.

example: (be carefull, maybe sound's volume is high)


I've noticed that this is also the case in the skill learn system scene :
(be carefull, maybe sound's volume is high)


I can tinker a bit with a plugin and I have some very basic notions of JS.
But this is beyond my skills, and if anyone knows anything about it, I'd like to know how to fix it...
Or if there's another compatible Yanfly Engine plugin for this same function?

Thanks for reading 🙂 :LZSproud:
Welcome!

Per the section guidelines, please provide a link to the plugins you're asking about.

Have you verified that this has anything to do with Yanfly's Skill Core? If you turn that plugin off, save your project, and start a new play test, do the resource names display correctly per the Mr. Trivel plugin?
Welcome!

Per the section guidelines, please provide a link to the plugins you're asking about.
Hi, sorry, it's edited with link 🙂
Have you verified that this has anything to do with Yanfly's Skill Core? If you turn that plugin off, save your project, and start a new play test, do the resource names display correctly per the Mr. Trivel plugin?
Yes, I checked, because in basic RMMV, without YEP Skill core, the resource name isn't even displayed when choosing a skill in combat or in the skill menu, only a number for the cost.
It's YEP Skill core that displays the name as well.
The Trivel plugin does this in a...not very modular way.

Try this. Paste the below into a text editor, save as a *.js file, include as a plugin.
Code:
var origSkillListSetActor = Window_SkillList.prototype.setActor;
Window_SkillList.prototype.setActor = function(actor) 
{
    origSkillListSetActor.call(this, actor);
    $gameSystem.setActorHpName(this._actor.actorId());
    $gameSystem.setActorMpName(this._actor.actorId());
    $gameSystem.setActorTpName(this._actor.actorId());
};
The Trivel plugin does this in a...not very modular way.

Try this. Paste the below into a text editor, save as a *.js file, include as a plugin.
Code:
var origSkillListSetActor = Window_SkillList.prototype.setActor;
Window_SkillList.prototype.setActor = function(actor)
{
    origSkillListSetActor.call(this, actor);
    $gameSystem.setActorHpName(this._actor.actorId());
    $gameSystem.setActorMpName(this._actor.actorId());
    $gameSystem.setActorTpName(this._actor.actorId());
};
Hi @ATT_Turan , I just tried the code you suggested and it works great on fight !!! thanks a lot!!!! 😢

I may be abusing your talent but:
on the 2nd video (this one), the resource name is not displayed correctly right away in skill learn system :
- when you position yourself on the window: it's the wrong resource name (5 sec on the video)
- when you validate the window to choose a spell to learn, the name changes to the correct term (8 sec)
I don't know enough about js, but the resources should be updated when the cursor arrives on the “skill learn system” (rename "apprendre un sort") menu and not when you click to enter this menu.

In any case thank you very much again, I had almost resigned myself to no longer using this plugin because I don't have the skill level to correct things like this....
You do the same thing with that window.

Code:
var origSkillLearnSetActor = Window_SkillLearn.prototype.setActor;
Window_SkillLearn.prototype.setActor = function(actor) 
{
    origSkillLearnSetActor.call(this, actor);
    $gameSystem.setActorHpName(this._actor.actorId());
    $gameSystem.setActorMpName(this._actor.actorId());
    $gameSystem.setActorTpName(this._actor.actorId());
};
You do the same thing with that window.

Code:
var origSkillLearnSetActor = Window_SkillLearn.prototype.setActor;
Window_SkillLearn.prototype.setActor = function(actor)
{
    origSkillLearnSetActor.call(this, actor);
    $gameSystem.setActorHpName(this._actor.actorId());
    $gameSystem.setActorMpName(this._actor.actorId());
    $gameSystem.setActorTpName(this._actor.actorId());
};
Hi @ATT_Turan
Thank you for your time, it's very kind of you 🙂
I tried your script but it doesn't change my problem

I think that the resource name is updated when I enter Window_SkillLearn (I mean when I press enter), and indeed, when I enter Window_SkillLearn, the resource name is correct (with or without the script)
As you can see in my video (at 6sec) , the resource name is not correct only when I put the selection cursor on the Window_SkillLearn but without enter it,
but when I enter, the name changes and becomes the correct one.

So I'm thinking (you'll tell me if I'm wrong) that the resource names should be updated when I enter the “skill” menu and not in the SkillLearn submenu.

I hope my message is clear because I'm not very good at English 😀

Thx
I guess try putting it into the bottom level of the skill scene.

Code:
var origSkillRefreshActor = Scene_Skill.prototype.refreshActor;
Scene_Skill.prototype.refreshActor = function() 
{
    origSkillRefreshActor.call(this);
    $gameSystem.setActorHpName(this._actor.actorId());
    $gameSystem.setActorMpName(this._actor.actorId());
    $gameSystem.setActorTpName(this._actor.actorId());
};

You would use this instead of the last one.
I guess try putting it into the bottom level of the skill scene.

Code:
var origSkillRefreshActor = Scene_Skill.prototype.refreshActor;
Scene_Skill.prototype.refreshActor = function()
{
    origSkillRefreshActor.call(this);
    $gameSystem.setActorHpName(this._actor.actorId());
    $gameSystem.setActorMpName(this._actor.actorId());
    $gameSystem.setActorTpName(this._actor.actorId());
};

You would use this instead of the last one.
hi @ATT_Turan,
It still doesn't work, and I don't understand why, but I don't want to take up too much of your time, thank you for your help 🙂
In the game, if you press F8 and go to the Console tab, does it show any errors? I'm not sure why that wouldn't update it correctly.
In the game, if you press F8 and go to the Console tab, does it show any errors? I'm not sure why that wouldn't update it correctly.
Hi @ATT_Turan , yes my console is error-free, all my addons are correctly ordered (stored in the right order).
In the end, it's just a problem of when the ressource name update executes, not the update itself.

I've done quite a few tests, but this little problem persists.
As long as I don't press enter, the name doesn't update, it only updates when I press enter.

It's a minor problem, and I'll certainly take care of it later so as not to tie up days on it...

I'm repeating myself but : thanks again for the time you spent on my problem 😉

Original thread: https://forums.rpgmakerweb.com/threads/yep-skillcore-and-mrts_differenthpmptp-compatibility.171593/