Different Messages

Usually, in Database > System, there is an editor that allows you to edit messages that appear when things happen (i.e. I could change the message that appears when you get a critical hit from "A critical hit!" to "A nasty blow!").


But, for events like fleeing, I want it to be able to display multiple messages. Maybe one time, it could say "Let's skedaddle!" and then another time it could say "Run for the hills!", but I don't think there is a way to do it in the editor. Will it require me to learn JavaScript to do this?


Thanks!


Hex
The information under your avatar says that you use VX Ace.  JavaScript is only used in MV.


This is in the wrong forum, as Resource Support is about creating and deploying resources such as graphics.  "How do I...?" questions go in the Support forum for the engine you are using.  However, it's ambiguous which one you are asking about.


Please clarify which you are using, and then this thread can be moved.


Thanks.
The information under your avatar says that you use VX Ace.  JavaScript is only used in MV.


This is in the wrong forum, as Resource Support is about creating and deploying resources such as graphics.  "How do I...?" questions go in the Support forum for the engine you are using.  However, it's ambiguous which one you are asking about.


Please clarify which you are using, and then this thread can be moved.


Thanks.

Thank you for letting me know about this! I have changed the information on my profile. I use RPG Maker MV. I apologize about this, I don't know where my posts should go. Thank you for moving it!
That's okay.


We'll try MV Support first in case there's a simple, straightforward way of doing this without having to have a whole new plugin.


Moving to RPGMaker MV Support
Cool! Thanks, Kes!
yes, there is a way to do this without a plugin - but I wouldn't call it simple or straightforward


According to the help file, you can use some textcodes in the terms for the battle messages, and that includes the variable textcode \V


But what is rarely mentioned is that variables can contain text strings as well as numbers.


So you'll replace the message in the database with a variable designation, let's use \V[999] as an example.


Then you can use control variable commands to place different strings into that variable. You just need to run a control variable on variable 999 several times during a turn to change that again and again.


(You'll need to use the script option and place a text string as the "script" in control variables)
Hello again, Andar!


Where should I place the variable if I'm going to do this?


Thanks!
I don't understand your question - If you're talking about where you want to place the control variable command, that completely depends on how often you want to change the message.


If you're using this method, the message will remain the same until the control command is used next - if you want to change the messages during combat, it has to be in a troop event.
Not necessarily. Like I said, I would like them to appear differently and randomly.


I'm getting the hang of Java right now, so I think I've got this under control. If i have any questions ill be sure to drop 'em here.


thanks!

Original thread: https://forums.rpgmakerweb.com/threads/different-messages.74302/