I'm trying to create a dynamic description of the player based on the layering of different strings and such. But I'm having a problem where when I reference the variables that contain the information I'm trying to put in a given sentence (with \v[x]) it just displays [x] instead of what I put inside the variable.
So as a simple example
Inside a "check appearance" event, I have a variable (let's say v[1]) containing a sentence that I'd like to display to the player. So inside the event I have it display the message "\v[1]"
I have another event to set v[1] to something like "My eyes are \v[2]".
And finally, an event to set v[2] to the color.
So it sets v[2] to blue, uses that to change v[1] to "My eyes are blue", and uses v[1] in a message event to display the whole thing.
Problem is, it'll output "My eyes are [2]", instead of what I'd like.
I realize there's probably less roundabout ways to do what I'm trying to do, but I'm trying to make a rather deep system of nouns and adjectives, and placing them in dynamic phrases that change based on a player's status.
So I could display a simple variable that contains all the information in a given moment.
As a more elaborate example
Let's have a message event that contains the text "\v[1] \v[2]"
v[1] = "My \v[10] is \v[11]"
v[2] = "I'm \v[12] and \v[13]"
So I could put a status event that displays a message containing v[1] and v[2], and it could be anything like
"My arm/leg/foot is broken/bleeding/fine"
"I'm healthy/hungry/starving and ready/tired/dying"
I've got all of that working just fine if I reference the variables themselves, but it's when I put those variables into another and try to display the parent variable containing the children, it borks up and just shows the ID of the variable.
I've checked in a debug menu, and the nouns/descriptors are being set just fine, but the display text isn't.
Sorry if this was confusing! I've attached an image that'll hopefully make sense of it. I've got lines showing what's referenced where.
Hopefully it's something simple I'm overlooking.
So as a simple example
Inside a "check appearance" event, I have a variable (let's say v[1]) containing a sentence that I'd like to display to the player. So inside the event I have it display the message "\v[1]"
I have another event to set v[1] to something like "My eyes are \v[2]".
And finally, an event to set v[2] to the color.
So it sets v[2] to blue, uses that to change v[1] to "My eyes are blue", and uses v[1] in a message event to display the whole thing.
Problem is, it'll output "My eyes are [2]", instead of what I'd like.
I realize there's probably less roundabout ways to do what I'm trying to do, but I'm trying to make a rather deep system of nouns and adjectives, and placing them in dynamic phrases that change based on a player's status.
So I could display a simple variable that contains all the information in a given moment.
As a more elaborate example
Let's have a message event that contains the text "\v[1] \v[2]"
v[1] = "My \v[10] is \v[11]"
v[2] = "I'm \v[12] and \v[13]"
So I could put a status event that displays a message containing v[1] and v[2], and it could be anything like
"My arm/leg/foot is broken/bleeding/fine"
"I'm healthy/hungry/starving and ready/tired/dying"
I've got all of that working just fine if I reference the variables themselves, but it's when I put those variables into another and try to display the parent variable containing the children, it borks up and just shows the ID of the variable.
I've checked in a debug menu, and the nouns/descriptors are being set just fine, but the display text isn't.
Sorry if this was confusing! I've attached an image that'll hopefully make sense of it. I've got lines showing what's referenced where.
Hopefully it's something simple I'm overlooking.