Item that increases MAT and reduces ATK? --Solved!

In my game I use items on actors to learn spells. Every time an actor learns a new spell, their magic attack grows by 1 point. I figured out how to do that -- but I also want the item to decrease the actor's attack by 1 point. There is a "grow" effect with the items, but not a "decrease" effect...

So I tried a common event to change the actor's parameters, but I couldn't figure out how to apply the parameter change to the actor you used the item on, even with a variable (<-sorry for the vague explanation there XD)

Does anyone have a clue on how to do this another way? Have I overlooked something?
Since you mentioned using a variable... did you try to set a variable to the existing ATK and then have the event change the ATK to variable-1, yet?
Since you mentioned using a variable... did you try to set a variable to the existing ATK and then have the event change the ATK to variable-1, yet?

I hadn't tried that yet, actually! But the problem is that I don't want it to apply to a specific actor, member ID, etc. I want it to apply to the actor the item is used on-- and I don't know how to to that...
to target a common event on an actor on item use, have that item add an invisible target state to the actor as an effect.
Then in the common event, for every actor that has the state (conditional branch), apply the effect and remove the state.
to target a common event on an actor on item use, have that item add an invisible target state to the actor as an effect.
Then in the common event, for every actor that has the state (conditional branch), apply the effect and remove the state.

Thank you for replying! I'm going to try and make it work!
Try this, it worked for me.

Create a common event and a variable.
In this case, my variable is called REDUCTOR

On Control variable select SCRIPT and insert this $gameParty._targetActorId

Then go into Actor section and select change parameter.

Select the variable you created and set whatever stats you wish to be reduced.
Spoiler: Common Event
97cee4bfcba3327c20a9eedb1e1c4509.png

Its in portuguese but i guess you can figure out what i did.
Try this, it worked for me.

Create a common event and a variable.
In this case, my variable is called REDUCTOR

On Control variable select SCRIPT and insert this $gameParty._targetActorId

Then go into Actor section and select change parameter.

Select the variable you created and set whatever stats you wish to be reduced.
Spoiler: Common Event
97cee4bfcba3327c20a9eedb1e1c4509.png

Its in portuguese but i guess you can figure out what i did.

I'm going to try this as well! It's a whole lot less work to event this than with conditional branches, so I hope it works for me!
Both methods do the trick, but using script requires a lot less work for me! Thank you all for helping me!

This thread is being closed, due to being solved. If for some reason you would like this thread re-opened, please report this post and leave a message why. Thank you.

Original thread: https://forums.rpgmakerweb.com/threads/item-that-increases-mat-and-reduces-atk-solved.81734/