diff options
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 |