Debug on PunyInform

In Debug mode DM4 says:

"goto” ‹room number›

Teleports you to the numbered room. Because rooms don’t usually have names, referring to them by number (as printed in the “tree” output) is the best that can be done…

"Tree "does not show me any room numbers and “goto 1” gives me the message “This is not a verb I recognize”. Other verbs like “purloin” did work.

Therefore my question: Is there a possibility to got to an specified room when testing my code?

Thank you in advance;=)

Thomas

if there’s a unique object in the room that doesn’t require any disambiguation you can use “gonear”.

that is, if the ‘dragon’ is in the room ‘dungeon’, then “gonear dragon” will teleport you there.

otherwise, no. there’s no easy way to bounce around that i know of.

2 Likes

In PunyInform, you can only “gonear (object)”.

As you know, PunyInform (like Inform 6) is fully expandable, so you can write a goto verb yourself.

I couldn’t think of a good reason why PunyInform shouldn’t have a goto verb, so now it does. Also, it now has a “rooms” verb, to list the available rooms. This is just in the latest commit, but should be in the upcoming release (which may arrive in a week or two).

2 Likes

Hello Fredrik,

that is cool, thank you very much for all your efforts. Looking forward to the next release;=)

Thomas

1 Like

Thank you very much for the version including this! I just checked it out and it helps me a lot…

Thomas

1 Like