I have a plug-in in development, and would really like to separate the user-editable code into another file. I'm used to PHP where you can simply "include" another file, and it works as if the code is right there. I found some answers for JS, but they all use other libraries (prototype, ajax, etc.): http://stackoverflow.com/questions/21294/dynamically-load-a-javascript-file
Can any of those methods be used here? Is it worth the trouble? My plug-in was really for personal use, but it seems so useful I'd like to release it for everyone else, and this would be a good feature to have. You can view my plug-in code here if that helps: http://forums.rpgmakerweb.com/index.php?/topic/48803-crg-random-text-random-text-when-clicking-on-events/
I know other people use external files and just pull *data* from there (not full code), but I don't know that I have the skills for that.
Can any of those methods be used here? Is it worth the trouble? My plug-in was really for personal use, but it seems so useful I'd like to release it for everyone else, and this would be a good feature to have. You can view my plug-in code here if that helps: http://forums.rpgmakerweb.com/index.php?/topic/48803-crg-random-text-random-text-when-clicking-on-events/
I know other people use external files and just pull *data* from there (not full code), but I don't know that I have the skills for that.