Monster element

From Kolmafia
Revision as of 14:40, 10 March 2010 by imported>StDoodle (Created page with '{{ #vardefine:name|monster_element}}{{ #vardefine:return_type|element}}{{ FunctionPage| name={{#var:name}}| function_category=Adventuring| second_category=In-combat Consulting| …')
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search
needs(code_samples);

Function Syntax

element monster_element()

element monster_element(monster check_me )

  • check_me is the (optional) monster to get the elemental alignment of

Returns the elemental alignment of the specified monster check_me. If check_me is not specified, it defaults to the last monster you encountered.

This function can be used from within an In-combat Consulting script to help determine your fight strategy. When used this way, it isn't necessary to specify a monster, as the function will default to the one currently being fought.

See Also

monster_attack() | monster_defense() | monster_hp()

Special

When not logged in, this function returns $element[none] if no monster is specified.


Attention KoLmafia Experts!

We need your help; some details of this function's operation are unknown or unclear.

The following specific question has been raised:

  • Is the not-logged-in value correct?