diff options
| author | Mike Buland <eichlan@xagasoft.com> | 2011-12-30 09:29:51 -0700 |
|---|---|---|
| committer | Mike Buland <eichlan@xagasoft.com> | 2011-12-30 09:29:51 -0700 |
| commit | 00fb7e6f65faf72a85c72f3775e49345aeb7442f (patch) | |
| tree | 0e7e7e231809e08ad7751db55715aaaa7a91d825 /test.stage | |
| parent | e9ca0738a4b18032151af42baca1f88629408d52 (diff) | |
| download | stage-00fb7e6f65faf72a85c72f3775e49345aeb7442f.tar.gz stage-00fb7e6f65faf72a85c72f3775e49345aeb7442f.tar.bz2 stage-00fb7e6f65faf72a85c72f3775e49345aeb7442f.tar.xz stage-00fb7e6f65faf72a85c72f3775e49345aeb7442f.zip | |
It now builds for windows, cool.
Diffstat (limited to 'test.stage')
| -rw-r--r-- | test.stage | 12 |
1 files changed, 12 insertions, 0 deletions
| @@ -32,16 +32,23 @@ function myGoto( txt ) | |||
| 32 | goto( txt ); | 32 | goto( txt ); |
| 33 | } | 33 | } |
| 34 | 34 | ||
| 35 | function getThing() | ||
| 36 | { | ||
| 37 | display( situation.thing ); | ||
| 38 | } | ||
| 39 | |||
| 35 | situation <<start>> | 40 | situation <<start>> |
| 36 | { | 41 | { |
| 37 | setup | 42 | setup |
| 38 | { | 43 | { |
| 44 | situation.thing = 55; | ||
| 39 | player.name = "Bob"; | 45 | player.name = "Bob"; |
| 40 | name = player.name + "o"; | 46 | name = player.name + "o"; |
| 41 | name += " The Man"; | 47 | name += " The Man"; |
| 42 | display("This is the setup phase for start, " + name); | 48 | display("This is the setup phase for start, " + name); |
| 43 | sillyDisplay( "Hello", name == player.name ); | 49 | sillyDisplay( "Hello", name == player.name ); |
| 44 | 50 | ||
| 51 | getThing(); | ||
| 45 | myGoto( <<stuff>> ); | 52 | myGoto( <<stuff>> ); |
| 46 | display("You shouldn't see this."); | 53 | display("You shouldn't see this."); |
| 47 | } | 54 | } |
| @@ -54,8 +61,13 @@ situation <<start>> | |||
| 54 | 61 | ||
| 55 | situation <<stuff>> | 62 | situation <<stuff>> |
| 56 | { | 63 | { |
| 64 | setup | ||
| 65 | { | ||
| 66 | situation.thing = "Just a thing"; | ||
| 67 | } | ||
| 57 | enter | 68 | enter |
| 58 | { | 69 | { |
| 70 | getThing(); | ||
| 59 | display('''Entered stuff''' + player.name); | 71 | display('''Entered stuff''' + player.name); |
| 60 | count = 0; | 72 | count = 0; |
| 61 | while count < 5 do | 73 | while count < 5 do |
