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,858
Reaction score
14,047
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,858
Reaction score
14,047
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


When you thought you'd be finished with the grid, and spend ~8-9 hours on an arrow. How is this more difficult to than player movement?

Still some bugs hiding in there, but it's nearly complete.

I'm having it strictly follow the path a user draws, because there will be booby trap and other similar mechanics where you want to avoid specific cells.
I feel like banging my head against a wall every time I want to find that post that shows all the plugin header codes. Then I think "next time I find it, I'm going to bookmark it". Then I think "wait a minute ... maybe I bookmarked it last time because it took me so long to find it". Check bookmarks, and there it is :)
... a few of my main characters standing around doing nothing lol. I mostly wanted to see them together on screen.

Forum statistics

Threads
107,824
Messages
1,032,449
Members
139,975
Latest member
Lucimountfort
Top