Hi Tony ,
I'm drawing a complete blank at the moment.
I would like to make certain names in my dialogue to be replaced dynamically. Say for example,
"Hi, go and gather some berries from {Location}".
I know I've done this before, I just can't remember how to do it. If you could just point me in the direction, no need to explain,
Thanks!
Replacing Text dynamically
Re: Replacing Text dynamically
Hi Nathan,
One way is to set a variable. Example C# code:
Then use [var=variable] in the Dialogue Text:
One way is to set a variable. Example C# code:
Code: Select all
DialogueLua.SetVariable("Location", "Tahiti");
- Dialogue Text: "Hi, go an gather some berries from [var=Location]."
Re: Replacing Text dynamically
Ah, that's it.
Thanks!
Nathan
Thanks!
Nathan
Re: Replacing Text dynamically
Glad to help!