Difference between revisions of "Is unrestricted"

From Kolmafia
Jump to navigation Jump to search
imported>Paladinwhite
(Created page with "{{ #vardefine:name|is_unrestricted}}{{ #vardefine:return_type|boolean}}{{ FunctionPage| name={{#var:name}}| function1={{Function| name={{#var:name}}| aggregate={{#var:aggreg...")
 
imported>Bale
m (Bale moved page Is unrestricted() to Is unrestricted over a redirect without leaving a redirect)
(No difference)

Revision as of 22:48, 18 February 2015

Function Syntax

boolean is_unrestricted(item check )

boolean is_unrestricted(familiar check )

boolean is_unrestricted(skill check )

boolean is_unrestricted(string check )

Checks whether check is available for use, given current restrictions.

Code Sample

This will attempt to fax in a blooper.

if(is_unrestricted("deluxe fax machine")) {
   faxbot($monster[blooper]);
}
else {
   print("Fax machine is not available", "red");
}