MZ Visustella Skills and States plugin, extra resources help

Hello! Does anyone have any experience using the visustella plug-ins for MZ? I've been trying to create custom skill resources for it, like Rage or Energy, but can't seem to get it to work.

I'm able to create one and am able to have it show as what the character should be using, but in game it always says the character has 0 of it and can't get it to generate more. Though it isn't showing under the skills either, but I think I don't have the note tags on their correctly. I've tried googling to see how others have done it, but can't seem to find an answer. Or possibly I'm finding an answer but don't quite understand.

I'm trying to create one to function similar to TP where it gains resources as the battle goes, and others that function similar to MP

If anyone knows how to add a custom skill resource I would appreciate it!

No one can really answer your question without seeing how you defined all of these resources and their code in the plugin parameters.

For something that functions like TP, you'd also have to be putting notetags from the Battle Core onto the actors (or a passive state on them) to increase the resource when they get hit or perform skills or...however you want it to work.

Are you actually using all of these different resources that seem to work the same at the same time? You can't just rename the existing resources for each actor/class/whatever?
Hello, thank you for the response. I may be completely misunderstanding how this is supposed to function. I had thought I would add the extra resource in the plugin and then add that as part of the notetag to replace what MP in this case.

I had then tried to copy the values for the others and swap out the names, but that doesn't let them function. I hope this makes more sense, or if this does not work this way I can look into another solution.

Thank you!

Edit: I tried to update the core engine to add a custom parameter based on another post I found, however I don't believe that is how to update this. I did try again to replace the gauge by copying the preexisting MP code in the skill costs section of the plugin and edit the text to show my custom resource, however it only remained as MP. I am thinking I am misunderstanding how the Cost Processing, Window Display, and Gauge display scripts should actually be. I am not very familiar with javascript, but am trying. I did also notice that even after adding the new cost to a skill, it does not appear as a cost in game.

If anyone is able to help me understand how to add the extra cost type correctly I would be grateful!
At this point even just having them replace the MP gauge to another skill type and have it work similarly.

// Declare Variables const user = this; const skill = arguments[0]; let cost = 0; // Calculations const note = skill.note; cost = Math.floor(skill.mpCost * user.mcr); if (note.match(/<MP COST:[ ](\d+)([%%])>/i)) { cost += Math.ceil(Number(RegExp.$1) * user.mmp / 100); } if (note.match(/<JS MP COST>\s*([\s\S]*)\s*<\/JS MP COST>/i)) { const code = String(RegExp.$1); eval(code); } // Apply Trait Cost Alterations if (cost > 0) { const rateNote = /<MP COST:[ ](\d+\.?\d*)([%%])>/i; const rates = user.traitObjects().map((obj) => (obj && obj.note.match(rateNote) ? Number(RegExp.$1) / 100 : 1)); const flatNote = /<MP COST:[ ]([\+\-]\d+)>/i; const flats = user.traitObjects().map((obj) => (obj && obj.note.match(flatNote) ? Number(RegExp.$1) : 0)); cost = rates.reduce((r, rate) => r * rate, cost); cost = flats.reduce((r, flat) => r + flat, cost); cost = Math.max(1, cost); } // Set Cost Limits if (note.match(/<MP COST MAX:[ ](\d+)>/i)) { cost = Math.min(cost, Number(RegExp.$1)); } if (note.match(/<MP COST MIN:[ ](\d+)>/i)) { cost = Math.max(cost, Number(RegExp.$1)); } // Return cost value return Math.round(Math.max(0, cost));

Original thread: https://forums.rpgmakerweb.com/threads/visustella-skills-and-states-plugin-extra-resources-help.165914/