#============================================================= # ** 区域自动事件 By 好名真难取 #------------------------------------------------------------- # 可以自动检测玩家所在区域并启动对应ID的事件。 # 缺点:只有63个区域可供使用 #============================================================= class Game_Player < Game_Character alias old_check_touch_event check_touch_event def check_touch_event old_check_touch_event mx = $game_player.x my = $game_player.y reg = $game_map.region_id(mx, my) if reg != 0 $game_map.events[reg].start end end end