DUNILOG  1.7
 All Classes Functions Variables Pages
In Dialog Scripting

With the scripting language you can create complex logic in text, like lists and dynamic variables.
The syntax works like this "{command:paramter}".
Let´s say you what different salutations everytime a text is displayed you can do:

{listRandom:Hi|Hallo|Good evening}

Or you want a random number, create it first in the editor and then:

{var:myRandomVariable} meters to go

You can also use nested statements:

{listRandom:{var:yourVariableName}}




Command reference:
var - displays a variable you created in DUNILOG

{var:yourVariableName}

listRandom - displays a random entry of a list

{listRandom:a|b|c}

listLoop - loops continuous thru a list

{listLoop:a|b|c}

listStop - goes once thru a list and repeats the last entry

{listStop:a|b|c}

intRandom - displays a random int

{intRandom:5}
{intRandom:5|10}

floatRandom - displays a random float

{floatRandom:5}
{floatRandom:5|10}