Aphotic

Regular
Regular
Joined
Feb 19, 2019
Messages
54
Reaction score
36
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

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

Aphotic

Regular
Regular
Joined
Feb 19, 2019
Messages
54
Reaction score
36
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

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

Aphotic

Regular
Regular
Joined
Feb 19, 2019
Messages
54
Reaction score
36
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 Profile Posts

Woke up in the middle of the night with some game mechanic ideas. Unfortunately, they're for a new game, not the one I'm currently working on. Must... not... get... distracted!
I'm wondering about making a new pack of monsters or just divide them and add to my current packs. I'll end up having like 10+ packs If I just have 27 per pack xD
cesariohelp wrote on Ms Littlefish's profile.
Hi ! I see that you're a mod, right ? Can I ask you a question here ? If not, where ? So sorry
I just whipped up the blueprints for the final level in my game. (I say final, when really there is a final boss stage after this, but it's only like two maps long)
The good thing about making a scarecrow is, I can just use a T-pose on it and call it an animation. :kaojoy:
SA145K_idle.gif

Wait... it is starting to move on its own?:kaoswt2:

Forum statistics

Threads
134,936
Messages
1,252,024
Members
177,777
Latest member
philllchabbb
Top