Noob question: How can I disable "go to" in released game?

It’s very handy when testing my own game, but I was surprised that the released version still allows the player to jump to any room with “go to”, regardless of whether that room is adjacent or distant, visited or unvisited. I’d be happiest to disable the command completely - but if that’s not possible, is there a way to only permit its use for reaching nearby/visited rooms?

After much mucking about trying different permutations of source code, I tried searching the documentation, and this forum, but didn’t get anywhere. (And Google’s ONE suggestion concerned Minecraft!)

I must be missing the obvious (yet again!) as it’s ridiculous beyond words that any room in my game can be reached in a single turn. Please advise!

2 Likes

Ha! Got it!

It just dawned on me that it’s not a single command “go to” but a “go” + “to”

Once I got that, it was suddenly simple. :slight_smile:

2 Likes

You can also put any code that’s just there for testing in a section headed “not for release” and it’ll automatically be omitted when you release:

https://ganelson.github.io/inform-website/book/WI_2_9.html

2 Likes