people
people <room|creature>
The living creatures in a room, as an iterable.
people is an alias of creatures — the two names
behave identically. Use whichever reads better in context.
Arguments
<room|creature>— a room to inspect directly, or a creature whose current room is inspected (including the creature itself). Only living creatures are included.
Returns
An iterable of creatures, exactly as creatures
returns. Consume it with each, count,
first, select, or another iterable consumer.
An empty or unresolved argument yields null.
Examples
after command (say) {
do "say There are [count [people $self]] of us here."
}
In the debug world the owner's room holds three creatures, so
[count [people $self]] evaluates to 3 — the same result as
[count [creatures $self]].
See also
creatures— the canonical name; see it for the full description and more examples.fighting— only a creature's living combatants.- Iterables and iterables · Types