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

Terp fails to LOOK after room-swap #42

Open
ahope1 opened this issue Jan 14, 2021 · 2 comments
Open

Terp fails to LOOK after room-swap #42

ahope1 opened this issue Jan 14, 2021 · 2 comments

Comments

@ahope1
Copy link
Contributor

ahope1 commented Jan 14, 2021

The compiled version of the following example from the Adventure System manual (page 2-23) works as expected with PerlScott or with ADVENTUR/CMD, but fails when played with the ScottKit interpreter:

start bedroom

occur when flag 1
	clear_flag 1
	swap_room
	goto hintroom
	continue
	
occur 0%
	look
	pause
	swap_room
	look


room bedroom "bedroom"
	
room hintroom "*This is the hint room. Hinty hinty."


action sleep:
	set_flag 1
	print "You fall asleep..."
	pause

action score: score
action inventory: inventory
action look: look

verbgroup sleep

After you enter the command sleep, you should be teleported to the "hint room"; the description of the hint room should be displayed on screen briefly; and then you should be teleported back to the bedroom again. But ScottKit fails to display the hint-room description.

@ahope1
Copy link
Contributor Author

ahope1 commented Jan 15, 2021

Here's a screenshot of the compiled code running in ADVENTUR/CMD in a TRS-80 emulator in MAME:

Screenshot 2021-01-15 at 17 13 58

@ahope1
Copy link
Contributor Author

ahope1 commented Feb 26, 2022

See also #3 (comment)

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