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
<creature>— the creature whose pronoun you want.
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
he— the subject pronoun (he/she/it).his— the possessive pronoun (his/her/its).name— the creature's display name.- Strings and interpolation — building sentences with
$name.