Hello
I have a problem.
From the Event I call a script, this script read an external text file with the "story" I want to write in the textbox.
I cut the "story" into a maximum of 4 lines each and then I use $gameMessage.add() for write it in the textbox.
Doing so, I write 1-4 lines of text, and then I get the "waiting to continue" part where I need to click/press a key to continue.
When I click/press a key, I get the next part and so on. Everything is ok so far.
Now, each part also have a parameter for the faceimage. both face and index, using $gameMessage.setFaceImage.
But that will always result with the faceimage/index of the last written in the text. The loop will process all the text before writing it in the textbox. So no matter what faceimage/index I have it will just skip it and take the last one.
How can I loop an array of text and write it in the textbox and also have different faceimage/index for each part using a script?
I know I can use the event manager, but then I need to create a new text command for each part.
I really want the story in an external textfile, for easy editing and revision.
I have a problem.
From the Event I call a script, this script read an external text file with the "story" I want to write in the textbox.
I cut the "story" into a maximum of 4 lines each and then I use $gameMessage.add() for write it in the textbox.
Doing so, I write 1-4 lines of text, and then I get the "waiting to continue" part where I need to click/press a key to continue.
When I click/press a key, I get the next part and so on. Everything is ok so far.
Now, each part also have a parameter for the faceimage. both face and index, using $gameMessage.setFaceImage.
But that will always result with the faceimage/index of the last written in the text. The loop will process all the text before writing it in the textbox. So no matter what faceimage/index I have it will just skip it and take the last one.
How can I loop an array of text and write it in the textbox and also have different faceimage/index for each part using a script?
I know I can use the event manager, but then I need to create a new text command for each part.
I really want the story in an external textfile, for easy editing and revision.