apply Bobstah CustomStats to Yanfly Auto Passive State

esilin

Villager
Member
Joined
Feb 9, 2014
Messages
10
Reaction score
1
First Language
English
Primarily Uses
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...
 

Users Who Are Viewing This Thread (Users: 0, Guests: 1)

Latest Threads

Latest Posts

Latest Profile Posts

How many parameters is 'too many'??
Yay, now back in action Happy Christmas time, coming back!






Back in action to develop the indie game that has been long overdue... Final Fallacy. A game that keeps on giving! The development never ends as the developer thinks to be the smart cookie by coming back and beginning by saying... "Oh bother, this indie game has been long overdue..." How could one resist such? No-one c
So I was playing with filters and this looked interesting...

Versus the normal look...

Kind of gives a very different feel. :LZSexcite:
To whom ever person or persons who re-did the DS/DS+ asset packs for MV (as in, they are all 48x48, and not just x2 the pixel scale) .... THANK-YOU!!!!!!!!! XwwwwX

Forum statistics

Threads
105,849
Messages
1,016,981
Members
137,563
Latest member
cexojow
Top