MV Define variable name as choice

Hello, I have many scenarios where players will be given some options via Show Choice.
Scenario 1: Fight, run east, run west, try diplomacy
Scenario 2: Go east, go north, look around
etc

Right now, I have the choices set to manipulate game variables based on which one the player chooses. The same variables are used again and again for each scenario (so a variable might be "ChoiceA" or "ChoiceB" rather than creating multiple variables for each scenario.

After the variables are manipulated, a common event is called that checks the variables and returns the correct result.

Here's what I am requesting help with - if I want to display a message that for example says "You chose [run east]." How do I do that? Both in terms of what does the script look like and also logistically how do I create/add to a Show Choice event that allows me to add the necessary script? Thank you in advance.
no need for script for this...

You can actually store text to variable btw... just make sure to choose
Control Variable -> Script:
then in the script box store your text between " "
example:
"Run East"

so in your case...

in the common event... after you choose the choice and store the choice to the variable... in the conditional check common event...

change another variable other than the one you use to store the choice... and in that new variable
we can store the "text" which then you should be able to display it in text using \v[variable_id_of_your_choice] escape codes...

for example let's say you use variable 13 to store the choice... and variable 14 to store the text...
in summary:
1) show choice
2) depending on the choice store to variable 13
3) run common event
4) in common event do check for variable 13
5) in each possible check... store the "text" to variable 14
6) show in message using \v escape code.

hope this help.
no need for script for this...

You can actually store text to variable btw... just make sure to choose
Control Variable -> Script:
then in the script box store your text between " "
example:
"Run East"
...

Thank you!! I'll try this when I get back to my pc.
It worked! Thanks again @estriole

Original thread: https://forums.rpgmakerweb.com/threads/define-variable-name-as-choice.143034/