.
RGSS3 Script RequestsFunny, I also create my own message log just 2 days ago and what I do is to manually remove the escape characters.
See if this works. Put below both of the scripts.
Code:
class class Window_MessageLog
def refresh
y = 0
for log in $game_message_log.logs
talk = false
log.texts.each_with_index do |text, i|
pt = /\e#{TH::Message_Face_Control::Code}\[(.*?)\s*#{TH::Message_Face_Control::Delim}\s*(\d+?)\]/i
text = text.gsub(pt) {""}
if i == 0 && log.talk
talk = true
end
x = (talk && i == 0) ? 0 : Saba::MessageLog::NAME_WIDTH
draw_text_ex(x-16, y, "「") if talk && i == 1
text += "」" if talk && log.texts.size - 1 == i
draw_text_ex(x, y, text)
y += Saba::MessageLog::LINE_HEIGHT if ! talk || i > 0
end
y += Saba::MessageLog::Y_SPACE
end
@max_oy = [0, calc_log_height - window_height + 32].max
self.oy = @max_oy
end
end
My bad, I could think better. Try this. Fewer line of code, and probably do better than the one I posted above.
Code:
class Window_MessageLog
def convert_escape_characters(text)
result = super(text)
pt = /\e#{TH::Message_Face_Control::Code}\[(.*?)\s*#{TH::Message_Face_Control::Delim}\s*(\d+?)\]/i
result.gsub!(pt) { "" }
result
end
end
@Romanticist Please post the links to scripts you are using (on the author's site or wherever they posted the script), rather than posting the body of the scripts here. Some script authors don't like their work being posted in other places without explicit permission. (The exception is if the script's terms of use state you can freely distribute it.) Thanks kindly!
Original thread: https://forums.rpgmakerweb.com/threads/112970/
