MZ A state stack plugin for skill cost and damage formula

I want to create a stackable stack for damage formula and skill resources.(I'm using visu battle core and atb fyi)
For example, a "power" state that can be use as skill cost and increase damage per "power" stack for skills,
and I want them to display as a single state with the number of stacks display on the state icon. It will also be nice to have a skill notetag to bulk add many stack of state.(I dont want to copy 20times for a skill that add 20 stacks of "power")

All plugins I found cannot do all of the above.
I have tried Theo StackingStates, but It display all stacks of state seperately(for example, if I have 2 stacks of burn, there will be 2 burn state icon display seperately).
I have also tried Synrec Status Construct, It displays stack of a state as number in the battle scene, but in main menu, status menu and in-battle status menu by visu battle core, they still display seperately, and dont seems to have damage formula reference and skill notetag to bulk add.

I have been using Nemv State Resources in MV to do create all features listed above but I cant seems to find any plugin similar in MZ. I have tried using Fossils to use Nemv State Resources in MZ but after also installing YEP skillcore and Buffstatecore as requirement for Nemv State Resources, it bugged with Visu's ATB system.

Thanks.
Hmmm, if I understood you correctly, you can use the VS Skill and States Core State Displays for that. Their page has the scripts to set and get the display number, so you can make damage formulas use that and skills change that and also have it be a requirement for stuff.

EDIT: You can use state notetags to change the number on add/erase state.
Hmmm, if I understood you correctly, you can use the VS Skill and States Core State Displays for that. Their page has the scripts to set and get the display number, so you can make damage formulas use that and skills change that and also have it be a requirement for stuff.

EDIT: You can use state notetags to change the number on add/erase state.
I think the OP also wants the "number of stacked states" to be used as "power" though, if I'm understanding it correctly.

This "power" will then be used in damage formula in other skills.

E.g. 2 x Rage = 2 x Power.
Then in a damage formula, something like:
JavaScript:
a.atk * 4 + power - b.def * 2

I guess you could save the number of stacked states in a variable, then just use something like:
JavaScript:
a.atk * 4 + v[10] - b.def * 2

RPG Maker does allow using variables in the damage formula by default.
I think the OP also wants the "number of stacked states" to be used as "power" though, if I'm understanding it correctly.

Yeah but they can use VS on add state notetag to increase the number to "count the states".

EDIT:
They can use in their damage formula: a.getStateDisplay(stateId)(though you might have to also check that it exists)
Yeah, so basically it's just a combination of using:

- VS Add State Notetag
- Add +1 to a variable
- Use the variable in damage formula
- Make sure to reset the variable back to 0 when state is removed

EDIT: Yeah, actually the a.getStateDisplay(stateId) is probably the better way to go! No need to use variables.
Yeah but instead of variable it's easier to use the state display, since they want to also show the number. I edited in my previous post that they can use in the damage formula:
a.getStateDisplay(stateId)
Yeah but instead of variable it's easier to use the state display, since they want to also show the number. I edited in my previous post that they can use in the damage formula:
a.getStateDisplay(stateId)
Agreed!
Yeah but they can use VS on add state notetag to increase the number to "count the states".
I think the OP also wants the "number of stacked states" to be used as "power" though, if I'm understanding it correctly.

This "power" will then be used in damage formula in other skills.

E.g. 2 x Rage = 2 x Power.
Then in a damage formula, something like:
JavaScript:
a.atk * 4 + power - b.def * 2

I guess you could save the number of stacked states in a variable, then just use something like:
JavaScript:
a.atk * 4 + v[10] - b.def * 2
s
Thanks ! But I am still figuring how to display the number. This is what I put in the skill notetag but it seems to not working.
Isn't that notetag from ATTTuran plugin? I thought you said you were using VS. If you use VS check their page for the correct notetags. And you need to use user/target in them. a/b is for damage formulas.
Thanks ! But I am still figuring how to display the number. This is what I put in the skill notetag but it seems to not working.
Wait, are you using MV or MZ?
I don't think VisuStellaMZ Skills States core has <Action After Eval>.

It has <JS On Add State> and <JS On Erase State>.
Isn't that notetag from ATTTuran plugin? I thought you said you were using VS. If you use VS check their page for the correct notetags. And you need to use user/target in them. a/b is for damage formulas
Wait, are you using MV or MZ?
I don't think VisuStellaMZ Skills States core has <Action After Eval>.

It has <JS On Add State> and <JS On Erase State>.
oh sorry I mixed up notetag of 2plugins . My brain is a bit dizzy now after whole day of searching. I am using Visu in MZ. It works very fine now. Thanks very much!!
This thread is closed due to being reported as solved. If you need it reopened, report it to let us know. Thank you!

Original thread: https://forums.rpgmakerweb.com/threads/a-state-stack-plugin-for-skill-cost-and-damage-formula.178144/