So I’ve got a lot of different types of people in this game and I’m having trouble grouping them together sensibly. What I want here is four paragraphs: One listing living lawmen, one listing dead lawmen, one listing living outlaws, and one listing dead outlaws (naturally, omitting any paragraph that doesn’t apply). Both lists should mention who, specifically, is in the group (ie, “the sheriff and two deputies”), and the lists of living people should mention if anyone is angry, but don’t need to mention if no one is angry. Finally, I’d like a custom paragraph for each group, not just the standard “You can see…”
So from this setup:
[code]The Corral is a room. “A dusty corral.” The player is in the corral.
Status is a kind of value. The statuses are contented, angry, and dead.
Every person has a status. The status of a person is usually contented.
Definition: A person is living if it is not dead.
A lawman is a kind of person. The sheriff is a lawman. A deputy is a kind of lawman.
An outlaw is a kind of person.
Before listing contents: Group dead outlaws together.
Before listing contents: Group living outlaws together.
Before listing contents: Group dead lawmen together.
Before listing contents: Group living lawmen together.
Before printing the name of an angry person: Say "angry ".
Before printing the name of a dead person: Say "dead ".
Instead of attacking:
Say “You draw and fire! [The noun] is dead.”;
Now the noun is dead.
Understand “shoot [something]” as attacking.
There are two deputies. There is a contented outlaw. There are two angry outlaws. There is a dead outlaw.
When play begins:
Now every lawman is in the corral;
Now every outlaw is in the corral.
[/code]
The desired result would be something like this: