Difference between revisions of "To monster"

From Kolmafia
Jump to navigation Jump to search
imported>StDoodle
(Created page with '{{ #vardefine:name|to_monster}}{{ #vardefine:return_type|monster}}{{ FunctionPage| name={{#var:name}}| function_category=Datatype Conversions| function1={{Function| name={{#var…')
 
imported>Bale
m
Line 5: Line 5:
 
FunctionPage|
 
FunctionPage|
 
name={{#var:name}}|
 
name={{#var:name}}|
function_category=Datatype Conversions|
 
  
 
function1={{Function|
 
function1={{Function|
Line 22: Line 21:
 
special=Since direct casting with $monster[ ] is already case-insensitive and accepts partial matches, this function is only useful for converting a string variable to a monster.|
 
special=Since direct casting with $monster[ ] is already case-insensitive and accepts partial matches, this function is only useful for converting a string variable to a monster.|
 
}}
 
}}
 +
 +
[[Category:Datatype Conversions]]

Revision as of 05:22, 22 May 2010

needs(code_samples);

Function Syntax

monster to_monster(string name )

  • name is the monster name to convert

Returns the specified monster name as a monster.

Special

Since direct casting with $monster[ ] is already case-insensitive and accepts partial matches, this function is only useful for converting a string variable to a monster.