Monster attack: Difference between revisions
imported>Heeheehee m How'd that typo get through? |
imported>Zarqon better indicate mafia's handling, remove a needless RFI |
||
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 | function_description=Returns the attack value of the specified monster {{pspan|check_me}}. If {{pspan|check_me}} is not specified, it will use the current monster if you are in a fight (i.e. you're calling the function from an [[In-combat Consulting]] script), or the last monster you encountered otherwise.</p> | ||
<p>The return value includes monster level modifications. This means that for monsters with unknown attack, the return value will be equivalent to monster_level_adjustment(). Relatedly, it will update the information returned each time it is called, to the best of KoLmafia's knowledge.| | |||
needscode=yes| | needscode=yes| | ||
Line 32: | Line 32: | ||
special=When not logged in, this function returns 0 if no monster is specified.| | special=When not logged in, this function returns 0 if no monster is specified.| | ||
}} | }} | ||
{{RFI | {{RFI|Is the not-logged-in value correct?}} |
Revision as of 05:28, 17 April 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 will use the current monster if you are in a fight (i.e. you're calling the function from an In-combat Consulting script), or the last monster you encountered otherwise.
The return value includes monster level modifications. This means that for monsters with unknown attack, the return value will be equivalent to monster_level_adjustment(). Relatedly, 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 question has been raised:
- Is the not-logged-in value correct?