加入我们,或者,欢迎回来。
您需要 登录 才可以下载或查看,没有帐号?注册会员
x
本帖最后由 soulsaga 于 2019-6-12 18:28 编辑
class Scene_Battle alias battle_main main def main pces = $data_common_events.select {|event| event && !event.nil?} @common_events = pces.collect do |common_event| Game_CommonEvent.new(common_event.id) end battle_main end alias battle_update update def update @common_events.each{|event|event.refresh; event.update} battle_update end end
class Scene_Battle
alias battle_main main
def main
pces = $data_common_events.select {|event| event && !event.nil?}
@common_events = pces.collect do |common_event|
Game_CommonEvent.new(common_event.id)
end
battle_main
end
alias battle_update update
def update
@common_events.each{|event|event.refresh; event.update}
battle_update
end
end
|