I'm trying to get the name of a CLEO script to a string to be used with 0A92: create_custom_thread "name.cs" to restart the script elsewhere. I did this so far, but it doesn't work properly if the name is more than 3 chars (xxx.cs) even with allocating memory to the string. Is there a memory address to read the name or anything like that?
Code:
0A9F: 0@ = current_thread_pointer
0@ += 0x8
chatmsg "%s" -1 0@