string_upper(str)

str = the string that you want to convert

 

Example #1:

text = "hello world";

show_message(string_upper(text));

 

string_upper() will convert any text that is passed to it into uppercase, the above example will change "hello world" into "HELLO WORLD". This is good if you're checking what the player has typed in as "hello world" is not the same as "HELLO WORLD", this would mean you would have to check every permutation of 'hello world':

 

if text = "Hello World" or text = "Hello world" or text = "hello world" or text = "HELLO WORLD". . .

{

show_message("Hello to you too!")

}

 

It would be far simpler to change it into upper case and just check that:

 

Example #1:

text = get_string("","")

if (string_upper(text)) = "HELLO WORLD"

{

show_message("Hello to you too!")

}

 

Revision #1