From 35f71b12dc48a928d98743f607f62b2f6dbe7307 Mon Sep 17 00:00:00 2001 From: Mike Buland Date: Thu, 29 Dec 2011 23:30:49 -0700 Subject: Goto works, scopes work. --- test.stage | 24 +++++++++++++----------- 1 file changed, 13 insertions(+), 11 deletions(-) (limited to 'test.stage') diff --git a/test.stage b/test.stage index f150baa..c19dac9 100644 --- a/test.stage +++ b/test.stage @@ -26,22 +26,24 @@ function sillyDisplay( txt, extra ) } } +function myGoto( txt ) +{ + display( txt ); + goto( txt ); +} + situation <> { setup { - name = "Bob"; + player.name = "Bob"; + name = player.name + "o"; name += " The Man"; display("This is the setup phase for start, " + name); - display( 5 <= 1 ); - display( 1 <= 1 ); - display( 0 <= 1 ); - sillyDisplay( "Hello", true ); - - if name == "Bob The Man" then - { - display("You are bob"); - } + sillyDisplay( "Hello", name == player.name ); + + myGoto( <> ); + display("You shouldn't see this."); } enter @@ -54,6 +56,6 @@ situation <> { enter { - display('''Entered stuff'''); + display('''Entered stuff''' + player.name); } } -- cgit v1.2.3