Strings are a plain sequence of alphanumerical characters - letters, numbers or symbols - which can be used for messages, onscreen menus or text panels. They are defined this way:

STRING* name = "characters"; 

Defines a global string pointer with the given name and initializes it to the content characters between double quotation marks. If the character content is spread over several lines, line feeds are automatically inserted.  LC  Note that in lite-C pointers are generally defined with a '*', so the green * is required for lite-C, but must be omitted in C-Script.



STRING* player_name = "Player1";
STRING* welcome_str = "Welcome to the new game!\n\nEnjoy!";
STRING* empty_str = "";

STRING* name = "#n";

Defines a global string pointer initialized to n spaces. Use this for defining long empty strings. If you want to start a string with a '#', use two '#' characters (such as "##123").


STRING* sElements = "#100";

See also:

Variables, pointers, structs, functions


► latest version online