Fill a variable?

Hello there!
First, i hope this is the right place to post, i got a little confused there. I'm very new to the software, so i'm sorry if my question can seem stupid!
Okay so, i'd like to know how to fill a variable with a string. For exemple, a character asks you what's your favorite animal, then you have a choice, and i want to fill avariable called "FavAnimal" with the name of that animal, so i can use it later in dialogue. How do i do that?

Thanks!
Are there any text input plugins for MZ? Look around and if there is a plugin like that, use it to get a string from the player. Usually plugins have an option for which variable will store the string.
If there isn't a plugin like that yet, you can use the name input box. I don't know what MZ's name input box looks like but it should work. Once you have set the name to an actor, you can use a script call to retrieve it and put it in a variable of your choice. And then change the actor's name to what it was before.
I'd recommend simply using an actor name like Hyouryuu-Na suggested. Just make an actor whose only purpose is to store the name of the player's favourite animal, then reference that actor's name in dialogue using \N[x], e.g.
Code:
◆Comment:Blank name before player input
◆Change Name:FavAnimal, 
◆Comment:Get input
◆Text:None, None, Window, Bottom
:    :What's your favourite animal?
◆Name Input Processing:FavAnimal, 12 characters
◆Comment:Show in a message!
◆Text:None, None, Window, Bottom
:    :Your favourite animal is \N[5]?
:    :Me too!

Original thread: https://forums.rpgmakerweb.com/threads/fill-a-variable.127222/