JS-LIKE
The JavaScript String object's "like()" method is used to see if this string matches another string. The syntax is:
Syntax
like( [<position], string0, ..., stringN )The position argument is optional. If present it says to match only against the positionth word in the string. The string0 to stringN arugments contain strings that will be matched against. For example:
Example Returns 'foo'.like( 'foo', 'bar' ) true 'foo'.like( 'foo-bar' ) true 'f'.like( 'foo-bar' ) true (abbreviations accepted) 'orc lord'.like( 'orc' ) false 'ugly cat'.like( 'ugly big cat' ) true The JavaScript Aura, Char, Obj, and Room methods also contain a like() method which can be used to see if a given string matches their name: Example Returns actor.like( 'joe' ) true if the actor's name contains joe. (customcommand 'trolling' js 'like( event.text )') This trigger would trigger if the actor entered "trolling <self's name>"