So I have a few lines of dialogue that I want to account for player choice, so I'm using JS to iterate until I find an actor who's in the party, then address them.
The issue I'm having is that calling $gameMessage.add() multiple times doesn't display them as individual messages, they get combined into one message window for the scope of this script.
Also, it seems that it's too low level a function and happens after the parsing of command characters, which means I'd need to add my face and name boxes separately.
But then, when I'm trying to look up higher level functions, it's getting into creating a Window_Base variable and filling that out just to show a few lines of text.
So can anyone suggest a higher-level function I can call where I would enter my text exactly as I would in the Show Text event button and it will display as a complete message? Or does Show Text go through everything I described above, with creating and defining a window every time?
Code:
for (var i=10; i<19; i++) {
if ($gameParty.battleMembers().contains($gameActors.actor(i))) {
$gameMessage.add("I never thought I'd see you again, " + $gameActors.actor(i).name() + ".");
break; } }
The issue I'm having is that calling $gameMessage.add() multiple times doesn't display them as individual messages, they get combined into one message window for the scope of this script.
Also, it seems that it's too low level a function and happens after the parsing of command characters, which means I'd need to add my face and name boxes separately.
But then, when I'm trying to look up higher level functions, it's getting into creating a Window_Base variable and filling that out just to show a few lines of text.
So can anyone suggest a higher-level function I can call where I would enter my text exactly as I would in the Show Text event button and it will display as a complete message? Or does Show Text go through everything I described above, with creating and defining a window every time?