Originally Posted by Littlejohn
If you're going for something that's quick+easy to enter, you might want to skip the comma separated list idea -- it's kind of programmerish ya know? Here's a little function that just grabs all the numbers out of a string. Some mods seem to be overly picky with chat command syntax. (Flexbar comes to mind...) People might like it if your mod is ultra lazy with the chat syntax.
|
Thanks for the code and advice. I got it working using the gfind() method.
Now just got to package up my mod and get it posted.
And I went with the no commas in the chat command. Although the code
provided will ignore them and other stuff, so I guess it doesn't matter.
Thanks,