jsbasic
jsbasic copied to clipboard
Fix for Issue #36
Description
Fix error "Illegal quantity in line 7130" in the game "Text Adventure (Floyd McWilliams)". Add space (empty line) between player inputs.
Fixes # (issue)
Type of change
- [X] Bug fix (non-breaking change which fixes an issue)
- [ ] New feature (non-breaking change which adds functionality)
- [ ] Breaking change (fix or feature that would cause existing functionality to not work as expected)
- [ ] This change requires a documentation update
Changes
-
Line 5010 - included a PRINT " " to add an extra line between inputs. This makes it more readable and provide a visual separation between the player's input and result messages.
-
Lines: 7450, 7530, 7720, 7830, 8200 - Replaced IMOFF by IMMOFF.
- IMOFF is first used in line 7450, but was not declared or initialized.
- IMMOFF is correctly declared and initialized in line 700.
- Lines 7120, 7215 and 7130 address the "Illegal quantity in line 7130"
- line 7120: ARG is initialized (the rest goes to a new line for readability)
- line 7125: check command "open X door" - COMM = 27 (OPEN) and ARG => LEFT = -1, CENTER = -1, RIGHT = 0
- line 7130: check command "(unlock | oil) dumbwaiter oilcan"
- if the command is not: COMM = 23 (UNLOCK), COMM = 29 (OIL)
- ILOC(15) <> 0 means user is not carrying the OILCAN
How Has This Been Tested?
Click the Select a sample… drop down In the Games section, select "Text Adventure (Floyd McWilliams)" Click Run Run these commands:
w
w
w
s
take note
n
e
e
e
u
n
take key
s
w
w
unlock door
w
s
read note
(make a note of the missing door left|center|right)
n
open (left|center|right) door
References: Uncle Tays' House Adventure Walkthrough