Conditional/Randomized text beneath choices?

I really like how RPG Maker MV normally handles textboxes with choices, showing the previously displayed text below the choices:
1682445755078.png

1682445781236.png



However, say that text is dependent on a condition value, like a randomized number. It will instead display the text, force the player to press a button to progress it, THEN show the choices.
1682445923484.png

1682446035344.png
1682446072140.png

  • I get the same result if I call a Common Event to show the textbox instead.
  • When I add in the option to not await player input, it shows the text, then hides it automatically before displaying the choices.
  • I WAS able to set an unused actor's name as the random text, and then display the actor's name - but that limits me a little, because it can't use text codes within the random text.
Is there a setting (or plugin) that allows me to maintain this textbox visibility after conditional branches; or is this just something minor enough, I'd be best to not spend too much time on?
That is a hard-coded override in the event interpreter for the purpose of having a question with the options to answer on the screen at the same time.

As such the override only checks if the command directly before the show choice command is a show text.

THEN, and ONLY THEN, the previous show text is kept when the choice is displayed.

any other sequence, including a comment line between show text and choice or anything after the choice (instead of before) means that the choice is displayed independently without anything else on the screen.

EDIT: And due to the hierarchy the command before the show choices was the conditional branch, not the show texts inside those branches. You would have to use the show choice inside the branch and have it multiple times for the effect you want.
Thanks for the quick reply, that's really useful! And cool to know about the underlying code overrides.

I can work with that showing choices under all random text, and making each answer change a variable. Then the conditional branches can end, and I can read that variable to determine what'll happen next.
Hi there!

Thanks for the quick reply, that's really useful! And cool to know about the underlying code overrides.

I can work with that showing choices under all random text, and making each answer change a variable. Then the conditional branches can end, and I can read that variable to determine what'll happen next.
I don't know if that is what you said, but, a way around this is using a variable to show the text.
You can set your conditional branches normally, but instead of using the show text command, you can write that text inside a variable:
1682449479494.png


Alternativelly, if your text has multiple lines, you can also set a text to a variable like that:
(Replace VarId with the ID of the variable you will be using)
1682449585507.png


Then, put a show text command after the branches and before the choice command, with the variable value:
\v[VarId]
Thanks! I tried this with using an actor's name as a variable, but seeing it in script form and with an actual variable ID makes it far easier to wrap my head around.

Is there reference to the way text codes are called within Script Call strings? I can't seem to find anything in
In this example I gave you, I don't believe you need to use text codes on the script. Just on the show text command:
1682455283853.png


But if you really want to use the escape codes in a script:
  • \x1bv[361]
\x1b → Prefix for the escape code.
This way you can build your text by using the escape codes.

Otherwise, just look for the script you want, for example, an actor name:

$gameActors.actor(ID).name()
or
$gameParty.members()[index].name()
In this example I gave you, I don't believe you need to use text codes on the script. Just on the show text command:
View attachment 260022

But if you really want to use the escape codes in a script:
  • \x1bv[361]
\x1b → Prefix for the escape code.
This way you can build your text by using the escape codes.

Otherwise, just look for the script you want, for example, an actor name:

$gameActors.actor(ID).name()
or
$gameParty.members()[index].name()
Thanks a million! I gave the escape code prefix a go and it works perfectly for putting in color codes. This serves my purposes perfectly, without me needing to learn too much new syntax. Exactly what I needed!

1682456899816.png

Original thread: https://forums.rpgmakerweb.com/threads/conditional-randomized-text-beneath-choices.156983/