Hello this is my first post here. I've been modding this game for over a month now, mostly bumbling my way through it, looking through the exported files for examples of how things are implemented, and reading the few tutorials here.
The mod I'm doing has kind of turned out to become a massive overhaul of the game sort of mod and I have (estimated) over a hundred scripts in it for all sorts of things. I started out using ModHookScript because it is so simple to implement using IsInActiveScene condition but I had to include a few GlobalScriptCalls to get around looping and timing limitations. Still, 99% of my scripts are ModHookScript because they are so easy and accessible to write.
The problem now is, I'm wondering if using and relying on all these ModHookScripts to do the bulk of the script work will have a negative impact on game performance or if they are efficient at all if GlobalScriptCall can do the same thing without the game constantly running them each time a scene is entered.
Basically I'm not sure if a ModHookScript is still brought up and runned anyway, even if it had succeeded already, and will not succeed again, on entering a scene given "RunOnlyOnce" = false and "SucceedOnlyOnce" = true. If this is the case, then it seems like a waste of resources and a potential drag on game performance if I have dozens of "succeeded" scripts (that won't and shouldn't succeed again) still running each time the player transitions to a scene with ModHookScripts in it.
If my fear is correct then it seems like I need to change course and go with using only a few ModHookScripts that call GlobalScripts, where the bulk of the data is.
In my testing it is hard to tell if performance is impacted because I didn't think to or know to consider this aspect at the start. The game is running okay for me in testing but I'm afraid that other players playing with the mod will experience things like crashing if their computer can't handle it.