MZ Help with creating custom skill resources.

Hey, I'm struggling to get a custom skill cost resource to work for my game.

To start off, I'm trying to add a resource called "Spell Points/SP" that functions like the default "MP." I'm using MP for regular combat actions in the game right now (in the form of Action Points), and TP is going to be tied to a specific class, so I want to create spell-casting actions that cost both Action Points/AP and SP to use.

I tried using Visustella's SkillState Core to do this, but what ended up happening is that it locked out every skill in the game, even if it did not have an SP cost via notetag, making combat unplayable. I'll post the JS code I did for Cost Calculation which was mostly just replacing MP with SP.

I then switched to Eli's Skill Cost plugin, and while it more or less works in a more straightforward fashion by comparison, I want the cost amount to be displayed underneath the HP/TP gauges and can't figure out how to do that.

Any help on this is appreciated.

1736102393098.png
1736102406490.png

Original thread: https://forums.rpgmakerweb.com/threads/help-with-creating-custom-skill-resources.174441/