加入我们,或者,欢迎回来。
您需要 登录 才可以下载或查看,没有帐号?注册会员
x
小弟最近使用了Ultra大神的多重状态交替显示脚本,想在战斗中自己做一个窗口专门显示状态图标
但是做好了之后却显示这个错误。。。。请各位高手不吝赐教!!!def initialize super(x, 390, width, 90) self.windowskin = nil self.x = x x = (640 - $game_party.actors.size * 150) / 2 self.width = width width = $game_party.actors.size * 150 self.contents = Bitmap.new(width - 32, height - 32) self.z = 100 end def dispose for i in 0...$game_party.actors.size @st[i].dispose end super end def update for i in 0...$game_party.actors.size @st[i].update end super end def refresh self.contents.clear @st = [] for i in 0...$game_party.actors.size actor = $game_party.actors[i] icon_x = (800 - $game_party.actors.size * 150) / 2 + i * 150 @st[i] = States_Pic.new(actor.states,icon_x+25,y+115,40) end end end
def initialize
super(x, 390, width, 90)
self.windowskin = nil
self.x = x
x = (640 - $game_party.actors.size * 150) / 2
self.width = width
width = $game_party.actors.size * 150
self.contents = Bitmap.new(width - 32, height - 32)
self.z = 100
end
def dispose
for i in 0...$game_party.actors.size
@st[i].dispose
end
super
end
def update
for i in 0...$game_party.actors.size
@st[i].update
end
super
end
def refresh
self.contents.clear
@st = []
for i in 0...$game_party.actors.size
actor = $game_party.actors[i]
icon_x = (800 - $game_party.actors.size * 150) / 2 + i * 150
@st[i] = States_Pic.new(actor.states,icon_x+25,y+115,40)
end
end
end
|