Difference between pages "Element" and "Tavern"

From Kolmafia
(Difference between pages)
Jump to navigation Jump to search
imported>Aventuristo
(Replaced redirect with element content)
 
imported>StDoodle
m
 
Line 1: Line 1:
{{DISPLAYTITLE:element}}
+
{{
 +
#vardefine:name|tavern}}{{
 +
#vardefine:return_type|int}}{{
  
This data type represents one of the elements of the KoL universe.  Besides
+
FunctionPage|
$element[ none ], there are seven possible values for this datatype:
+
name={{#var:name}}|
 +
function_category=Adventuring|
  
* cold
+
function1={{Function|
* hot
+
name={{#var:name}}|
* sleaze
+
aggregate={{#var:aggregate}}|
* spooky
+
return_type={{#var:return_type}}|
* stench
+
return_also={{#var:return_also}}|
* slime
+
}}|
* supercold
 
  
Note that "Bad Spelling" is not considered a true element.
+
function_description=Attempts to complete the level 3 tavern quest. Returns the number of squares visited.|
Also note that these names are case-sensitive (referencing $element[ Spooky ]
 
will generate an error).
 
  
==Related Functions==
+
needscode=yes|
  
{{Flink|element|dad_sea_monkee_weakness|int}}
+
see_also={{SeeAlso|chamber|entryway|guardians|hedgemaze}}|
{{Flink|float|elemental_resistance|element}}
+
cli_equiv=The CLI command "tavern" functions similarly.|
{{Flink|float|elemental_resistance|{{opt|monster}}}}
+
more_info= |
{{Flink|element|monster_element|{{opt|monster}}}}
+
special=The function will turn off the faucet, and will not attempt to find and / or fight the baron.|
{{Flink|element|to_element|strict_string}}
+
}}
 
+
{{RFI|Is the info regarding the return value & ignoring the baron correct?}}
==Proxy Record Fields==
 
 
 
{| cellpadding="3" cellspacing="0" border="1px" class="sortable"
 
|- | style="background-color: #F2F2F2"
 
|-
 
! Field
 
! Data type
 
! Default value
 
! ASH Accessor Function / Notes
 
|-
 
| image
 
| string
 
| "circle.gif"
 
|
 
|}
 
 
 
[[Category:Scripting]]
 

Revision as of 16:15, 10 March 2010

needs(code_samples);

Function Syntax

int tavern()

Attempts to complete the level 3 tavern quest. Returns the number of squares visited.

CLI Equivalent

The CLI command "tavern" functions similarly.

See Also

chamber() | entryway() | guardians() | hedgemaze()

Special

The function will turn off the faucet, and will not attempt to find and / or fight the baron.


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 info regarding the return value & ignoring the baron correct?