Hi,
I'm looking for guidance on how I can control `gameMessage` to show up only after the previous one is closed inside a plugin command.
The code I tried (after some forum investigation) looks like this:
but both messages are shown in the same window on separate lines.
The behavior I want to replicate looks like this:
I'm looking for guidance on how I can control `gameMessage` to show up only after the previous one is closed inside a plugin command.
The code I tried (after some forum investigation) looks like this:
JavaScript:
(() => {
PluginManager.registerCommand('MyPlugin', 'start', args => {
$gameMessage.setPositionType(1);
$gameMessage.add("Welcome to MyPlugin");
$gameMap._interpreter.setWaitMode('message');
//Second message in a new window (text box) after the user closes (clicks on the first)
$gameMessage.add('This is a new message');
})
})();
but both messages are shown in the same window on separate lines.
The behavior I want to replicate looks like this: