String modifier: Difference between revisions
Jump to navigation
Jump to search
imported>Bale Created page with '{{ #vardefine:name|string_modifier}}{{ #vardefine:return_type|string}}{{ FunctionPage| name={{#var:name}}| function_category=Modifier Functions| function1={{Function| name={{#v…' |
imported>Bale mNo edit summary |
||
Line 5: | Line 5: | ||
FunctionPage| | FunctionPage| | ||
name={{#var:name}}| | name={{#var:name}}| | ||
function1={{Function| | function1={{Function| | ||
Line 37: | Line 36: | ||
more_info= See [http://kolmafia.us/showthread.php?802 this thread] for details.| | more_info= See [http://kolmafia.us/showthread.php?802 this thread] for details.| | ||
}} | }} | ||
[[Category:Modifier Functions]] |
Revision as of 05:25, 22 May 2010
Function Syntax
string string_modifier(string check_me )
string string_modifier(string check_me ,string modifier_name )
Returns a string modifier.
Code Sample
Checks current equipped outfit.
if(string_modifier("outfit") == "knob goblin elite guard uniform")
print("You are equipped to purchase seltzer.");
else print("The Knob scientists won't let you into their store dressed like that.");
More Information
See this thread for details.