Difference between revisions of "String modifier"

From Kolmafia
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…')
(No difference)

Revision as of 10:39, 4 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.