MV BuffStatesCore Stat Modifier

I am trying to make a state that makes it give the actor a perk.
The effect I would like it to have is this:
Take the DEF stat. Divide it by 5 (20%). Then, apply that number as a bonus to both the STR and SP. ATK statistic. Refresh each turn, so that bonuses can be applied.
For some reason, this doesn't appear to calculate correctly and my numbers have been unchanging on my end. I have spent so much time on this to no avail. I would appreciate any help, especially because I am someone who knows nothing about JS.

NOTE: I have made edits to remove the AI code that I had used to try to solve my problem, at the request of one of the comments.
<Custom Parameter Modifier>
where did you get this notetag?
where did you get this notetag?
was gpt'd, because I was having a hard time with it. Based on the question, I assume that's not even a notetag that exists, so that's already helpful.
I think you and everybody need to STOP resorting to AI to make your code if you’re gonna proceed to ask questions about it here. Does it not occur to you in the slightest that it’s kind of rude?

Just ask what you want to do and people will be more than willing to help you out. Stop pasting AI garbage as it will turn off the vast majority of people with any coding knowledge. Seriously, it’s common sense.
I think you and everybody need to STOP resorting to AI to make your code if you’re gonna proceed to ask questions about it here. Does it not occur to you in the slightest that it’s kind of rude?

Just ask what you want to do and people will be more than willing to help you out. Stop pasting AI garbage as it will turn off the vast majority of people with any coding knowledge. Seriously, it’s common sense.
No, I don't see why it's rude at all. Maybe it would be rude if I had asked for help, but then went to AI afterwards, but I really was just trying to solve my own problem instead of flooding the forum, and at least show that I had tried to have it figured out myself.

My intention was to have someone see where the error could be, and I wanted to learn what was wrong with the code I was using.
I would appreciate if you would try to understand my intention rather than just assume I am trying to muddy waters or something.

But, in the future, I will not post the AI-produced stuff. I just didn't want to inconvenience people, so I'm sorry to offend you.
No, I don't see why it's rude at all.
Because you go to AI, get broken code that doesn't work, then come seeking help to fix the busted code when all you had to do was ask for help from the forums in the first place, getting assistance from people who do know what they're talking about. Why skip the human component in the first place?
Because you go to AI, get broken code that doesn't work, then come seeking help to fix the busted code when all you had to do was ask for help from the forums in the first place, getting assistance from people who do know what they're talking about. Why skip the human component in the first place?
Because it has worked up until this point in time. With 11 other notetags. Again, I just don't like to inconvenience others when it's not necessary.

I'm not on these forums to debate or anything, and I would appreciate help with the forums intended topic.

I apologize, once again. Any anecdotal comment/reason I could provide won't be conducive to my discussion here. If you wish to ask me anything about me and not my issue, please feel welcome to dm me.
Because it has worked up until this point in time. With 11 other notetags.
But relying on it to do everything for you does you no favors and isnt likely to teach you anything in the long run. If neither you nor it can tell you what its doing right from wrong, you wont know when its feeding you garbage and how to fix it. These forums see a lot of nonfunctional ai generated code, and half the time its be easier scrapping it and starting over than trying to fix it with how bad it gets

You said that you wanted someone to find the "error" in that code, but there was no single point that would have made it fail. Ignoring the imaginary notetag that you would have known didnt exist if you read the plugin's help file, there were multiple errors in the code itself and the logic behind it. Had the notetag been real and the js in it was being ran in the game, that small section alone would have caused crashes in 3 separate spots for using undefined variables. If the variables were defined, and the notetag was real, it still wouldnt have a way to apply the value to the correct parameter and was only adding to the value instead of setting it

You can use quazi's param plus plugin to make the state give the user a boost to one paramter based on a percentage of another. You wouldnt need an apply or a remove effect, you wouldnt need to use state counters to keep track of the bonus, and you wouldnt have to recalculate the bonus every turn.
But relying on it to do everything for you does you no favors and isnt likely to teach you anything in the long run. If neither you nor it can tell you what its doing right from wrong, you wont know when its feeding you garbage and how to fix it. These forums see a lot of nonfunctional ai generated code, and half the time its be easier scrapping it and starting over than trying to fix it with how bad it gets

You said that you wanted someone to find the "error" in that code, but there was no single point that would have made it fail. Ignoring the imaginary notetag that you would have known didnt exist if you read the plugin's help file, there were multiple errors in the code itself and the logic behind it. Had the notetag been real and the js in it was being ran in the game, that small section alone would have caused crashes in 3 separate spots for using undefined variables. If the variables were defined, and the notetag was real, it still wouldnt have a way to apply the value to the correct parameter and was only adding to the value instead of setting it

You can use quazi's param plus plugin to make the state give the user a boost to one paramter based on a percentage of another. You wouldnt need an apply or a remove effect, you wouldnt need to use state counters to keep track of the bonus, and you wouldnt have to recalculate the bonus every turn.
I did read the plugins help file, but I figured that it may have been reading something I hadn't been finding. It became a process of plugging in, after trying to troubleshoot for a while.

