Skip to content
This repository has been archived by the owner on Apr 3, 2022. It is now read-only.
brunosxs edited this page Nov 19, 2017 · 3 revisions
  • How do I stop the dialog box?

As of version 1.1.2, you can call stop() to end the dialog execution at any time.

  • The dialog doesn't work when exported. What happened?

You need to tell godot you want the dialog file to be exported too! See: #2

  • How do I insert a variable inside the dialog, like the player name or the amount of money?

As of version 1.3b, SMRT supports the injection of variables (which must reside inside Globals) in its dialogs. Just insert a Global name between double curly-brackets, like

# defining the globals:
Globals.set("playerName", "Sanic")
Globals.set("money", 0.10)

Then, writing in the dialog: Hello, I am {{playerName}} and I have {{money}} maneys.

At runtime, '{{playerName}}' will be replaced by the contents of the global playerName, turning into: Hello, I am Sanic and I have 0.10 maneys.