can I do this in a SUB?
Posted: Thu Jul 26, 2007 8:01 am
hello.
Right now I am making a very large text adventure RPG. My problem is that in one sub after an input command I want it to go to a different sub. Can I do that? here is some source:
DECLARE SUB INTRO ()
DECLARE SUB DOG ()
SUB INTRO
10 PRINT "HELLO "
INPUT A$
SELECT CASE A$
CASE IS = "HELLO"
GOTO SUB DOG ' <--------- this is the line i need help with
CASE IS = ELSE
GOTO 10
END SUB
SUB DOG
PRINT "HELLO"
END SUB
thanks
Right now I am making a very large text adventure RPG. My problem is that in one sub after an input command I want it to go to a different sub. Can I do that? here is some source:
DECLARE SUB INTRO ()
DECLARE SUB DOG ()
SUB INTRO
10 PRINT "HELLO "
INPUT A$
SELECT CASE A$
CASE IS = "HELLO"
GOTO SUB DOG ' <--------- this is the line i need help with
CASE IS = ELSE
GOTO 10
END SUB
SUB DOG
PRINT "HELLO"
END SUB
thanks