selectmonster

itemmonstermanual page 13

selectmonster "monster name" [<offset>]

Arguments

ArgumentTypeRequiredReferences
monster namestryesmonster
offsetintoptional—

Takes 1–2 arguments.

What it does

Selects the monster that will be affected by the following modding commands. The selected monster is referred to as the active monster. The selectmonster command always selects the first monster of that name in the monster list. If there is more than one monster with the same name (e.g. longdead) the offset value can be used to select them. Leave the offset out if you only want to select the first monster. The default value of the offset is 0. The offset used by this command cannot be set to a negative value, unlike the offset for the lookslike command. Offset value 1 means the command selects the (first + 1) monster of that name, i.e. the second monster. Offset 2 selects the third monster of the same name etc. Note that this command cannot use the "1:spearman" syntax.

— modding manual, page 13 (as a monster command)

Interacts with

lookslike command

“The offset used by this command cannot be set to a negative value, unlike the offset for the lookslike command.”

— selectmonster's description (manual, page 13)

← All commands