Hey Guest! Ever feel like entering a Game Jam, but the time limit is always too much pressure? We get it... You lead a hectic life and dedicating 3 whole days to make a game just doesn't work for you! So, why not enter the GMC SLOW JAM? Take your time! Kick back and make your game over 4 months! Interested? Then just click here!
Use the function string_delete().
You need the name of the string, the position/index of the first character to remove (in this case, it would be 8) and the number of characters to remove, so 5.
Thanks, totally forgot about this function, If you know, could you tell me how I can check what goes after tags in string so I can use and replace them? For example:
Code:
"[spoiler=This is spoiler] SPOILER [/spoiler]"
I can use string_replace to replace , but anyway I need to get the string that goes after equal sign.
Use string_pos(substr, str) to find the location of a substring in a string, so string_pos("=", str) would give you the position of the equal sign. I assume you don't want to replace the equal sign itself so use that position+1 for replacing, adding, deleting etc. I recommend you look at all the string functions here. Consulting the YoYo Games manual is probably the fastest way to figure out what your looking for / how a function works. Anyways, good luck with your project!