Sorry if this is realy daft, I only picked up RPG Maker today and trying to learn how it works with JavaScript.
I'm writing a simple plugin that outputs a string, which I hope to display in gameMessage.
I have tried $gameMessage.add(string); but instead of adding the string to the end of the current $gameMessage._texts string as I would expect, it creates a new page with just the string in it.
How would I go about displaying a string created from a plugin command mid-way through a gameMessage._texts string? Or I'd even just settle for adding my string to the end of the current string.
I've seen it done in other plugins where the user can simply type \pluginCommand or <pluginCommand> into the text area and get the output during the dialogue similar to \v[n] but the plugins I have that do this have obfuscated code, so I can't see how they do it.
Any help or guidance would be greatly appreciated.
I'm writing a simple plugin that outputs a string, which I hope to display in gameMessage.
I have tried $gameMessage.add(string); but instead of adding the string to the end of the current $gameMessage._texts string as I would expect, it creates a new page with just the string in it.
How would I go about displaying a string created from a plugin command mid-way through a gameMessage._texts string? Or I'd even just settle for adding my string to the end of the current string.
I've seen it done in other plugins where the user can simply type \pluginCommand or <pluginCommand> into the text area and get the output during the dialogue similar to \v[n] but the plugins I have that do this have obfuscated code, so I can't see how they do it.
Any help or guidance would be greatly appreciated.