tattoos

tattoos <creature>

The tattoos a creature bears, as an iterable over its filled tattoo slots.

Tattoos are inked onto wear positions and are distinct from worn equipment, implants, and carried inventory.

Arguments

Returns

An iterable whose elements are the objects occupying the creature's filled tattoo slots. Empty slots yield nothing, so a creature with no tattoos produces an empty iterable. An unresolved argument yields null. Consume the iterable with each, count, first, select, or another iterable consumer.

Examples

after command (say) {
  do "say I have [count [tattoos $self]] tattoo(s)."
}

[tattoos $self] lists the owner's tattoo slots. The debug-world mob has none, so this compiles and runs with [count ...] evaluating to 0"I have 0 tattoo(s)." On a tattooed creature each one would be yielded in turn.

after command (say) {
  each [tattoos $actor] { <ink>
    do "say $actor bears [name $ink]."
  }
}

When the actor has tattoos, each names each one; otherwise the block never runs. The block parameter <ink> is declared inside the braces, right after {.

See also