Help with Attack with extra cost

Hello everyone. I need help with a mechanic. I need each character in the group to gain a special resource, to use in their skills, but each one must be different. I have access to Yanfly plugins.

Example:
1- Barbarian: gains resource every time someone in the group receives an attack (whether they are hit or not)
2- Warrior: gains resource every time someone in the team performs a basic attack or uses skills from a certain group
3- Mage: gains resource every time an enemy or ally spends mana.
4- Rogue: gains resource every time someone lands a critical hit, dodges or uses an item.

I imagine the skills to cost something like this:

Fireball: 40 MP
Fireball + : 40MP + 1 extra resource.

I have more or less two ideas on how to do this:
-Or by making each character have a particular way of gaining TP (but I don't know if that would be possible).
-Or with status effect stacks (but I don't know how to set a skill to cost a status stack)

Thanks!
Can you use TP and just have the energy renamed based on actor?
because your description sounds as if the "resource" has identical rules for everyone, and most of it is identical to TP-functionality. you would only have to set the TP charge rate to zero and use a simple plugin to rename the bar on the display.


EDIT: sorry, read some lines wrong.
however it can still be based on TP, with just some more complex rules on gaining points.

The key question is the display: if you want an energy bar for this "resource" then there are only very few options other than a custom plugin to create that.
If you don't need that, there are many more and easier options with "ammunition" type plugins and hidden items.
I'm not 100% familiar with all of the different modes, but the Yanfly MV plugin suite has some advanced TP plugin which allows you to define your own custom TP modes, and assign them to individual actors or classes. It has a bunch of modes built in too, but none of them quite meet exactly what you're looking for, I don't think.
You can also limit the max amount of TP an actor can have using the same plugin, to prevent the barbarian from banking a hundred resources and then spamming their big barbarian attack infinitely.

Edit: Maybe it doesn't allow you to make your own, but with some ingenuity, you can probably use one of the modes in the plugin for each of your use-cases.
Can you use TP and just have the energy renamed based on actor?
because your description sounds as if the "resource" has identical rules for everyone, and most of it is identical to TP-functionality. you would only have to set the TP charge rate to zero and use a simple plugin to rename the bar on the display.


EDIT: sorry, read some lines wrong.
however it can still be based on TP, with just some more complex rules on gaining points.

The key question is the display: if you want an energy bar for this "resource" then there are only very few options other than a custom plugin to create that.
If you don't need that, there are many more and easier options with "ammunition" type plugins and hidden items.
Yea, the name wasnt the problem. All can have the same name of the resource, but i needed that each actor gain the that in a custom way. By itens may can work, but i still dont know how to get the item in these four conditions that i said

I'm not 100% familiar with all of the different modes, but the Yanfly MV plugin suite has some advanced TP plugin which allows you to define your own custom TP modes, and assign them to individual actors or classes. It has a bunch of modes built in too, but none of them quite meet exactly what you're looking for, I don't think.
You can also limit the max amount of TP an actor can have using the same plugin, to prevent the barbarian from banking a hundred resources and then spamming their big barbarian attack infinitely.

Edit: Maybe it doesn't allow you to make your own, but with some ingenuity, you can probably use one of the modes in the plugin for each of your use-cases.
I will tink in the ballance after i discover how to creste those mechanics. I do think that some characters will have a lower max resouce pool and/or cost more points to use te "plus" attack.

advanced TP plugin is more or less what i need. Its shows how to check a conditional for a single actor, but i still cant find a way to check for the entire part, and the entire enemies troop. But ist a nice start, thanks

EDIT Ok, i understood how to combine them but i still the YEP cant give TP for item use or score a critical

Original thread: https://forums.rpgmakerweb.com/threads/help-with-attack-with-extra-cost.176800/