Entryway: Difference between revisions

From Kolmafia
Jump to navigation Jump to search
imported>StDoodle
Created page with '{{ #vardefine:name|entryway}}{{ #vardefine:return_type|boolean}}{{ FunctionPage| name={{#var:name}}| function_category=Adventuring| function1={{Function| name={{#var:name}}| ag…'
 
imported>Bale
mNo edit summary
 
(6 intermediate revisions by the same user not shown)
Line 5: Line 5:
FunctionPage|
FunctionPage|
name={{#var:name}}|
name={{#var:name}}|
function_category=Adventuring|


function1={{Function|
function1={{Function|
Line 14: Line 13:
}}|
}}|


function_description=Attempts to complete the NS Entryway and returns its success.|
function_description=Attempts to complete the entire NS Entryway, from the gates through the statues and returns the attempt's success. </p>
<p>When using the skeleton key, if you do not have a ten-leaf clover in inventory it will use the unlucky entryway method of healing whenever HP are too low to use the skeleton key. If you have a ten-leaf clover then that clover will automatically be used by KoL to guarantee a roll of 11. A disassembled clover will not be assembled by this command.|


needscode=yes|
code1={{CodeSample|
title=Code Sample|
description=Solve the entry way to the NS Lair, from doors to statue.|
code=
<syntaxhighlight>
if(entryway())
  print("You made it through the entryway to the lair.");
else print("Read the above messages to understand what you need to make it into the NS's lair.");
</syntaxhighlight>
}}|


see_also={{SeeAlso|chamber|guardians|hedgemaze|tavern}}|
see_also={{SeeAlso|chamber|guardians|hedgemaze|tavern}}|
cli_equiv=The CLI command "entryway" will perform the same tasks.|
cli_equiv=The CLI command "entryway" will perform the same tasks.|
}}
}}
{{RFI|Does this do gates through statues, or just one part?|Why doesn't this return the needed item, like guardians(), on failure?|Can you control clover use, perhaps by having a ten-leaf in inventory (if not, what's the default)?}}
 
[[Category:Adventuring]]

Latest revision as of 22:18, 21 May 2010

Function Syntax

boolean entryway()

Attempts to complete the entire NS Entryway, from the gates through the statues and returns the attempt's success.

When using the skeleton key, if you do not have a ten-leaf clover in inventory it will use the unlucky entryway method of healing whenever HP are too low to use the skeleton key. If you have a ten-leaf clover then that clover will automatically be used by KoL to guarantee a roll of 11. A disassembled clover will not be assembled by this command.

Code Sample

Solve the entry way to the NS Lair, from doors to statue.

if(entryway())
   print("You made it through the entryway to the lair.");
else print("Read the above messages to understand what you need to make it into the NS's lair.");

CLI Equivalent

The CLI command "entryway" will perform the same tasks.

See Also

chamber() | guardians() | hedgemaze() | tavern()