diff options
Diffstat (limited to 'test.stage')
-rw-r--r-- | test.stage | 24 |
1 files changed, 13 insertions, 11 deletions
@@ -26,22 +26,24 @@ function sillyDisplay( txt, extra ) | |||
26 | } | 26 | } |
27 | } | 27 | } |
28 | 28 | ||
29 | function myGoto( txt ) | ||
30 | { | ||
31 | display( txt ); | ||
32 | goto( txt ); | ||
33 | } | ||
34 | |||
29 | situation <<start>> | 35 | situation <<start>> |
30 | { | 36 | { |
31 | setup | 37 | setup |
32 | { | 38 | { |
33 | name = "Bob"; | 39 | player.name = "Bob"; |
40 | name = player.name + "o"; | ||
34 | name += " The Man"; | 41 | name += " The Man"; |
35 | display("This is the setup phase for start, " + name); | 42 | display("This is the setup phase for start, " + name); |
36 | display( 5 <= 1 ); | 43 | sillyDisplay( "Hello", name == player.name ); |
37 | display( 1 <= 1 ); | 44 | |
38 | display( 0 <= 1 ); | 45 | myGoto( <<stuff>> ); |
39 | sillyDisplay( "Hello", true ); | 46 | display("You shouldn't see this."); |
40 | |||
41 | if name == "Bob The Man" then | ||
42 | { | ||
43 | display("You are bob"); | ||
44 | } | ||
45 | } | 47 | } |
46 | 48 | ||
47 | enter | 49 | enter |
@@ -54,6 +56,6 @@ situation <<stuff>> | |||
54 | { | 56 | { |
55 | enter | 57 | enter |
56 | { | 58 | { |
57 | display('''Entered stuff'''); | 59 | display('''Entered stuff''' + player.name); |
58 | } | 60 | } |
59 | } | 61 | } |