Added conditional evaluation to dialogs. Conditionals for the NPC have been tested, for the player have not.

This commit is contained in:
Patrick Marsee 2019-05-31 21:37:52 -04:00
parent b332d579e9
commit ed7fe60a6d
3 changed files with 94 additions and 46 deletions

View file

@ -10,8 +10,12 @@ answers:
replies:
- opener: Yup.
action: exit
- opener: I would, but there's still a bunch of foreshadowing and stuff we
have to get through first.
action: back
script: set tellmore += 1;
printf "You have seen this text {} times." tellmore
- cond:
- case: tellmore < 5
opener: I would, but there's still a bunch of foreshadowing and stuff we
have to get through first.
action: back
script: set tellmore += 1
- case: else
opener: You really want to know more, don't you?
action: back