Multiple Scripts
Alright I guess the only way to explain what I need is to explain what I am developing.
I am developing a game [img]style_emoticons/<#EMO_DIR#>/smile.gif" style="vertical-align:middle" emoid=":)" border="0" alt="smile.gif" /> I want each item in the game to have a script file that has functions in it that will be called when the engine needs to interact with the item. My dilemma: I am having difficulty figuring out how I can keep all of the scripts in memory, without having to execute them right before I want to execute a function in it. I thought about storing them as compiled scripts in memory and executing them each when I need them, but that will still cost extra processing that I would like avoid. So, after executing all of the scripts I want them to still be able to be called. Any way of doing this?[/img]
I am developing a game [img]style_emoticons/<#EMO_DIR#>/smile.gif" style="vertical-align:middle" emoid=":)" border="0" alt="smile.gif" /> I want each item in the game to have a script file that has functions in it that will be called when the engine needs to interact with the item. My dilemma: I am having difficulty figuring out how I can keep all of the scripts in memory, without having to execute them right before I want to execute a function in it. I thought about storing them as compiled scripts in memory and executing them each when I need them, but that will still cost extra processing that I would like avoid. So, after executing all of the scripts I want them to still be able to be called. Any way of doing this?[/img]