QML - Create Your Own Adventure

Name Topic Used in Type
name States input attribute
You can assign user input to a string variable of this name.
Sample:
<input text='"Do you know what I am?" she asks you.'
      name="userInput"/>
<if check="[function containsWord '[qmlInput]', 'unicorn']">
   <text>"Oh, you do know me!" she cries.
   </text>

   <state name="knows unicorn"/>
   <choice station="back">Continue</choice>
</if>
<else>
   <text>"So that's what you take me for...
      a [userInput]?" she sighs.
   </text>

   <choice station="back">Continue</choice>
</else>