|
string_copy(str,index,count) |
|
str = String to get the new string from. index = The starting point to get the new string from. count = The amount of characters from index that you want the new string to consist of.
This string function returns a string from string starting at position index, and ending at position count. So basically, if you typed in:
Then it would return the string "ABCDEFG", and assign it to the variable text. This is similar to the string_char_at function, except it can return more than one character in a string at a time, hence making it useful for many things, such as: making a chatbot "read" words, finding a whole word in a string, storing values to a string and then recalling them, or even another method of making a dialogue script, as shown in the example below...
Melee-Master - Revision #1 |