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
added code sample
Line 16: Line 16:
function_description=Attempts to complete the NS Entryway and returns its success.|
function_description=Attempts to complete the NS Entryway and returns its success.|


needscode=yes|
code1={{CodeSample|
title=Code Sample|
description=Solve the door puzzle to fight your shadow.|
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}}|

Revision as of 20:05, 10 March 2010

Function Syntax

boolean entryway()

Attempts to complete the NS Entryway and returns its success.

Code Sample

Solve the door puzzle to fight your shadow.

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()


Attention KoLmafia Experts!

We need your help; some details of this function's operation are unknown or unclear.

The following specific questions have been raised:

  • 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)?