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,846
Reaction score
14,039
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,227
Reaction score
1,635
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,227
Reaction score
1,635
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,846
Reaction score
14,039
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

 

Latest Threads

Latest Posts

Latest Profile Posts

Chilling out while toodling around someone's painstaking Minecraft recreation of Disneyland. It is mind-boggling and probably as close as I'll ever be to going.
>Testing with fonts change.
>Tries installing a plugin. Doesn't work.
>Tries changing the plugin commands. Doesn't work.
>Tries installing another plugin. Doesn't work.
>Changes a few more plugin commands. Doesn't work.
>Goes directly to the gamefont file and changes the src. Works.

YYEEEAAAAHHHAAAA

Perseverance is key, bois and girls.
What Reviews say on RPG Maker MZ?
Looking back at some sketches, and game design documents on my PC dated summer of 2015. I started development with the release of MZ, but in 2015, I felt a strong desire to make a game out of the blue. I remember feeling sad for no apparent reason, and all these ideas rushed into my head. Now that I think about it, since that day, everything has become easier to do on my PC . . . it’s very creepy.
Everything's going to be alright! We're all in this together. <3

Forum statistics

Threads
107,807
Messages
1,032,351
Members
139,953
Latest member
soicaukubetim
Top