re initialize plugin

pasunna

Veteran
Veteran
Joined
Feb 3, 2019
Messages
529
Reaction score
275
First Language
thai
Primarily Uses
RMMV
hi
I use some plugin that make hud and had fix value from param
and I had edit it with some sort of luck like this

Code:
var _mog_ctSys_gBat_toolSysInitBattler = Game_Battler.prototype.toolSysInitBattler;
Game_Battler.prototype.toolSysInitBattler = function() {   
    _mog_ctSys_gBat_toolSysInitBattler.call(this);
    //this._battler = $gameParty.members()[0];
    //this._chrono.ct = 1000;
    this._chrono.ct = 0;
    this._chrono.maxct = Moghunter.chronoCT_stamina;//my edit[1]
    this._chrono.ctFd = 0;
    this._chrono.ctSpeed = Moghunter.chronoCT_regenerate;
    this._chrono.ctDashLimit = 30;
    this._chrono.ctDash = 0;
    this._chrono.ctWait = 0;
    this._chrono.ctWaitDash = 0;
    this._chrono.ctIsDashing = false;
    /*--myedit[2]--if (this._maxmp_number) {for (var i = 0; i < this._maxmp_number.length; i++) {this.removeChild(this._maxmp_number[i]);}};
    if (!this._battler) {return};
    this._chrono.maxct = this._battler.mmp;*/
};
the edit work well with use actor max mp stat
but it work only once
from my don't know coding guess
it because this plugin not have the update section

because the author just want to use fix ct cost
(his add on stamina system
first before I edit[1] he use 100 and no param can add)

and I see in his another actor hud system it had refresh function
(where I coppy that maxmp line method)

so what I want to request is may or may not exist I don't know
I want some code that re initialize this plugin
that it will re get the max mp stat that I edit again

thank you every one that waste your time to read this mess request post -....-
 

Attachments

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

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,551
Members
137,837
Latest member
Dabi
Top