RPG Maker Forums

Hi All,

I'm trying to generate text for dialogue in a script that includes NPC names stores as variables, but when I set a message to a text variable that includes a variable reference, the program just prints the variable reference name, rather than the content.

So for example:

I want this = "Hi, my name is Joe. I like games."

Variable 1 = "Joe"
Variable 2 = "Hi, my name is \v[1]. I like games."

However, when I place the variable 2 in the game message, I get "Hi, my name is \v[1]. I like games." Without the contents of varaible 1.

I've worked around this by splitting the dialogue into multiple variables (eg v1 = "Joe" v2 = "Hi, my name is" and v3 "I like games."), but it makes my script generated dialogue a lot more difficult. Also this same problem has come up multiple times, so I was curious if anyone could help.

Question 1: Can anyone explain how the game decides when to read for variables and icon codes and when it just reads it as text?

Question 2: Has anyone else encountered this problem and found a good solution?

Thank you community for your help!

Latest Threads

Latest Posts

Latest Profile Posts

Day 9 of giveaways! 8 prizes today :D
He mad, but he cute :kaopride:

Our latest feature is an interview with... me?!

People4_2 (Capelet off and on) added!

Just beat the last of us 2 last night and starting jedi: fallen order right now, both use unreal engine & when I say i knew 80% of jedi's buttons right away because they were the same buttons as TLOU2 its ridiculous, even the same narrow hallway crawl and barely-made-it jump they do. Unreal Engine is just big budget RPG Maker the way they make games nearly identical at its core lol.

Forum statistics

Threads
106,040
Messages
1,018,469
Members
137,821
Latest member
Capterson
Top