14 lines
No EOL
570 B
Ruby
14 lines
No EOL
570 B
Ruby
class Window_Base < Window
|
|
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!(/\en/) { "\n" } # ☆
|
|
result
|
|
end
|
|
end |