Guardians: Difference between revisions

From Kolmafia
Jump to navigation Jump to search
imported>Bale
fixed "see also"
imported>Bale
Serious confusion about what this does is now corrected! Much RFI added!
Line 14: Line 14:
}}|
}}|


function_description=Attempts to pass the six levels of the NS Tower. If successful, or if you don't currently have access to the tower, this function returns $item[none]. Otherwise, if you are prevented from going further because you lack the required item, it returns that item.|
function_description=Attempts to pass the six levels of the NS Tower, the door puzzle, the NS's familiars and your shadow. If successful, or if you don't currently have access to the tower, this function returns $item[none]. Otherwise, if you are prevented from going further because you lack the required item, it returns that item.|


code1={{CodeSample|
code1={{CodeSample|
Line 34: Line 34:




{{RFI|What happens if you don't have enough adventures to complete the tower?}}
{{RFI|What happens if you don't have enough adventures to complete the tower?|What happens if you cannot get the weight of your familiars to 20?|What happens if you don't have enough healing to defeat the shadow?}}

Revision as of 07:56, 22 March 2010

Function Syntax

item guardians()

Attempts to pass the six levels of the NS Tower, the door puzzle, the NS's familiars and your shadow. If successful, or if you don't currently have access to the tower, this function returns $item[none]. Otherwise, if you are prevented from going further because you lack the required item, it returns that item.

Code Sample

Defeat the six tower monsters at the NS lair.

item missing = guardians();
if(missing == $item[none])
   print("You defeated the six tower monsters.");
else print("You need a "+ missing +" to continue.");

CLI Equivalent

The CLI command "guardians" works similarly.

See Also

chamber() | entryway() | 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:

  • What happens if you don't have enough adventures to complete the tower?
  • What happens if you cannot get the weight of your familiars to 20?
  • What happens if you don't have enough healing to defeat the shadow?