Difference between revisions of "Hippy store available"
Jump to navigation
Jump to search
imported>Heeheehee |
imported>Eliteofdelete |
||
(3 intermediate revisions by 2 users not shown) | |||
Line 1: | Line 1: | ||
− | {{#vardefine:name|hippy_store_available}} | + | {{ |
− | {{#vardefine:return_type|boolean}} | + | #vardefine:name|hippy_store_available}}{{ |
+ | #vardefine:return_type|boolean}}{{ | ||
− | + | FunctionPage| | |
name={{#var:name}}| | name={{#var:name}}| | ||
− | |||
function1={{Function| | function1={{Function| | ||
Line 11: | Line 11: | ||
}}| | }}| | ||
− | function_description=This function returns true if the logged-in character has unlocked the hippy store. Otherwise, it returns false.| | + | function_description=This function returns true if the logged-in character has unlocked the hippy store. Otherwise, it returns false. Note: technically, this function checks for the hippy store + island access; it never checks to see if you have the outfit; it does switch to reporting false between starting the level 12 quest & completing the orchard sub-quest (if done).| |
− | + | code1={{CodeSample| | |
+ | title=Code Samples| | ||
+ | description=The example informs you if the hippy store is unlocked and if you meet the requirements to purchase from it.| | ||
+ | code= | ||
+ | <syntaxhighlight> | ||
+ | if (hippy_store_available()) { | ||
+ | print("You can access the hippy store!", "green"); | ||
+ | if (get_property("sidequestOrchardCompleted") != "hippy" && get_property("sidequestOrchardCompleted") != "frat") { | ||
+ | if (have_outfit("Filthy Hippy Disguise")) | ||
+ | print("You must use your filthy hippy disguise in order to purchase items there.", "blue"); | ||
+ | else print("You must first obtain a filthy hippy disguise to purchase items there.", "red"); | ||
+ | } | ||
+ | else print("You can purchase freely from it.", "blue"); | ||
+ | } | ||
+ | else print("You need to unlock the hippy store.", "red"); | ||
+ | </syntaxhighlight>| | ||
+ | |||
+ | }}| | ||
see_also={{SeeAlso|black_market_available|guild_store_available|white_citadel_available}}| | see_also={{SeeAlso|black_market_available|guild_store_available|white_citadel_available}}| | ||
special=When not logged in, this function returns false. | special=When not logged in, this function returns false. | ||
}} | }} | ||
− | + | ||
− | + | [[Category:Your Character]] |
Latest revision as of 03:39, 14 January 2015
Function Syntax
boolean hippy_store_available()
This function returns true if the logged-in character has unlocked the hippy store. Otherwise, it returns false. Note: technically, this function checks for the hippy store + island access; it never checks to see if you have the outfit; it does switch to reporting false between starting the level 12 quest & completing the orchard sub-quest (if done).
Code Samples
The example informs you if the hippy store is unlocked and if you meet the requirements to purchase from it.
if (hippy_store_available()) {
print("You can access the hippy store!", "green");
if (get_property("sidequestOrchardCompleted") != "hippy" && get_property("sidequestOrchardCompleted") != "frat") {
if (have_outfit("Filthy Hippy Disguise"))
print("You must use your filthy hippy disguise in order to purchase items there.", "blue");
else print("You must first obtain a filthy hippy disguise to purchase items there.", "red");
}
else print("You can purchase freely from it.", "blue");
}
else print("You need to unlock the hippy store.", "red");
See Also
Special
When not logged in, this function returns false.