Hello. I was creating a CMS for my game, and wanted to create a window for battle stats such as HP, MP, State, and Equipment. But, testing it out in the map, but errors pop up. I cannot list the errors, but I can show you the script:
If you could help me, that would be great. You would have your name in the credits of my game.
Thank you!
-Lonelyelf
Code:
#==================
# Battle Info
# For custom Menu
# - Shows status -
#==================
class Window_BattleInfo < Window_Base
def initialize(x, y)
super(x, y, 160, 200)
refresh
end
def refresh
self.contents.clear
draw_actor_name(0, 8, 8)
draw_actor_mp(0, 5, 50)
draw_actor_hp(100, 5, 58)
draw_actor_state(0, 5, 64)
for actor in $game_party.members
x = 4
y = WLH * (2 + actor.index * 2)
draw_actor_parameter_change(actor, x, y)
end
end
end
Thank you!
-Lonelyelf