Forum rules - please read before posting.

Using Variable in Text

edited September 30 in Technical Q&A

It may be useful, for e.g. data that is generated randomly or after a script, to embed a variable's content inside a text to be spoken
e.g when a variable with id 5 is "124"
speech: "Your password is {5}". -> "Your password is 124" (without actual audio of course).

Or, to display the entire text from the content of a string variable.

Comments

  • This can be done with text tokens. In the case of a Variable with ID 5:

    Your password is [var:5]
    

    See the Manual's "Text tokens" for a list of all those available.

Sign In or Register to comment.

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Welcome to the official forum for Adventure Creator.