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,696
Reaction score
13,984
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,696
Reaction score
13,984
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 Profile Posts

My computer broke yesterday, so no RPG maker for at least a week until I can get it repaired. :(
Just wanted to share how my game won 1st place in a game jam for itch.io. Everyone else used Unreal, Unity, GMS2, Godot, etc but I used RPG Maker 2003 :guffaw: It just shows that you can create a good game and it doesn't matter which engine you use
Working on cutscenes~

if your game is the first (or ONLY) in a series and still has a colon in its title, you are a bad person and I hate you...... jk.

who could ever hate BETWEEN: TWO SOULS?

Forum statistics

Threads
107,404
Messages
1,029,443
Members
139,503
Latest member
cheesepot
Top