Hej there,
I would like to handle the cyclic executions of all maintenance phases (like forest_growth, claims_maintenance etc.) by myself, e.g. time and frequency. A small script should implements this and is loaded within main.cs (serverside only).
It should not be a problem to schedule an event. Using the schedule function to schedule <myfunction> at time in the future and an invocation of, e.g. forest or a claim maintenance with forestStretchedMaintenance() or claimsMaintenance().
However, I need more information about those maintenance's phases: how are they invoked? Are there any event ids or event names (objects) which can be helpful? How can they be retrieved? Is there a way to work with the event queue and to cancel a previously scheduled event as specified by eventID? Perhaps I have overlooked something, but I wasn't able to get a list of "variables" like $forest_maintenance or $claims_maintenance (or other used objects).
thanks in advance
---
part. answer: answer by alakar in another thread