Reproduce inform //p in dialog?

i don’t think this is possible but i’ve been surprised before.

it would be nice to be able to tag similar objects with a plural marker like in inform. i’m guessing this is not possible without really mucking around in the guts of the parser.

the only other way i can think of is to have a dummy object in scope that responds to the plural name but this is clunky.

Does something like this work?

#b-red
(name *) red block
(plural dict *) blocks

#b-green
(name *) green block
(plural dict *) blocks
1 Like

man. i totally forgot that (plural dict $) even existed.

like i said. i’ve been surprised before (usually by my own doofus-ness).

i’m going to shortly delete this post out of embarrassment.

Please don’t do that. Someone else is sure to have the same question eventually.

2 Likes

yeah, i decided to leave it up as a shrine to not reading the documentation.

1 Like

Sometimes, it feels like the whole “Authoring” section of this forum could be characterized that way.

2 Likes

Well, that’s the thing, right? For me it’s an easy question to answer, because I was reading that section of the manual recently; for anyone else trying to find it, it’s not necessarily obvious that it’ll be in the section Library > Items > Plural Forms. That’s the nice thing about this forum; often there’ll be someone who can answer immediately what would otherwise take ages to find!

4 Likes