RPG Maker Forums

Hello everyone. First I thank you for your kind reading this article.


1) I tried to apply Bobstah's Custom Stats Plugin to Yanfly's Auto Passive State in all-day


2) But Custom Stat Plugin only works on states by skill-using.


3) Although I don't have knowledge of javascripts, I opened plugin files and see parts of state application and found bellow parts relative to that one.


Bobstah.CustomStats.GameBattlerBase_addNewState = Game_BattlerBase.prototype.addNewState;
Game_BattlerBase.prototype.addNewState = function(stateId) {
    var res = Bobstah.CustomStats.GameBattlerBase_addNewState.call(this, stateId);
    if (stateId !== null) {
        var state = $dataStates[stateId];
        this.handleCustomStats(state);
    }
    return res;
};



Code:
Bobstah.CustomStats.GameBattler_removeState = Game_Battler.prototype.removeState;
Game_Battler.prototype.removeState = function(stateId) {
    var res = Bobstah.CustomStats.GameBattler_removeState.call(this, stateId);
    if (stateId !== null) {
        var state = $dataStates[stateId];
        this.handleCustomStats(state, true);
    }
    return res;
};

4) Maybe custom stat plugin have parts only two - Addtion new state by skill-using, and Removing state. 


5) How can I fix or add scripts for application custom stat plugin to auto passvie state plugin?


This is too hard problem to me.  I should be much obliged to you if you would help me about this problem...

Latest Threads

Latest Profile Posts

Don't forget, aspiring writers: Personality isn't what your characters do, it is WHY they do it.
Hello! I would like to know if there are any pluggings or any way to customize how battles look?
I was thinking that when you start the battle for it to appear the eyes of your characters and opponents sorta like Ace Attorney.
Sadly I don't know how that would be possible so I would be needing help! If you can help me in any way I would really apreciate it!
The biggest debate we need to complete on which is better, Waffles or Pancakes?
rux
How is it going? :D
Day 9 of giveaways! 8 prizes today :D

Forum statistics

Threads
106,051
Messages
1,018,549
Members
137,837
Latest member
Dabi
Top