[SOLVED] Need help with some text missing in "Show Choices"

Started by azdesign, September 01, 2012, 12:11:35 am

Previous topic - Next topic

azdesign

So, I called a code to retrieve a value in a hash, which contains the dialogue text. Its perfectly fine in "Show Text". But it messed up in "Show Choices", some text gone and I really don't know what caused it as I don't know how "Show Choices" actually works (the code). Here is the project file :

http://www.mediafire.com/?myo9cpq89k2b9k5 (250kb)

The guy on the left demonstrate the successful text extract using "Show Text"
The guy on the right demonstrate the faulty "Show Choices"

Thanks in advance :D

----EDIT----

The fault was within the scan method, original :

def self.scan(command)
 if command =~ /\\[Dd][Ll][Gg]\[(.+)\]/ then command = Localization.read($1) end
 return command
end


Changed into :

def self.scan(command)
 if command != nil
   return command.gsub(/\\[Dd][Ll][Gg]\[(.+)\]/) { self.read($1) }
 end
end


Now it works.  :haha:
~ Check out my deviantart http://my-az-design.deviantart.com/ ~