Monster attack: Difference between revisions
imported>StDoodle mNo edit summary |
imported>Heeheehee m How'd that typo get through? |
||
Line 23: | Line 23: | ||
p1desc={{Pspan|check_me}} is the (optional) monster to get the attack value of| | p1desc={{Pspan|check_me}} is the (optional) monster to get the attack value of| | ||
}}| | }}| | ||
function_description=Returns the attack value of the specified monster {{pspan|check_me}}. If {{pspan|check_me}} is not specified, it defaults to the last monster you encountered. This function adjusts for | function_description=Returns the attack value of the specified monster {{pspan|check_me}}. If {{pspan|check_me}} is not specified, it defaults to the last monster you encountered. This function adjusts for known effects (such as monster level modifications).</p> | ||
<p>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. It will update the information returned each time it is called, to the best of KoLmafia's knowledge.| | <p>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. It will update the information returned each time it is called, to the best of KoLmafia's knowledge.| | ||
Revision as of 23:40, 27 March 2010
Function Syntax
int monster_attack()
int monster_attack(monster check_me )
- check_me is the (optional) monster to get the attack value of
Returns the attack value of the specified monster check_me. If check_me is not specified, it defaults to the last monster you encountered. This function adjusts for known effects (such as monster level modifications).
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. It will update the information returned each time it is called, to the best of KoLmafia's knowledge.
See Also
More Information
For the current discussion of what's being tracked in-combat for monster level adjustments, please see this thread.
Special
When not logged in, this function returns 0 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 questions have been raised:
- Is the information about the self-updating nature of the return value correct?
- Is the not-logged-in value correct?