RMMZ What's new value for MZ at drawActorHp ?

seaotter

Veteran
Veteran
Joined
Mar 2, 2019
Messages
228
Reaction score
45
First Language
Chinese
Primarily Uses
RMMZ
If I use

---------------
this.drawActorHp(actor, gauge.x, gauge.y, gauge.width);
} else if (gauge.type === 'MP') {
this.drawActorMp(actor, gauge.x, gauge.y, gauge.width);
} else if (gauge.type === 'TP') {
this.drawActorTp(actor, gauge.x, gauge.y, gauge.width);
} else if (gauge.type === 'LV') {
this.drawLvGauge(actor, gauge);
} else if (gauge.type === 'VN') {
this.drawVnGauge(this._gaugeParams, gauge);
-------------------------

Alway get
drawActorHp error
drawActorMp error
drawActorTp error
drawLvGauge error
drawVnGauge error

-----------------------

at MZ I need change to what at this value ?
 

Shaz

Global Moderators
Global Mod
Joined
Mar 2, 2012
Messages
40,732
Reaction score
13,999
First Language
English
Primarily Uses
RMMV
where are you putting it? And what is the full error, from the console?
 

seaotter

Veteran
Veteran
Joined
Mar 2, 2019
Messages
228
Reaction score
45
First Language
Chinese
Primarily Uses
RMMZ
TypeError: this.drawActorHp is not a function
at Window_MapHpGauge.refresh (TMMapHpGauge.js:593)
at Window_MapHpGauge.update (TMMapHpGauge.js:505)
at Scene_Map.Scene_Base.updateChildren (rmmz_scenes.js:129)
at Scene_Map.Scene_Base.update (rmmz_scenes.js:52)
--------------------
I think this is a this.drawActorHp is not a function <--- error

because MV have this.drawActorHp but MZ no this.drawActorHp...

What's value like this.drawActorHp at MZ ?
 

caethyril

^_^
Veteran
Joined
Feb 21, 2018
Messages
2,223
Reaction score
1,630
First Language
EN
Primarily Uses
RMMZ
RMMZ uses instances of Sprite_Gauge instead, see rmmz_sprites.js for details.
 

seaotter

Veteran
Veteran
Joined
Mar 2, 2019
Messages
228
Reaction score
45
First Language
Chinese
Primarily Uses
RMMZ
TypeError: this.drawGaugeRect is not a function
-----------------------------
this.drawGaugeRect(actor, gauge.x, gauge.y, gauge.width);
} else if (gauge.type === 'MP') {
this.drawGaugeRect(actor, gauge.x, gauge.y, gauge.width);
} else if (gauge.type === 'TP') {
this.drawGaugeRect(actor, gauge.x, gauge.y, gauge.width);
} else if (gauge.type === 'LV') {
this.drawGaugeRect(actor, gauge);
} else if (gauge.type === 'VN') {
this.drawGaugeRect(this._gaugeParams, gauge);
}
 

caethyril

^_^
Veteran
Joined
Feb 21, 2018
Messages
2,223
Reaction score
1,630
First Language
EN
Primarily Uses
RMMZ
To elaborate: RMMZ has completely reworked the gauge system. :kaoswt:

In RMMV gauges were painted onto the appropriate windows. In RMMZ each gauge is its own sprite, with a type (e.g. HP or MP) and the following display information:
  • A label for the current value, e.g. 50/100, and
  • A gauge in the appropriate colours.
Each gauge is given a battler to reference and automatically updates itself when the relevant values change.

The MZ version of "add gauge to window" can be found in rmmz_windows.js:
Window_StatusBase.prototype.placeGauge
 

seaotter

Veteran
Veteran
Joined
Mar 2, 2019
Messages
228
Reaction score
45
First Language
Chinese
Primarily Uses
RMMZ
To elaborate: RMMZ has completely reworked the gauge system. :kaoswt:

In RMMV gauges were painted onto the appropriate windows. In RMMZ each gauge is its own sprite, with a type (e.g. HP or MP) and the following display information:
  • A label for the current value, e.g. 50/100, and
  • A gauge in the appropriate colours.
Each gauge is given a battler to reference and automatically updates itself when the relevant values change.

The MZ version of "add gauge to window" can be found in rmmz_windows.js:
Window_StatusBase.prototype.placeGauge
TypeError
this.placeGauge is not a function

How to call placeGauge to use ?
 

Shaz

Global Moderators
Global Mod
Joined
Mar 2, 2012
Messages
40,732
Reaction score
13,999
First Language
English
Primarily Uses
RMMV
Once again, as you didn't answer me the first time - where are you putting this? If you put it in the wrong place, it's out of context and this either won't exist, or won't be what it needs to be to get those functions.
 

seaotter

Veteran
Veteran
Joined
Mar 2, 2019
Messages
228
Reaction score
45
First Language
Chinese
Primarily Uses
RMMZ
Once again, as you didn't answer me the first time - where are you putting this? If you put it in the wrong place, it's out of context and this either won't exist, or won't be what it needs to be to get those functions.
this not a put where problem...
I just want let this plugin can for MZ , but I am alway can't success

and get error

 

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

Latest Threads

Latest Profile Posts

After hearing Wataten's opening several times and knowing what this anime is about, I don't think I like moe anymore.
So I am working on a big DLC package for my game.... and it will add a new intro and extend the ending of the base game, while of course adding additional content to the game... Yeah, that should work! lol
I'm stuck, I'm making some of Mr. N's Dialogue but I can't finish his full Dialogue...heres what I got now [this is the part I'm stuck on] "You treat me like a
bug, I'M SICK OF IT, you had me make these...abominations...well, now..." and at the "Well, now...' part I'm stuck at, anyone got Ideas?

Forum statistics

Threads
107,547
Messages
1,030,423
Members
139,673
Latest member
WDRS
Top