Difference between pages "File:Lesson8 Hunter.png" and "Can faxbot"
(Difference between pages)
Jump to navigation
Jump to search
imported>Bale |
|||
Line 1: | Line 1: | ||
+ | {{ | ||
+ | #vardefine:name|can_faxbot}}{{ | ||
+ | #vardefine:return_type|boolean}}{{ | ||
+ | FunctionPage| | ||
+ | name={{#var:name}}| | ||
+ | |||
+ | function1={{Function| | ||
+ | name={{#var:name}}| | ||
+ | return_type={{#var:return_type}}| | ||
+ | parameter1={{Param|monster|mob}}|| | ||
+ | p1desc={{Pspan|mob}} is the monster for which to check.| | ||
+ | }}| | ||
+ | |||
+ | function_description=Checks to see if {{Pspan|mob}} can be faxed by any of the faxbots known to KoLmafia. This does not check if the faxbot(s) are online.<ref>https://sourceforge.net/p/kolmafia/code/20614/tree/src/net/sourceforge/kolmafia/textui/RuntimeLibrary.java#l4753</ref>| | ||
+ | |||
+ | code1={{CodeSample| | ||
+ | title=Code Samples| | ||
+ | description=This will acquire a copy of a scary pirate if you can get one.| | ||
+ | code= | ||
+ | <syntaxhighlight> | ||
+ | if( get_property("_photocopyUsed")=="false" && can_faxbot($monster[scary pirate]) ) | ||
+ | faxbot($monster[scary pirate]); | ||
+ | </syntaxhighlight> | ||
+ | }}| | ||
+ | see_also={{SeeAlso|faxbot|is_online}}| | ||
+ | }} | ||
+ | ==References== | ||
+ | <references/> | ||
+ | |||
+ | [[Category:Miscellaneous Functions]] |
Latest revision as of 23:53, 24 January 2021
Function Syntax
boolean can_faxbot(monster mob )
- mob is the monster for which to check.
Checks to see if mob can be faxed by any of the faxbots known to KoLmafia. This does not check if the faxbot(s) are online.[1]
Code Samples
This will acquire a copy of a scary pirate if you can get one.
if( get_property("_photocopyUsed")=="false" && can_faxbot($monster[scary pirate]) )
faxbot($monster[scary pirate]);
See Also
References
File history
Click on a date/time to view the file as it appeared at that time.
Date/Time | Thumbnail | Dimensions | User | Comment | |
---|---|---|---|---|---|
current | 23:55, 9 November 2020 | 349 × 236 (14 KB) | Maintenance script (talk | contribs) |
You cannot overwrite this file.
File usage
The following page uses this file: