| 本帖最后由 喵呜喵5 于 2014-7-8 23:33 编辑 
 看注释中的这一句“为了减少歧异,文字\会被首先替换为转义符(\e)”
 所以后面所有的判断都是以包含\e为前提进行的
 你把自带的脚本删除了以后\e就不会转换了,你却还模仿原生脚本的写法判断\e当然就不行了
 
 
 def convert_escape_characters(text)    result = text.to_s.clone    result.gsub!(/\\/)            { "\e" }    result.gsub!(/\e\e/)          { "\\" }    result.gsub!(/\eV\[(\d+)\]/i) { $game_variables[$1.to_i] }    result.gsub!(/\eV\[(\d+)\]/i) { $game_variables[$1.to_i] }    result.gsub!(/\eN\[(\d+)\]/i) { actor_name($1.to_i) }    result.gsub!(/\eP\[(\d+)\]/i) { party_member_name($1.to_i) }    result.gsub!(/\eG/i)          { Vocab::currency_unit }    result.gsub!(/\eW\[(\d+)\]/i) { item_name($1.to_i)}    result  end
def convert_escape_characters(text) 
    result = text.to_s.clone 
    result.gsub!(/\\/)            { "\e" } 
    result.gsub!(/\e\e/)          { "\\" } 
    result.gsub!(/\eV\[(\d+)\]/i) { $game_variables[$1.to_i] } 
    result.gsub!(/\eV\[(\d+)\]/i) { $game_variables[$1.to_i] } 
    result.gsub!(/\eN\[(\d+)\]/i) { actor_name($1.to_i) } 
    result.gsub!(/\eP\[(\d+)\]/i) { party_member_name($1.to_i) } 
    result.gsub!(/\eG/i)          { Vocab::currency_unit } 
    result.gsub!(/\eW\[(\d+)\]/i) { item_name($1.to_i)} 
    result 
  end 
 |