Long Message Evals

Hey folks, what I would like to do is generate a "character" (not an actor) with random "traits" in RMMV, then write a message listing all of that character's information.

For instance, a message containing all of the following:
- Randomly-Assigned Name (I'm using this plugin for that--this is a problem for another time)
- Randomly-Assigned Gender
- Randomly-Assigned Class
- Randomly-Assigned Stats
- Randomly-Assigned Traits (3 out of 150 or so)

I can assign all of these things no problem just using variables, but printing them in a single message box is much harder than I'd hoped. I'm using Yanfly's Message Eval Text which works well for situations where there are 3 or 4 options, but 150+ just seems excessive to post on a single line in a message box. Is there any way I can create a library for all this externally, or is there some even easier way I'm missing?

Thanks!
Just use variables. In whatever event you're using to determine the traits/class/etc., you can do
Control Variables -> Set -> Script -> "your text description"
make sure to enclose it in quotes.

If this is being done in plugin code/a script box, you can use $gameVariables.setValue(variable_id, "your text")
No leading zeroes on the ID.

Then you can use the regular \V[n] escape code to display the value of the trait/class/whatever.
Just use variables. In whatever event you're using to determine the traits/class/etc., you can do
Control Variables -> Set -> Script -> "your text description"
make sure to enclose it in quotes.

If this is being done in plugin code/a script box, you can use $gameVariables.setValue(variable_id, "your text")
No leading zeroes on the ID.

Then you can use the regular \V[n] escape code to display the value of the trait/class/whatever.
Oh man, I completely forgot this feature existed! Thank you!

Also, this might be a dumb question, but to ensure I don't get duplicate traits, can I set a conditional to ensure that Variable 2 =/= Variable 1 while set to a script?
Also, this might be a dumb question, but to ensure I don't get duplicate traits, can I set a conditional to ensure that Variable 2 =/= Variable 1 while set to a script?
Yes, you can use the Conditional Branch to check if a Variable is (not) the same as another, even when both are strings.

An alternative would be to use "script" inside Conditional Branch and type $gameVariables.value(1) !== $gameVariables.value(2), but this is exactly what RPG Maker will do for you under the hood when choosing the upper option, so in the end, it doesn't matter.
bagawd.png

Thanks everyone, got it all put together now and it's fun doing the Tactics-style gacha rolls, haha.

Original thread: https://forums.rpgmakerweb.com/threads/long-message-evals.153303/