Found an odd compatibly bug with an acquired item popup script, http://hikimoki.sakura.ne.jp/rgss3/script_menu/tmecex.rb
Seems LFS doesn't wait for the foreign message to display before sending the next message so in the event of "Text, Get Item, Text" will not display the Get Item.
This is what I changed to get it to work and am currently testing the solution:
Seems LFS doesn't wait for the foreign message to display before sending the next message so in the event of "Text, Get Item, Text" will not display the Get Item.
This is what I changed to get it to work and am currently testing the solution:
Code:
module LanguageFileSystem #-------------------------------------------------------------------------- # * Show a message defined in the dialogue text file #-------------------------------------------------------------------------- def self.show_dialogue(id) data = LanguageFileSystem::dialogues[id] return unless data # Unknown why this is entered twice, guessing typo #$game_message.add("\\dialogue[#{id}]") if data.has_key?(:face) $game_message.face_name = data[:face].split(",")[0].strip $game_message.face_index = data[:face].split(",")[1].strip.to_i end if data.has_key?(:position) case data[:position].strip.downcase when "top" $game_message.position = 0 when "middle" $game_message.position = 1 when "bottom" $game_message.position = 2 end end if data.has_key?(:background) case data[:background].strip.downcase when "normal" $game_message.background = 0 when "dim" $game_message.background = 1 when "transparent" $game_message.background = 2 end end $game_message.add("\\dialogue[#{id}]") endendclass Game_Message #-------------------------------------------------------------------------- # * Parse for \dialogues and replace message content if found. #-------------------------------------------------------------------------- alias lfs_add add def add(text) if LanguageFileSystem::USE_DIALOGUE_FILES if m = LanguageFileSystem::DIALOGUE_CODE.match(text) line = LanguageFileSystem::get_dialogue(m[1]) if line #@texts = [] #line.split("\n").each { |l| # lfs_add(l) #} #@replaced = true @replaced = false new_page text = line end end end lfs_add(text) unless @replaced endend
