him

him <creature>

The object pronoun for a creature — him, her, or it.

Use it to refer to a creature as the object of a sentence without hard-coding a gender. It pairs with he (subject pronoun) and his (possessive pronoun).

Arguments

Returns

A string — the object pronoun (him, her, or it), matching the creature's gender.

Examples

after command (wave) {
  do "say [name $actor] waves. Give [him $actor] a wave back."
}

When the actor is the mob Puff (gender female), [him $actor] evaluates to her, so the mob says "Puff waves. Give her a wave back."

See also