Difference between pages "Template:TOCright" and "Black market available"

From Kolmafia
(Difference between pages)
Jump to navigation Jump to search
imported>StDoodle
m
 
imported>Heeheehee
(Created the page!)
 
Line 1: Line 1:
{| cellspacing="0" cellpadding="0" style="clear: {{{clear|none}}}; margin-bottom: .5em; float: right; padding: .5em 0 .8em 1.4em; background: none; width: {{{width|{{{1|auto}}}}}};" {{#if:{{{limit|}}}|class="toclimit-{{{limit}}}"}}
+
{{#vardefine:name|black_market_available}}
| __TOC__
+
{{#vardefine:return_type|boolean}}
|}<noinclude>
+
 
Simple template to float the Table of Contents on the right.
+
{{FunctionPage|
[[Category:Basic Templates]]
+
name={{#var:name}}|
</noinclude>
+
function_category=Your Character|
 +
 
 +
function1={{Function|
 +
name={{#var:name}}|
 +
return_type={{#var:return_type}}
 +
}}|
 +
 
 +
function_description=This function returns true if the logged-in character has unlocked the Black Market. Otherwise, it returns false.|
 +
 
 +
code1={{CodeSample|
 +
title=Code Samples|
 +
description=If the character can access the Black Market, this code will buy black cherry sodas to restore MP to max.|
 +
code=
 +
<syntaxhighlight>
 +
if(black_market_available()) {
 +
  use((my_maxmp()-my_mp())/10 , $item[black cherry soda]);
 +
}
 +
</syntaxhighlight>
 +
}}|
 +
 
 +
see_also={{SeeAlso|guild_store_available|hippy_store_available|white_citadel_available}}|
 +
special=When not logged in, this function returns false.
 +
}}

Revision as of 05:14, 6 March 2010



Function Syntax

boolean black_market_available()

This function returns true if the logged-in character has unlocked the Black Market. Otherwise, it returns false.

Code Samples

If the character can access the Black Market, this code will buy black cherry sodas to restore MP to max.

if(black_market_available()) {
   use((my_maxmp()-my_mp())/10 , $item[black cherry soda]);
}

See Also

guild_store_available() | hippy_store_available() | white_citadel_available()

Special

When not logged in, this function returns false.