# ▽△▽ XRXSv14. トビラサポート ▽△▽ # # publish 2010/ 3/ 9 # update - # #============================================================================== # カスタマイズポイント #============================================================================== module XEventDoorizer # # ドアオープンSE # SE = RPG::SE.new("Open2", 70, 110) # # 適用条件文字列(正規表現) # NAME = /^[!Door].*/ end #============================================================================== # --- イベントサポート機能 --- #============================================================================== module XEventDoorizer def initial_doorize if not @initial_doorized first_page = @event.pages[0] first_command = first_page.list[0] if first_command.code == 201 and first_page.graphic.character_name =~ XEventDoorizer::NAME # 専用リストの生成 commands1 = [] commands1.push(RPG::MoveCommand.new(17, [])) commands1.push(RPG::MoveCommand.new(15, [2])) commands1.push(RPG::MoveCommand.new(18, [])) commands1.push(RPG::MoveCommand.new(15, [2])) commands1.push(RPG::MoveCommand.new(19, [])) commands1.push(RPG::MoveCommand.new(0, [])) commands2 = [] commands2.push(RPG::MoveCommand.new(37, [])) commands2.push(RPG::MoveCommand.new(12, [])) commands2.push(RPG::MoveCommand.new(38, [])) commands2.push(RPG::MoveCommand.new(0, [])) move_route1 = RPG::MoveRoute.new move_route1.repeat = false move_route1.wait = false move_route1.list = commands1 move_route2 = RPG::MoveRoute.new move_route2.repeat = false move_route2.skippable = true move_route2.wait = true move_route2.list = commands2 list = [] list.push(RPG::EventCommand.new(111, 0, [6, 0, 2])) list.push(RPG::EventCommand.new(250, 1, [XEventDoorizer::SE])) list.push(RPG::EventCommand.new(205, 1, [ 0, move_route1])) list.push(RPG::EventCommand.new( 0, 1, [])) list.push(RPG::EventCommand.new(604, 0, [])) list.push(RPG::EventCommand.new(205, 0, [-1, move_route2])) # ドア化! first_page.list[0,0] = list end end @initial_doorized = true end end class Game_Event < Game_Character include XEventDoorizer alias xrxsv14_refresh refresh def refresh initial_doorize xrxsv14_refresh end end