RMMZ What's new value for MZ at drawActorHp ?

seaotter

Veteran
Veteran
Joined
Mar 2, 2019
Messages
227
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,703
Reaction score
13,985
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
227
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,219
Reaction score
1,629
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
227
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,219
Reaction score
1,629
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
227
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,703
Reaction score
13,985
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
227
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 Posts

Latest Profile Posts

DenRebrov wrote on Celianna's profile.
Seliana, will you be making desert tiles in the ancient dungeon?
Working on a casual shirt and jeans for female MZ gen. Woo.
Crazy idea: a crossover game made to showcase different RPG Maker games. Dimension crossing is involved and you get to play as different people's characters in some wacky nonsense plot.
HexMozart88 wrote on Citali's profile.
Kikuo!
The lack of bike trails and bungee jump areas in this city should be criminalized.

Forum statistics

Threads
107,430
Messages
1,029,652
Members
139,559
Latest member
tenchi30
Top