Added simple scripting for yaml files.

This commit is contained in:
Patrick Marsee 2019-05-30 15:44:29 -04:00
parent 8355dccb33
commit b332d579e9
6 changed files with 506 additions and 4 deletions

View file

@ -2,6 +2,7 @@
---
openingText: Floor 1 map loaded successfully. Normally, this would describe the environment.
playerStart: [5, 26]
enterScript: printf "This script ran when you entered the level."
layout: |
w w w w w w w w w w w w w w w w w w w w w w w w w w w w w w0
w w0

View file

@ -13,3 +13,5 @@ replies:
- 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