Difference between pages "Gnomads available" and "Knoll available"
(Difference between pages)
Jump to navigation
Jump to search
imported>Bale (Less copy/paste and more thought. O.O;;) |
imported>Bale (r9308) |
||
Line 1: | Line 1: | ||
{{ | {{ | ||
− | #vardefine:name| | + | #vardefine:name|knoll_available}}{{ |
#vardefine:return_type|boolean}}{{ | #vardefine:return_type|boolean}}{{ | ||
Line 11: | Line 11: | ||
}}| | }}| | ||
− | function_description=This function returns true if the logged-in character has has access to the | + | function_description=This function returns true if the logged-in character has has access to the inside of Degrassi Knoll.| |
code1={{CodeSample| | code1={{CodeSample| | ||
title=Code Samples| | title=Code Samples| | ||
− | description=This | + | description=This will purchase a detuned radio if you can.| |
code= | code= | ||
<syntaxhighlight> | <syntaxhighlight> | ||
− | if( | + | if(item_amount($item[detuned radio]) < 1 && knoll_available() && my_meat() >= 300) |
− | + | buy(1, $item[detuned radio]); | |
− | |||
</syntaxhighlight> | </syntaxhighlight> | ||
}}| | }}| | ||
− | see_also={{SeeAlso| | + | see_also={{SeeAlso|gnomads_available|canadia_available}}| |
special=When not logged in, this function returns false. | special=When not logged in, this function returns false. | ||
}} | }} | ||
[[Category:Your Character]] | [[Category:Your Character]] |
Latest revision as of 08:12, 19 May 2011
Function Syntax
boolean knoll_available()
This function returns true if the logged-in character has has access to the inside of Degrassi Knoll.
Code Samples
This will purchase a detuned radio if you can.
if(item_amount($item[detuned radio]) < 1 && knoll_available() && my_meat() >= 300)
buy(1, $item[detuned radio]);
See Also
Special
When not logged in, this function returns false.