Dialogue Text Help
Dialogue Text Help
Hi I was just wondering how to incorporate a variables value into the Dialogue Text for a node in a conversation, so the string can be dynamic. I don't know how to use lua that well, but is there a way to script it in the dialogue text box to retrieve the value of a variable?
Re: Dialogue Text Help
Hi,
Yes, it's really easy. Just use the [var=varName] tag. For example, say you've defined a number variable in your dialogue database named "PorscheCost" and set the value to 60,000. Then you can set Dialogue Text to something like:
Yes, it's really easy. Just use the [var=varName] tag. For example, say you've defined a number variable in your dialogue database named "PorscheCost" and set the value to 60,000. Then you can set Dialogue Text to something like:
- Dialogue Text: Interested in that car? It's [var=PorscheCost] dollars.
- Dialogue Text: Hi, I'm [var=Conversant]! Welcome to my shop!
Re: Dialogue Text Help
Just tried it and it worked out great thanks!
Re: Dialogue Text Help
Haha I just happened to be working on my project with this when I saw your reply come up