This is a basic text adventure I wrote. If there any issues you find issues, let me know.
Code:
Code:
ClrHome
0->S
Disp "For the purpose
Disp "of this program,"
Pause
Disp "1 will be used "
Disp "for Yes, and 2 "
Disp "for No aditional"
Disp "commands are "
Disp "look 3)Search 4)"
Disp "and show help 5)"
Pause
ClrHome
Disp "You are at a door"
While S=0
Disp "Will you try to"
Disp "open?"
Disp "Or something else"
Prompt A
If A=1
Then
Disp "You try to open"
Disp "it"
Pause
Disp "but it is locked."
Pause
Disp "unlock with 6"
C->1
Pause
End
If A=2
Then
Disp "You stand there"
Disp "and do nothing"
Pause
End
If A=3
Then
Disp "There is a"
Disp "potted plant"
Disp "next to the door"
1->P
End
If A=4
Then
If P=1
Disp "There is a key in"
Disp "the pot"
Pause
Disp "4.087"
End
If A=5
Then
Disp "1 Yes, 2 No,"
Disp "3 Look, 4 Search"
Disp "5 Commands"
Pause
End
If A=6
Then
If C=1
Prompt K
If K=4.087
S->1
End
ClrHome
End
Pause
Disp "You unlock the"
Disp "The door"