I've been going the ToF data and have come across the following files that appear to relate to the implementation of events and/or the contents of events.
a) lang_ENG.csv (located in the ToF root directory)
b) lang_ENG.db (a database file that appears to contain the same sort of data in the above CSV but in some sort of database format also in the root of ToF)
c) Numerous XML files in the data\events directory
d) A comprehensive "EVENT_ENGINE_MANUAL.txt" file outlining the nature and use of the event methods I assume are contained in the XML files in the events directory
e) An "events_list.csv" file in the same directory containing numbered events, various flags and some other data
f) A file called "Lisa nazw constow do eventow.txt" contaning data (not sure what this relates to)
g) An "events.xsd" file in the data\scenarios directory, which appears to be a schema file
Each scenario then appears to have files relating to the implementation of events as follows:
a) A file called "event_files.txt" cotaining the names of existing XML event files which I assume are those files that contain data for the events relevant to that scenario only
b) A file called "events.xml" containing event data which appears to relate to the event files contained in the data directory. I assume the data contained in this file sets out the conditions applicable to that scenario under which the event will "fire"
My question relates more the requirements of the modders in terms what event editing capability they need and what access to what data is required. I imagine that events can be added into the data\events directory in the form of XML files but then how does the game know that these event files exist, do entries for these new events need to be written into the overarchng DB file and if so, what's the format of that file?
Or is it the case that modders only require the ability to use pre-existing events and be able to add those pre-existing events into the event files for a specific scenario? Assuming it's the latter, it appears that the "scenario level" events are required to have an entry relating to the event in the "events.xml" file for that particular scenario and a series of conditions setting out when the event will occur.
Again, if it's the latter, I assume any required tool will need to parse the game level events located in the events directory and allow the modder to choose those events that they want to add to a scenario, the conditions for the event and then allow the event to be selected and automatically added into the scenario level data.
As more of a techical question for editing events at a scenario level, rather than game level, I am assumng that no additional entries will need to be made into any other data files other than those contained in the directory for each particular scenario (therefore, no need to edit data contained in the DB file).
I'm sure some of my assumptions here are incorrect so any additional information is appreciated.