- count_me is the string to check
Returns the number of characters (not 0-indexed) in a string. Note that for escaped characters, only the actual character — not the escape marker — is counted.
The following example determines the number of characters in the name of a hat.
item the_hat = $item[ pail ]; // First we need to remove all spaces with replace_string() string parsed_name = replace_string( the_hat, " ", "" ); if ( item_type( the_hat ) == "hat" && length( parsed_name ) == 4 ) print( "You can receive the +20ML buff from the Mad Tea Party." );