This topic is for discussions related to Permission to Visit by Ron Newcomb
Is there a way to use this extension to go to âlocation nameâ ONLY if location is an exit of the room player is in?
I would like people to be able to say âGo to Riverâ instead of âsouthâ or âsâ if the location they are in has the river listed as an exit to the south.
As it works for me now, it will jump to any location on the map even if it is not visible from where the player is now. If the river is not directly accessible from the current location (even if visited), I would prefer it fail instead of just going through other locations to get to the river. I have read through the docs and have found ways to modify behavior of the extension, but not this function.
As always⌠Thanks!
Thereâs an example in the doc about:
Check travelling to (this is the Donât Jump To Unvisited Places rule): if the destination is unvisited, say âYou donât know where [the noun] is.â instead.
It seems you could modify that to something like if the destination is not adjacent to the location:
âŚ
I tried using that rule âas isâ to test it with the intent to modify it. Even in the extension example scene âTesting Areaâ it gives an error on compile:.
Problem. In the sentence âif the destination is unvisitedâ
, I was expecting to read a condition, but instead found some text that I couldnât understand - âdestination is unvisitedâ.
I was trying to match this phrase:
if (destination is unvisited - a condition):
But I didnât recognise âdestination is unvisitedâ.
So I kept looking for another way.
Short answer is no, itâs designed for when travel is gated by social relationships rather than physical world transportation issues.
I think what youâre going for can be achieved without an extension at all. In the Understand chapter of Informâs manual is an example of Understand âgo to [an adjacent room]â⌠which I think serves your purpose, though my memory is a bit hazy.
Not hazy at all! This works:
Going by name is an action applying to one thing.
Carry out going by name: say âYou walk to [the noun].â; move the player to the noun.
Understand âgo to [any adjacent room]â as going by name.
Thanks Ron and Hanon!