I'm actually not sure where to post this as I've posted this here before, but that was AGES ago and I didn't think it'd be a good idea to necro post on that. the other issue is the solution given while working, has a couple of flaws. I wasn't sure tho if that made it a plugin support issue tho or not because it's not an actual "problem" with the said plugin.
basically I wanted a stun rate in my game where once it hits a certain threshold, the actor becomes stunned. this is possible through Yanfly's Buff & States Core + Auto Passive States. here's the info for that...
<Custom React Effect>
if (value > 0 && this.isPhysical() && user.enemy()) {
target.addStateCounter(20, 20);
target.clampStateCounter(20, 0, 100);
}
</Custom React Effect>
<Custom React Effect>
if (value > 0 && this.isMagical() && user.enemy()) {
target.addStateCounter(20, 20);
target.clampStateCounter(20, 0, 100);
}
</Custom React Effect>
<Custom Deselect Effect>
if (target.getStateCounter(20) >= 100) {
target.removeStateCounter(20);
target.addState(4);
}
</Custom Deselect Effect>
but I was wondering a few things... 1. is there a way have it where say after the stun state, the counter can't go up for a few turns? to give the player a breather/chance to heal... 2. is there a way to lessen how much is added to the threshold when guarding? 3. is there a way to either heal or lower the threshold either naturally or by item? and lastly, is there a way to reset the threshold every fight? I thought removing the state would do it, but it doesn't.
Again, sorry if I've posted this in the wrong place. I only decided here in because it's where I initially posted this about a year ago.
basically I wanted a stun rate in my game where once it hits a certain threshold, the actor becomes stunned. this is possible through Yanfly's Buff & States Core + Auto Passive States. here's the info for that...
<Custom React Effect>
if (value > 0 && this.isPhysical() && user.enemy()) {
target.addStateCounter(20, 20);
target.clampStateCounter(20, 0, 100);
}
</Custom React Effect>
<Custom React Effect>
if (value > 0 && this.isMagical() && user.enemy()) {
target.addStateCounter(20, 20);
target.clampStateCounter(20, 0, 100);
}
</Custom React Effect>
<Custom Deselect Effect>
if (target.getStateCounter(20) >= 100) {
target.removeStateCounter(20);
target.addState(4);
}
</Custom Deselect Effect>
but I was wondering a few things... 1. is there a way have it where say after the stun state, the counter can't go up for a few turns? to give the player a breather/chance to heal... 2. is there a way to lessen how much is added to the threshold when guarding? 3. is there a way to either heal or lower the threshold either naturally or by item? and lastly, is there a way to reset the threshold every fight? I thought removing the state would do it, but it doesn't.
Again, sorry if I've posted this in the wrong place. I only decided here in because it's where I initially posted this about a year ago.