I appreciate the guidance.
But relying on it to do everything for you does you no favors and isnt likely to teach you anything in the long run. If neither you nor it can tell you what its doing right from wrong, you wont know when its feeding you garbage and how to fix it. These forums see a lot of nonfunctional ai generated code, and half the time its be easier scrapping it and starting over than trying to fix it with how bad it gets

You said that you wanted someone to find the "error" in that code, but there was no single point that would have made it fail. Ignoring the imaginary notetag that you would have known didnt exist if you read the plugin's help file, there were multiple errors in the code itself and the logic behind it. Had the notetag been real and the js in it was being ran in the game, that small section alone would have caused crashes in 3 separate spots for using undefined variables. If the variables were defined, and the notetag was real, it still wouldnt have a way to apply the value to the correct parameter and was only adding to the value instead of setting it

You can use quazi's param plus plugin to make the state give the user a boost to one paramter based on a percentage of another. You wouldnt need an apply or a remove effect, you wouldnt need to use state counters to keep track of the bonus, and you wouldnt have to recalculate the bonus every turn.
I am attempting the plugin now.
I put the following inside of the actor's class notetag

<rates>

10 def to mat

10 def to mdf

</rates>

However, this doesn't seem to be applying correctly.
I tested this by setting the DEF stat to 999. There is no difference between the atk/mdf of the 999def version and 0def version of this character.
I also don't know if this is the ideal formula, if I want it so that the following occurs:
20% of Actor's DEF is added to MDF & ATK.


Should I instead do
<rates>
(a.def / 5) to mat
(a.def / 5) to mdf
</rates>
?
Even this is not working for me.
wrong notetag. thats for converting parameters into ex and sp parameters

1741047964942.png


I also don't know if this is the ideal formula, if I want it so that the following occurs:
20% of Actor's DEF is added to MDF & ATK.
the help file is vague about what it means, but its mentioned in multiple places in the thread for the plugin that you can "a" to refer to the battler with the state. so, you can use
Code:
<params>
ATK: a.def/5
MDF: a.def/5
</params>
to do that
Something is still off, because there is no change to the ability's damage. Initially, I set the class to have this notetag inside of it. Then I reread what you wrote, and noticed you said "states." So I put it inside of a state notetag, and made that a passive state. Both tries weren't successful.

For testing this specific feature, I have bumped up the DEF of the character to 999 to ensure that I can see a noticeable change in damage.


1741048896044.png
1741048979352.png


1741049154874.png

1741049197598.png
I set the class to have this notetag inside of it. Then I reread what you wrote, and noticed you said "states."
the plugin mentions that the notetag works on classes. that shouldnt be necessary.

did you save your project since then? notetag changes dont take effect until the project has been saved. does your status pages display the parameter changes? i tried it myself and everything works exactly as expected
1741051268661.png

1741051293542.png

1741051353842.png

1741051369336.png
the plugin mentions that the notetag works on classes. that shouldnt be necessary.

did you save your project since then? notetag changes dont take effect until the project has been saved. does your status pages display the parameter changes? i tried it myself and everything works exactly as expected
View attachment 333267
View attachment 333268
View attachment 333269
View attachment 333270

Thank you for your patience and trying to solve my issue with me.

Just to clarify, https://github.com/quxios/Quasi-MV-Master-Demo/blob/master/js/plugins/QuasiParamsPlus.js
I downloaded the file from this link. I have moved it around in the load order to no avail.

It seems that for whatever reason, the notetag does not want to work.
I tried the plugin on a different character, on a class and actor, individually as well.
I have tried setting the parameter settings to false, but that still didn't change anything.
I have moved it to the top of the load order, and the bottom, but I'm not sure what the issue is...
if you have been loading old saves to test the effect, make a new one. Your playtests should always be new saves once youve changed anything.

if that doesnt seem like itd be the issue, then youre going to have to go through some basic troubleshooting. turn off all your plugins except Quasi's, see if you get that to work alone, and then reenable plugins until you find the one that breaks it.

also if you cant find anything and need further help past that, share a screenshot of your plugin manager so that we can see what plugins you have and their order
This will probably take a while. I have a bit of plugins that I'm using. Here is them and their order. I will update once I have tried to configure them.
I tried opening it on a completely fresh game, and it worked fine, so it's most likely related to a plugin here.
1741126253858.png
1741126271804.png

1741126300325.png
1741126317759.png
1741126338322.png
your plugin are in the incorrect order, use the plugin in my spoiler and
correct them as given in the order to fix that.
your plugin are in the incorrect order, use the plugin in my spoiler and
correct them as given in the order to fix that.
I am having trouble finding which plugin and order list you mean within your spoiler.
the order yanfly's plugins are supposed to be loaded in is the same order they appear in on their website

not following it can cause all kinds of bugs
its on top of the spoiler "ALOE_YEP_PluginOrderChecker"

Original thread: https://forums.rpgmakerweb.com/threads/buffstatescore-stat-modifier.175948/