如果只是用於你提到的例子的話…
[pre lang="ruby"]class Window_Message
alias bopomofo_update_show_fast update_show_fast
def update_show_fast
bopomofo_update_show_fast if !$game_switches[1]
end
end[/pre]
如果不是
[pre lang="ruby"]class << Input
alias bopomofo_trigger? trigger?
def trigger?(sym)
return false if sym == :C && $game_switches[1]
bopomofo_trigger?(sym)
end
end[/pre]