Well, we could very well have "Jamie's Utils" and "Baldyr's Utils" but it doesn't make much sense to me. Because you should probably be using my helper functions in both this and any future project. You should take a look at them - or should I document them for you so that you know how to use them? Otherwise you will end up copy-pasting them into CustomFunctions anyway. (There is more utils in the new Rebellion module, by the way, and some of those could be useful in other modules as well, so those will probably get moved to Utils/CustomFunctions/whatever in time. Or I could make a new version shortly and include more utils.)I wonder if we should merge the Utils and CustomFunctions together or just leave them apart? Because most likely the CustomFunctions will be carried into my future mods and it would then be a problem to just move seeing though it then contains your variables for JRM (which would not be present in JMM for example) and plus I kinda like having my own homemade file which is completly and utterly mine![]()
I'm thinking that I shouldn't make any more changes to EvEventManger myself - you're in charge of it now!btw in case of merging required in the EventManager... I added a comment next to all I have edited in the file (aside from the very bottom). This comment reads: #Hi Baldyr! and in Utils, everything that is irregular unitwise has #Irregular next to it!


Sure, when I'm done with working on your mod we can rename Utils to Constants and move all functions to CustomFunctions. But right now we might as well work on your respective modules, because otherwise we'll just lose track of who edited what.(seeing though my Functions has more functions then Utils maybee Utils should become the variable Module and leave all functions to CustomFunctions)
I even think that you should put all the constants you're defining into your own module, for now. If you import Utils first and CustomFeatures only after it, then all duplicate names will be replaced with your correct versions. So you shouldn't even touch Utils and let me work on it on my own. (Everything will be yours in the end anyway, and you will be able to do whatever you want with all of it.)
Yeah, I think I urged you to take a look at this stuff before deciding on plugging your events into the Event Manager. Because you could just have defined the events in XML and used Python functions for the tasks listed above. Its basically your decision.EDIT: btw I had a quick look in the event XML and found these in the eventinfos (which define the options you get when a trigger is met ie: in the event forestfire you get 3 options, replant, lose etc) <PythonCallback/><PythonExpireCheck/><PythonCanDo/><PythonHelp/> and in the event trigger infos (defines what makes the event happen, like an if statement, but you probably already guessed that)<PythonCanDo/><PythonCanDoCity/><PythonCanDoUnit/><PythonCallback/>
is that anything like what you wanted before?