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

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