Suggesting specific synonym to a player: potential pitfalls?

For Why Pout, I have a noun called cell phone chatter. But I want the player to focus on how it is from cell phones and not chatter.

every turn when noun is cell phone chatter:
    if the player's command includes "chatter", say "But it's the cell phones that make the chatter particularly annoying. Focus on the cell phones.";

This code looks good, but I’m wondering about special cases I might be missing.

I’ve tried special cases like X CHATTER/parser error or even X CHATTER/Z (make sure noun is not carries over) but I sense there is something I’m missing & want to be sure of it before implementing this.

Thanks!

This is another case where the Subcommands extension (mentioned in this thread) may be helpful.

In I6 you could write parse_name logic to set a flag when a particular word was encountered. This didn’t make it into I7 (not in a user-visible way) and it’s one of the things I miss most.

1 Like