Buff affecting skills... troubles...

Spoiler
Pkkg0H0.png

Okay, I am wracking my brain trying to figure out how to do something specific.

I am using one state and two skills for this example.
State; Enrage - supposed to lower the user's hit chance, evasion, but increase damage.
Skill 1, dummy skill; Set Enrage - for testing purposes to inflict enrage quickly. (AKA DM Tool.)
Skill 2; Calm Mind 1 - Because I tried having two different skills that swapped depending on the state and needed to tell them apart. Threw the idea out assuming there was a simpler way that I was missing.

Okay the problem I am having...


Calm Mind is supposed to increase attack. If the user is afflicted with Enrage, it removes it. However I do not want the skill to always work if the user is enraged. (It is hard to calm down if you have gone, pardon the term, ape crazy after all.) What you see in the image are the last attempt I made. The ability Calm Mind always succeeds.

The Question;


What am I doing wrong?
Is there a way to change what a skill does depending on the user's state without having a script or multiple versions of the skill? (For example, if Enraged calm mind might simply remove the state. If the user is not Enraged, then calm mind would buff the user.)

I have never messed with the combat system in RPG maker in the past. It intimidated me, and still does. This little wall is a reminder as to why I always tried to avoid it. ._.


-Ariaka
Spoiler
Pkkg0H0.png

(For example, if Enraged calm mind might simply remove the state. If the user is not Enraged, then calm mind would buff the user.)
 

Hello Ariaka!


You can do exactly this! Make a new common event and title it "Calm Mind" Put a conditional branch that states if Actor: X is effected by rage and also click the else branch option:

Spoiler
calmmind1.jpg



Next add a Change State Event to the Same Actor X and press Remove!

Spoiler
calmmind2.jpg


Next under the else branch Add a state to Actor X and add Calm Mind!

Spoiler
calmmind3.jpg

Last thing you need to do is go to the skill that adds calm mind. Under Effects add the common event Calm Mind.

Spoiler
calmmind4.jpg

And there you go that should do the trick!
Hello Ariaka!


And there you go that should do the trick!

Thank you!

What would I have to do to the de-buff to make sure Calm Mind can miss if the player is enraged? I have been messing with the various parameters (and Ex) but each time the de-buff is removed when I use the skill.
Hmmmm

What would I have to do to the de-buff to make sure Calm Mind can miss if the player is enraged?

Hmmmmm. This might be beyond the base rpg maker skill system. Yanfly has a  Skill Core plugin that allows for endless possibilities.


http://yanfly.moe/2015/10/13/yep-8-skill-core/


This might be able to do what you need. I'm new to the plugin myself so I'm not entirely sure how to use it to its full potential. If you decide to use it you will need to download the Yanfly Core Engine as well http://yanfly.moe/2015/10/09/yep-1-core-engine/

Original thread: https://forums.rpgmakerweb.com/threads/buff-affecting-skills-troubles.55498/