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

Examining people from a distance doesn't work as intended #58

Open
eriktorbjorn opened this issue Feb 24, 2020 · 0 comments
Open

Examining people from a distance doesn't work as intended #58

eriktorbjorn opened this issue Feb 24, 2020 · 0 comments

Comments

@eriktorbjorn
Copy link

V-EXAMINE contains this code for examining people from a distance:

	 <COND (<OR <IN? ,PRSO ,GLOBAL-OBJECTS>
		    <NOT <EQUAL? <META-LOC ,PRSO> ,HERE ,LOCAL-GLOBALS>>>
		<COND (<NEARBY? ,PRSO>
		       <TELL
"You ought to get closer, you'd get a better look." CR>)
		      (T
		       <NOT-HERE ,PRSO>
		       <RTRUE>)>)

However, it doesn't work. If I understand it correctly that's because you're looking at the global character object (e.g. GLOBAL-MICHAEL), and NEARBY? works on the local character object (e.g. MICHAEL).

Compare this to how for instance V-WALK-TO does it:

	       (<AND <IN? ,PRSO ,GLOBAL-OBJECTS>
		     <FSET? ,PRSO ,PERSON>>
		<SET WHO <CHARACTERIZE ,PRSO>>
		<COND (<NEARBY? .WHO> 
		       <SETG PRSO <META-LOC .WHO>>
		       <V-THROUGH>)
		      (ELSE
		       <TELL-YOU-CANT "even see " <>>
		       <TELL D ,PRSO "!" CR>)>)

V-EXAMINE should presumably do something similar.

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