芯☆淡茹水 发表于 2015-1-16 16:57
并行事件什么的最讨厌了
class Game_Character # $game_map.events[1].follow = $game_map.events[2] # $game_map.events[1].follow = nil attr_accessor :follow alias_method :update_without_follow, :update def update update_without_follow return unless @follow # 把你的代码中 target 设为 @follow end end
class Game_Character
# $game_map.events[1].follow = $game_map.events[2]
# $game_map.events[1].follow = nil
attr_accessor :follow
alias_method :update_without_follow, :update
def update
update_without_follow
return unless @follow
# 把你的代码中 target 设为 @follow
end
end
|