ID:156893
 
I'm making a game where if you type certain commands, certain things happen. For example, you type "Silence" and someone is muted. How do I make this case insensitive? I don't want to have to type out every combination of capitals and lowercased letters.
How are you doing this in the first place?
findtext() is case insensitive, and should probably be used for a system like this.
In response to Falacy (#1)
I have it as
verb/verbhere(var/X as text)

And then if([X]=="")
In response to Xyphon101 (#2)
Wait, I used findtext and it works, thanks.
In response to Xyphon101 (#3)
cmptext(X,word) would work just as well. Not that it would be any different from findtext() in this situation, but eh.
In response to Kaiochao (#4)
Kaiochao wrote:
cmptext(X,word) would work just as well. Not that it would be any different from findtext() in this situation, but eh.

That would only match exact strings though (which may be desirable) findtext() will return true if the part is found anywhere in the whole.