Skip to content

Conditions

Logodaedalus edited this page Dec 10, 2018 · 2 revisions

Summary

  • Used to gate a fragment to only appear at certain times
  • If other things impact the state of the story (such as a game), it provides the glue that keeps the story contextual to the game

Format

[state variable] [operator] [value]

state variable

Can be any string you want. For good library hygiene, make sure these are all set to an initial value in your scene-config file.

operator

  • eq: equals
  • neq: does not equal
  • lt: less than
  • lte: less than or equal to
  • gt: greater than
  • gte: greater than or equal to

value

  • true or false (if using eq or neq)
  • a number (works with everything)
  • a string (if using eq or neq)
Clone this wiki locally