class Window_A alias initialize0 initialize def initialize(*args) initialize0(*args) @battler = [@actor.battler_name, @actor.battler_hue] end def update super if @battler != [@actor.battler_name, @actor.battler_hue] @battler = [@actor.battler_name, @actor.battler_hue] refresh end end alias refresh0 refresh def refresh contents.clear refresh0 end end
class Window_A
alias initialize0 initialize
def initialize(*args)
initialize0(*args)
@battler = [@actor.battler_name, @actor.battler_hue]
end
def update
super
if @battler != [@actor.battler_name, @actor.battler_hue]
@battler = [@actor.battler_name, @actor.battler_hue]
refresh
end
end
alias refresh0 refresh
def refresh
contents.clear
refresh0
end
end
另外个人建议楼主认真学一下脚本,有些地方写的实在是看不下去。
|