GroovDood

Veteran
Veteran
Joined
Feb 15, 2022
Messages
54
Reaction score
27
First Language
English
Primarily Uses
RMMV
I have skills that can only be used once per battle, which I did by making a state that seals a certain skill and removes itself at the end of a battle be automatically applied to the user by a common event when the skill is used. The only problem is if a character is knocked out and revived, the state is removed. I read somewhere that you can use yanfly's buffs and states core plugin to make states remain through knockout, but I haven't been able to piece that together. Anyone know how to use the plugin to this effect? Any other solutions would also be great. Thanks!
 

GroovDood

Veteran
Veteran
Joined
Feb 15, 2022
Messages
54
Reaction score
27
First Language
English
Primarily Uses
RMMV
I'd rather not spend any money on this. It's a fairly simple problem I'm sure there's an easier way to solve it-
 

Another Fen

Veteran
Veteran
Joined
Jan 23, 2013
Messages
658
Reaction score
368
First Language
German
Primarily Uses
If you only want to remove the feature that states are removed on death, that would be a rather small code change if you are looking for an alternative:
Code:
// ==========================================================================
//   Death Persistent States
// --------------------------------------------------------------------------
/*:
 * @plugindesc
 * Death no longer implicitely resists all other states.
 *
 * @help
 * Death no longer removes other states, except when the death state features
 * the respective "State Resist" trait.
 * "Recover All" and the individual escape effect from items still remove all
 * states from the target.
 *
 * This plugin should be placed above other plugins that might modify state
 * behaviour.
 */

Game_BattlerBase.prototype.die = function() {
    this._hp = 0;
    this.clearBuffs();
};

Game_Battler.prototype.isStateAddable = function(stateId) {
    return $dataStates[stateId] &&
            !this.isStateResist(stateId) &&
            !this._result.isStateRemoved(stateId) &&
            !this.isStateRestrict(stateId));
};
 
Last edited:

ATT_Turan

Forewarner of the Black Wind
Veteran
Joined
Jul 2, 2014
Messages
5,567
Reaction score
3,630
First Language
English
Primarily Uses
RMMV
Just to throw some other options out there...you could do this with Yanfly's Skill Core, Buffs & States and Auto Passive States by adding a player variable like this:
Code:
<Custom Requirement>
value=user._fireball;
</Custom Requirement>

<After Eval>
user._fireball=false;
</After Eval>

Then give each actor a passive state that has:
Code:
<Custom Battle Effect>
user._fireball=true;
user._cure=true;
</Custom Battle Effect>
etc. for whatever limited skills there are.

You could also use Yanfly's Limited Skill Uses plugin which is specifically designed to do this, restricting some skills to be usable only a certain number of times per battle/rest/whatever.
 

Latest Threads

Latest Posts

Latest Profile Posts

Sometimes I wonder why I still try and recruit others to help with my games. It never works.
ScreenShot_10_3_2022_4_27_17.png
welp, thanks to Luna MV, I was able to add the Balloon as a window... thus allowing me to edit the font color and outline... so now it looks like comic bubbles above characters. I have NO idea why I couldn't get this to work through more conventional means, but here we are.
CUTE CUTE CUTE.gif
I cannot cease doing cute art
War and Wonder is a 100% choice-based open-world visual novel.
1664821313732.png
1664821466359.png
1664821547746.png
Going live soon on Twitch, and will continue Fortunastreet's game "Verloren". For those who are curious, you are welcome to join ;)

-> Franz' Twitch channel

Forum statistics

Threads
125,749
Messages
1,173,227
Members
164,911
Latest member
KyzerKiba
Top