Aphotic

Veteran
Veteran
Joined
Feb 19, 2019
Messages
54
Reaction score
34
First Language
English
Primarily Uses
RMMV
There's probably an obvious answer to this and I'm overthinking this, but I'm struggling to find the answer on google or the forums.

I have a skill called Riposte that applies the Riposte state, providing Counter Attack + 100%. After the first time the character performs a Counter Attack, I want the state to remove itself. I've tried this a few different ways, none of which have worked, all of which have been some variation of user. or target.removeState(x) in any number of skills or the state itself.

I've been avoiding Yanfly's Counter Control because I'm not interested in fundamentally change the way Counter Attack works, but I do use Battle Core, Skill Core, and Auto Passive States.

Any ideas?
 

RianQuenlin

Veteran
Veteran
Joined
Jul 28, 2022
Messages
100
Reaction score
68
First Language
English
Primarily Uses
N/A
.
 
Last edited:

Aphotic

Veteran
Veteran
Joined
Feb 19, 2019
Messages
54
Reaction score
34
First Language
English
Primarily Uses
RMMV
Put a.removeState(X); in front of Attack's formula. Do note that it wont process this unless it actually hits the target.
I knew it'd be something absurdly simple. I'm assuming the Counter Attack counts as using Skill 1? Thank you!
 

RianQuenlin

Veteran
Veteran
Joined
Jul 28, 2022
Messages
100
Reaction score
68
First Language
English
Primarily Uses
N/A
.
 
Last edited:

Aphotic

Veteran
Veteran
Joined
Feb 19, 2019
Messages
54
Reaction score
34
First Language
English
Primarily Uses
RMMV
Yes, and I'm not aware of how to change that in the default files without plugins.
No, that makes this work exactly as intended, thank you so much!
 

Latest Threads

Latest Posts

Latest Profile Posts

100 likes.jpg

I reached 100 followers on my new twitter! It's not much but it's honest work
Made this sign for a you-know-what type of business, completely from scratch.
Gotta admit, i'm extremely proud of it.

image.png
After 7 months of really hard work and then 6 months of lazing around and procrastinating with adding the final touches my game is finally complete! Not bad considering that a year ago I didn't really even know about variables. Thanks to everyone who helped with questions and assets! Feels good to have a game under my belt! Ep2 (also self contained) may possibly come in the future!
I just made a breakthrough in my Battlecore problem where the Abort Battle command wouldn't work after using a Custom Action Sequence skill. It seems that Abort Battle can't be the last command in the event.
Before, the event was ordered (Dialogue -> Abort Battle). But having the message appear LAST fixed it.
(Abort Battle -> Dialogue)

Forum statistics

Threads
126,890
Messages
1,182,133
Members
166,685
Latest member
anxs
Top