Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Implement QUIT logic (poison, medicine etc) #2

Open
tgreaves opened this issue Nov 2, 2022 · 0 comments
Open

Implement QUIT logic (poison, medicine etc) #2

tgreaves opened this issue Nov 2, 2022 · 0 comments

Comments

@tgreaves
Copy link
Owner

tgreaves commented Nov 2, 2022

Need to implement logic around the QUIT command. Examples: You can't quit when drunk or POISONed in the BBC Micro version.

Relevant BBC BASIC source code lines:

 1640IFC$<>"QUIT"PRINTE$(RND(3)):ENDPROC
 1650IFM>1PRINT"Unable to QUIT while under the influence":VDU7:ENDPROC
 1660IFJPRINT"I need some medical help for the POISON":VDU7:ENDPROC
 1670IFD<6PROCF:!(k+12)=&A01:!(k+8)=Y+1:PROCC(10+RND(E/20),b,"NOSENT")
 1680VDU26,12:IFE>4000 E=4000:PRINT"Aren't you fed up with CAVE?"
 1690PRINT"Hold on";:IFD>=6PROCF
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant