Text Variables

I'm very new to this and have been making my little game, but I havent decided on the names of a few places, concepts etc in the story. Is there a way that I can just set a text variable much in the same way you use actor names in text. In this way i can use place holder names through all the dialogue and change it in a single place when i make up my mind?

Thanks very much,

-- Spahrep
to get name of an actor in text, \N[id]


if you set a text to a variable, you can use \V[id]


So you can like in start of game, you can do


$game_variables[1] = "City 1"


$game_variables[2] = "City 4"


$game_variables[3] = "City 3"


and so on, then on your texts, just use the \V[id]
Thanks, so this is all outside of the standard functionality? I should probably get famailar with ruby eh 🙂
You do those variable set-up using the Script call event command... since the normal set variable only allows numbers... XD
The Control Variables has a Script function as well, where you could type a string.

I did use this recently, and it crashed, but I was doing this:

Control Variables [0001: something] = Script: "test1"Control Variables [0001: something] += Script: "test2"
So I'm not sure if it's because I was trying to do a += to a string variable and that's what it was objecting to, or if it's because Control Variables does, indeed, only let you use numbers, even though it doesn't prevent you putting text in there.  Maybe that IS the case, because the error I got was an 'eval' error, saying method test1 (or test2?) was undefined.

Wish I'd known this a week ago.  Would have saved myself a whole heap of nested conditional branches 🙂
I guess it tries to eval whatever you put there and still looks for a number... so using $game_variables[id] = "" directly using script call event command is safer
I highly recommend using this script.  It will allow you to use your text variables outside of text messages.  Which from the sound of things, is something you are probably going to want to be able to do.

https://www.google.com/url?sa=t&rct=j&q=&esrc=s&source=web&cd=1&cad=rja&ved=0CC0QFjAA&url=http%3A%2F%2Frmrk.net%2Findex.php%3Ftopic%3D44810.0&ei=ANbWUv7wAvKpsASw8IGAAQ&usg=AFQjCNHHyzOmJnDI1CJ9ZldTdMRne7E9rQ&sig2=fY9f3mOul9sTTcFIFh22gQ&bvm=bv.59378465,d.cWc

Original thread: https://forums.rpgmakerweb.com/threads/text-variables.22334/