Added conditional evaluation to dialogs. Conditionals for the NPC have been tested, for the player have not.
This commit is contained in:
parent
b332d579e9
commit
ed7fe60a6d
3 changed files with 94 additions and 46 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue