Fun with Participles
Mostly the Standard Rules use verbs adapted to finite forms ("he jumped", "we take the hammer", and so on). But Inform can also produce participles to describe actions that are ongoing: "he is carrying the fedora" or "taking the hammer…"
In this example, we give non-player characters actions to perform and then have Inform dynamically describe what they're doing when the player chooses to look.
We start by establishing the idea that a verb can describe a particular action:
Now we need to give every character some sort of idle activity. By default, we'll have people just be waiting, but allow for that idle activity to change into something more interesting if the player has told them to do something else.
And just to give past participles a test-drive as well, let's make Clark a bit of a drama king:
Test me with "look / Clark, jump / look / Clark, look / look / Clark, wait".
Clark is here, standing about.
You can also see a fedora here.
>(Testing.)
>[1] look
Lab
Clark is here, standing about.
You can also see a fedora here.
>[2] clark, jump
"Fine, have it your way!" Clark exclaims. "But I have pirouetted for the last time!"
>[3] look
Lab
Clark is here, jumping.
You can also see a fedora here.
>[4] clark, look
"Fine, have it your way!" Clark exclaims. "But I have looked around for the last time!"
>[5] look
Lab
Clark is here, looking around.
You can also see a fedora here.
>[6] clark, wait
"Fine, have it your way!" Clark exclaims. "But I have wasted time for the last time!"