Dialog language preview
1. A room declaration
an object, its name, description, and an exit
horizon-dark
#foyer
(room *)
(name *) foyer of the Opera House
(look *)
You are standing in a spacious hall, splendidly decorated
in red and gold, with glittering chandeliers overhead.
(from * go #west to #cloakroom) atom-one-dark
#foyer
(room *)
(name *) foyer of the Opera House
(look *)
You are standing in a spacious hall, splendidly decorated
in red and gold, with glittering chandeliers overhead.
(from * go #west to #cloakroom) github-dark
#foyer
(room *)
(name *) foyer of the Opera House
(look *)
You are standing in a spacious hall, splendidly decorated
in red and gold, with glittering chandeliers overhead.
(from * go #west to #cloakroom) dracula
#foyer
(room *)
(name *) foyer of the Opera House
(look *)
You are standing in a spacious hall, splendidly decorated
in red and gold, with glittering chandeliers overhead.
(from * go #west to #cloakroom) nord
#foyer
(room *)
(name *) foyer of the Opera House
(look *)
You are standing in a spacious hall, splendidly decorated
in red and gold, with glittering chandeliers overhead.
(from * go #west to #cloakroom) github
#foyer
(room *)
(name *) foyer of the Opera House
(look *)
You are standing in a spacious hall, splendidly decorated
in red and gold, with glittering chandeliers overhead.
(from * go #west to #cloakroom) 2. Branching with if/then/else
the (if)...(then)...(else)...(endif) control-flow form
horizon-dark
(program entry point)
(if) (bound #cloak) (then)
You are wearing a black velvet cloak.
(else)
You feel a chill without a cloak.
(endif) atom-one-dark
(program entry point)
(if) (bound #cloak) (then)
You are wearing a black velvet cloak.
(else)
You feel a chill without a cloak.
(endif) github-dark
(program entry point)
(if) (bound #cloak) (then)
You are wearing a black velvet cloak.
(else)
You feel a chill without a cloak.
(endif) dracula
(program entry point)
(if) (bound #cloak) (then)
You are wearing a black velvet cloak.
(else)
You feel a chill without a cloak.
(endif) nord
(program entry point)
(if) (bound #cloak) (then)
You are wearing a black velvet cloak.
(else)
You feel a chill without a cloak.
(endif) github
(program entry point)
(if) (bound #cloak) (then)
You are wearing a black velvet cloak.
(else)
You feel a chill without a cloak.
(endif) 3. A negated toggle and a state change
the ~() negation prefix and the (now) predicate
horizon-dark
@($Obj is open) ~($Obj is closed)
(instead of #take #cloak)
(now) ~(#cloak is closed)
The cloak settles comfortably over your shoulders. atom-one-dark
@($Obj is open) ~($Obj is closed)
(instead of #take #cloak)
(now) ~(#cloak is closed)
The cloak settles comfortably over your shoulders. github-dark
@($Obj is open) ~($Obj is closed)
(instead of #take #cloak)
(now) ~(#cloak is closed)
The cloak settles comfortably over your shoulders. dracula
@($Obj is open) ~($Obj is closed)
(instead of #take #cloak)
(now) ~(#cloak is closed)
The cloak settles comfortably over your shoulders. nord
@($Obj is open) ~($Obj is closed)
(instead of #take #cloak)
(now) ~(#cloak is closed)
The cloak settles comfortably over your shoulders. github
@($Obj is open) ~($Obj is closed)
(instead of #take #cloak)
(now) ~(#cloak is closed)
The cloak settles comfortably over your shoulders.