Any Example on §17.14 of Writing with Inform?

As my study of Writing with Inform, progresses, I pretty much failed to understand §17.14. Tokens can produce values, probably because it has no examples implemented in a scenario.

Colour is a kind of value. The colours are red, green and blue. Understand "colour [a colour]" or "[a colour] shade" as "[tint]".

Can somebody give me an example of how this can be used—and useful?

Thanks.

These are the grammar tokens which are introduced starting in 17.4. You use them when defining verbs.

This is a somewhat artificial example:

Colour is a kind of value. The colours are red, green and blue.
Understand "colour [a colour]" or "[a colour] shade" as "[tint]".

Tuning it to is an action applying to one thing and one colour.

Understand "tune [something] to [tint]" as tuning it to.

The laser is a thing. The player carries the laser.

Report tuning:
	say "You can tune a laser, but you can't tune [a noun]."

Report tuning the laser to:
	instead say "You adjust the laser to [colour understood]."

The third input doesn’t work because just “green” doesn’t match the [tint] token.

(Really, given this action, players would only try the third input, and not either of the first two. That’s why I say it’s an artificial example.)

1 Like

Yes! Got it!

Thanks, zarf!