I was trying to clean up some code/save keystrokes, and I developed the following stubs that also seem to save a bit of memory and keystrokes.
to moot (th - a thing): move th to solved-room definition: a thing (called th) is moot: if th is in solved-room, yes; no;
This worked well until I got to
moot all carried not warpable things;
move all carried not warpable things to solved-room;
works fine, but I was wondering if there was a way I could use the “moot” syntax that makes coding easier for individual items. I had assumed that Inform would grok “moot (multiple things)” as successive calls to moot, but this was a bit too ambitious.
The error reads as follows:
In the line 'moot all held things' , I read 'held things' where I was expecting to find a (single) specific example of 'a thing'.
I also noticed this experiment code works, but it feels wrong. Am I just seeing ghosts? Is there a better way to do things?
a thing can be silly. A thing is usually not silly. to blather (q - a list of things): say "[q]". every turn: blather list of all silly things.
Lets me pass multiple things. But I don’t know if passing a list as a parameter has any possible odd negative effects. This feels like a basic question I should have known for a while, but I never tried anything like this, and I’m just wondering if I’m missing anything. Maybe it can help someone else, too.
I’m (still) on version 6G60.