Hi, I've got trouble with my battle system.
In scene_battle 1, a window is called:
@actor_comwin = Window_NumberCommand.new(@actor)
This window should display the actors stats during the input command phase.
Now the problem is that I get an error, if I try to do that. The code for the window is the following:
The Error I get:
http://img529.imageshack.us/img529/4456/errorom7.jpg[/img]
Hope someone can help...
oh, and a_1 ist parameter 7. That is not the problem, because the same happens whith all the other parameters such as str, dex and so on.
In scene_battle 1, a window is called:
@actor_comwin = Window_NumberCommand.new(@actor)
This window should display the actors stats during the input command phase.
Now the problem is that I get an error, if I try to do that. The code for the window is the following:
class Window_NumberCommand < Window_Base
#--------------------------------------------------------------------------
# * Object Initialization
#--------------------------------------------------------------------------
def initialize(actor)
super(80, 100, 480, 300)
self.contents = Bitmap.new(width - 32, height - 32)
@actor = actor
refresh
end
#--------------------------------------------------------------------------
# * Dispose
#--------------------------------------------------------------------------
def dispose
super
end
#--------------------------------------------------------------------------
# * Refresh
#--------------------------------------------------------------------------
def refresh
self.contents.clear
draw_actor_parameter(@actor, 10,32, 7)
end
#--------------------------------------------------------------------------
# * Frame Update
#--------------------------------------------------------------------------
def update
super
# Slightly lower opacity level during main phase
if $game_temp.battle_main_phase
self.contents_opacity -= 4 if self.contents_opacity > 191
else
self.contents_opacity += 4 if self.contents_opacity < 255
end
end
end
The Error I get:
http://img529.imageshack.us/img529/4456/errorom7.jpg[/img]
Hope someone can help...
oh, and a_1 ist parameter 7. That is not the problem, because the same happens whith all the other parameters such as str, dex and so on.