Jeff the Green
Member
I've been trying to get this script to work for a while now, and I just can't get it. It's supposed to modify the way messages are handled. There's a text file which it reads using the MACL, which contains a hash that looks like this:
{
dialog_1 => {"lines" => [line_1, line_2, line_3], "names" => [name_1, name_2, name_3]},
dialog_2 => {"lines" => [line_1, line_2, line_3], "names" => [name_1, name_2, name_3]}
}
When Show Message is used, the script looks at the text and if there is an element in the hash that has the same key (dialog_1 or dialog_2, in the example) that is the same as the first line of the message text and an integer for the second line, it will show a message window with the text of the corresponding line. If the second line is a range, then it will show a separate window for each line. The names are shown in an extra window that I haven't tried to implement since I can't get the main thing to work.
Everything I wrote or changed is in Interpreter, Scene_Map, Window_Name, or Window_Dialog, which are at the bottom of the scripts.
Can someone help me?
Here is the link.
{
dialog_1 => {"lines" => [line_1, line_2, line_3], "names" => [name_1, name_2, name_3]},
dialog_2 => {"lines" => [line_1, line_2, line_3], "names" => [name_1, name_2, name_3]}
}
When Show Message is used, the script looks at the text and if there is an element in the hash that has the same key (dialog_1 or dialog_2, in the example) that is the same as the first line of the message text and an integer for the second line, it will show a message window with the text of the corresponding line. If the second line is a range, then it will show a separate window for each line. The names are shown in an extra window that I haven't tried to implement since I can't get the main thing to work.
Everything I wrote or changed is in Interpreter, Scene_Map, Window_Name, or Window_Dialog, which are at the bottom of the scripts.
Can someone help me?
Here is the link.