Try this:
So, you got the correct actor already in that method, that's why I asked you where do you want to make that happen.
The above code will change the HP gauge to your MHP based gauges. I marked what I added. Note that I removed the default HP gauge drawing too, since I guess you won't need that.
Remove the 'def draw_gauge' methods you added, that can not be done that way. You can't define a new method inside of another method.
def draw_actor_simple_status(actor, dx, dy) dy -= line_height / 2 draw_actor_name(actor, dx, dy) draw_actor_level(actor, dx, dy + line_height * 1) draw_actor_icons(actor, dx, dy + line_height * 2) dw = contents.width - dx - 124 draw_actor_class(actor, dx + 120, dy, dw) # This is the actor's MHP width part. #------------------------------------ gw = actor.mhp/10 draw_actor_hp(actor, dx, dy, gw) #------------------------------------ #draw_actor_hp(actor, dx + 120, dy + line_height * 1, dw) draw_actor_jp(actor, dx, dy + line_height * 2) if YEA::MENU:😀RAW_TP_GAUGE && actor.draw_tp? && !actor.draw_mp? draw_actor_tp(actor, dx + 120, dy + line_height * 2, dw) elsif YEA::MENU:😀RAW_TP_GAUGE && actor.draw_tp? && actor.draw_mp? if $imported["YEA-BattleEngine"] draw_actor_tp(actor, dx + 120, dy + line_height * 2, dw/2 + 1) draw_actor_mp(actor, dx + 120 + dw/2, dy + line_height * 2, dw/2) else draw_actor_mp(actor, dx + 120, dy + line_height * 2, dw/2 + 1) draw_actor_tp(actor, dx + 120 + dw/2, dy + line_height * 2, dw/2) end else draw_actor_mp(actor, dx + 120, dy + line_height * 2, dw) end end
The above code will change the HP gauge to your MHP based gauges. I marked what I added. Note that I removed the default HP gauge drawing too, since I guess you won't need that.
Remove the 'def draw_gauge' methods you added, that can not be done that way. You can't define a new method inside of another method.