Text

Useful mouse co-ordinate saver/detector, with image positioning!

A useful program which can load and position (in real-time) images onto the screen, and stores click coordinates into a text file. very easy to use, and very flexible.
Use this for finding the coordinates of buttons, or where to place a picture onto the screen, or where to draw an object, ect. just load images onto the screen, and get clicking!
please credit if used!

Comma Separated Values Tokenizer

This code tokenizes a comma separated values string.

Call Csv_addval() with the string you want to tokenize
Csv_getval() returns a token (this returns "CSV_EMPTY" when there are no tokens left)
Call Csv_reset() to clear and tokens left in memory

Note: If you have the extends plugin you can replace the call to "str_find_char(Csv_str, ",")" with "str find char(Csv_str, ",", 1)" and delete the str_find_char() function.

Easy-to-Use Text Search Function

This function will take two strings and search the first string for the second one. It returns a 1 if the string is found, and a 0 if it is not. The third variable is the Case Flag, when set to 0 the function is not case sensitive, any other value will make it Case Sensitive. Please note that this function was made for text adventures, so essentially it searches a sentence for a word and it will not find the search string if it doesn't have spaces around it. Example: Searching "I like cheese" for "like" will return a 1, while searching "Ilikecheese" for "like" will return 0.


Theme & Icons by N.Design Studio