I have been working on a map, i have many actions, functions and what have you. the plan has been to break them up into libraries later. later has come and i realize that may be a much more time consuming task than anticipated. it seems that i will need to manually update the reference to everything moved into a library, all variable references, all actions calls all function calls, everything, so basically 3/4 of the lines will need to be updated ugg. unless im missing something, the moral of the story is to start your trigger stuff in libraries from the beginning if you plan on using libraries.
I had hope for a second when i found the "find and replace" feature. it can find and replace action/function calls, except all arguments are reset to default once the call is replaced with the library copy .
If you copy the variables first, then functions, then triggers etc, it should be able to keep the references intact afaik. Test it out see if it works, I moved mine to the library early on (a library in a mod)
Yes, but once in the library you won't have to do it again ;P
One thing to note... if you are getting a LOT of lost variables and such... it means a lot of your scripts have dependencies on other scripts and variables.
One big thing is to try to make as many variables local variables as possible this will minimize the difficulty others will have in working with your scripts.
Rollback Post to RevisionRollBack
To post a comment, please login or register a new account.
I have been working on a map, i have many actions, functions and what have you. the plan has been to break them up into libraries later. later has come and i realize that may be a much more time consuming task than anticipated. it seems that i will need to manually update the reference to everything moved into a library, all variable references, all actions calls all function calls, everything, so basically 3/4 of the lines will need to be updated ugg. unless im missing something, the moral of the story is to start your trigger stuff in libraries from the beginning if you plan on using libraries.
I had hope for a second when i found the "find and replace" feature. it can find and replace action/function calls, except all arguments are reset to default once the call is replaced with the library copy .
If you copy the variables first, then functions, then triggers etc, it should be able to keep the references intact afaik. Test it out see if it works, I moved mine to the library early on (a library in a mod)
Yes, but once in the library you won't have to do it again ;P
One thing to note... if you are getting a LOT of lost variables and such... it means a lot of your scripts have dependencies on other scripts and variables. One big thing is to try to make as many variables local variables as possible this will minimize the difficulty others will have in working with your scripts.