String modifier

From Kolmafia
Revision as of 10:39, 4 May 2010 by 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…')
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

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.