SockYeti

Villager
Member
Joined
Dec 26, 2017
Messages
27
Reaction score
17
First Language
English
Primarily Uses
RMMV
Hello! So I'm using YEPBuffsStatesCore and I'm trying to find a way to make a state be removed on dealing damage. I have a state that guarantees the next hit will be a crit but I cannot find a way to remove the state once the crit lands.
 

eomereolsson

Veteran
Veteran
Joined
Sep 29, 2021
Messages
434
Reaction score
358
First Language
German
Primarily Uses
RMMV
Could you please share a screenshot of your current state? I assume you are using some javascript notetags anyway, so have tried simply throwing the following into there?
JavaScript:
a.removeState(stateId);
 

SockYeti

Villager
Member
Joined
Dec 26, 2017
Messages
27
Reaction score
17
First Language
English
Primarily Uses
RMMV
I'm not really sure where to state with the note tag. I assume it would be on any attack skill where it would query if the state exists and if the attack hits If both are true it would remove the state. My knowledge of java is not strong so I'm not sure how to accomplish that.
 

ATT_Turan

Forewarner of the Black Wind
Veteran
Joined
Jul 2, 2014
Messages
5,459
Reaction score
3,536
First Language
English
Primarily Uses
RMMV
I assume it would be on any attack skill where it would query if the state exists and if the attack hits If both are true it would remove the state.
No, there's no reason to do that - that's the point of you having the Buffs & States Core, you'd put it directly on the state.

You can find a bunch of examples of this in Yanfly's Tips & Tricks.

Code:
<Custom Establish Effect>
user.removeState(id);
</Custom Establish Effect>

where id is the ID of the state.
 

SockYeti

Villager
Member
Joined
Dec 26, 2017
Messages
27
Reaction score
17
First Language
English
Primarily Uses
RMMV
No, there's no reason to do that - that's the point of you having the Buffs & States Core, you'd put it directly on the state.

You can find a bunch of examples of this in Yanfly's Tips & Tricks.

Code:
<Custom Establish Effect>
user.removeState(id);
</Custom Establish Effect>

where id is the ID of the state.
If the solution was a snake it would have bit me. Thanks again @ATT_Turan. I should learn to read the notes I guess lol
 

Latest Threads

Latest Posts

Latest Profile Posts


Clarn Hold
(No storylines)
There was a tutorial on how to draw anime eyes. Just draw Among Us. So I tried.
Screenshot_107.jpg
DamageActor3_7.png added!
index.php

Making a "characters first appearance" drawing for my game. Now I just have to finish the sprite art animation for her grand entrance.​
ScreenShot_9_24_2022_7_56_24.png
New area being started today. It leads to one of the games 2 optional bosses.

Forum statistics

Threads
125,540
Messages
1,171,816
Members
164,613
Latest member
dulichvungtaudl3m
Top