How to make a state buff select skills.

Posting because, whilst I have looked, I've tried and it hasn't worked for me. Essentially what I want to do is make a state that buffs only specific skills.

Say you use blood boil for example, now your blood moves will get a damage buff. This is what I want to do. I've tried a few things but they haven't work.

I've tried tags like this:

<Custom Action Damage>

if (this.item().meta.BloodSkill) {

value *= 1.5;

}

</Custom Action Damage>
On a state but it didn't work. the skill had the appropriate tag.

I've also tried

(user.isStateAffected(16) ? (a.atk * 5 + a.mat 2 - b.def * 2) * 1.5 : a.atk * 5 + a.mat 2 - b.def * 2
On the damage formula but it also didn't work (it made the damage do 0, that could be the enemy defense but regardless it went from 92 to 0)

<Custom Action Damage>
if (this.item().id === X || this.item().id === Y) {
value *= 1.5;
}
</Custom Action Damage>

On the state with no success either.

I tried them in the reverse order that I posted here, I was really hoping the skill tag method would work. I don't know a lick of code, so I'm going off of what I can understand from what I can read, and a little bit of GPT. I have all the Yanfly plugins just in case I need a specific one to achieve this effect.

(Also if possible, id like to make the state clear once a suitable move has been used, but that isn't top priority.)

I'd greatly appreciate any help I can get.
In your damage formula there's a '(' at the start?

And where did you get your notetag? Shouldn't it be like <Custom Confirm Effect> with Yanfly states?
(user.isStateAffected(16) ? (a.atk * 5 + a.mat 2 - b.def * 2) * 1.5 : a.atk * 5 + a.mat 2 - b.def * 2

You have missing stars (*) between "a.mat" and "2".

What about :
Code:
(user.isStateAffected(16) ? 1.5 : 1 ) * (a.atk * 5 + a.mat * 2 - b.def * 2)
In your damage formula there's a '(' at the start?

And where did you get your notetag? Shouldn't it be like <Custom Confirm Effect> with Yanfly states?
I know nothing of coding so I will confess that when I looked up information and was unable to find anything I turned to AI. I figured it worked once before so it could probably give me an answer this time too. Knowing nothing made it looked like the answers it gave me were realistic.
You have missing stars (*) between "a.mat" and "2".

What about :
Code:
(user.isStateAffected(16) ? 1.5 : 1 ) * (a.atk * 5 + a.mat * 2 - b.def * 2)
Missing stars is a fumble my bad. I’ll check out what you sent when I get back home later today.
You have missing stars (*) between "a.mat" and "2".

What about :
Code:
(user.isStateAffected(16) ? 1.5 : 1 ) * (a.atk * 5 + a.mat * 2 - b.def * 2)
I'm so confused, I've added the formula but the skill just does 0 damage, with or without the state. Am I missing something in the attack formula? Why is it going down to 0?
youre probably getting an error for "user". replace it with "a"
youre probably getting an error for "user". replace it with "a"
that makes a lot of of sense, I'll give it a shot really quickly.

Edit: Business is booming! I wonder if user was what was messing up all the other stuff?
I wonder if user was what was messing up all the other stuff?
the notetag was never going to work as its not recognized by the plugin you were using. you wouldnt have encountered an error, but it quite literally wouldnt have been able to do anything.
You cant always rely on ai to give you a functional solution when it makes stuff up half the time. If you had checked the help file for the buffs and states core plugin you would have noticed that what it gave you wasnt a valid notetag. it probably mashed together the notetags for yanfly's plugin and turan's eval tags for MZ
if it were a custom confirm effect like RPGLord mentioned, then itd have been ran. but that's the point that you wouldnt have known since itd be multiplying the 0 it would have gotten from the formula's error
the notetag was never going to work as its not recognized by the plugin you were using. you wouldnt have encountered an error, but it quite literally wouldnt have been able to do anything.
You cant always rely on ai to give you a functional solution when it makes stuff up half the time. If you had checked the help file for the buffs and states core plugin you would have noticed that what it gave you wasnt a valid notetag. it probably mashed together the notetags for yanfly's plugin and turan's eval tags for MZ
if it were a custom confirm effect like RPGLord mentioned, then itd have been ran. but that's the point that you wouldnt have known since itd be multiplying the 0 it would have gotten from the formula's error
I thought it was too convenient, but I tried it anyway. Ironically the second thing it gave me (damage formula) would've work if I wasn't stupid. I kept writing m.atk for magic attack instead of a.mat. However everything is working now for the most part.

Original thread: https://forums.rpgmakerweb.com/threads/how-to-make-a-state-buff-select-skills.177244/