[maintenance phases] How can I modify a maintenance phase schedule?

Place for sharing your game modifications for Life is Feudal: Your Own
User avatar
Cattoaster
 
Posts: 110
Joined: 03 Nov 2014, 16:13
Location: Medieval Germany

[maintenance phases] How can I modify a maintenance phase schedule?

Post by Cattoaster » 24 Apr 2016, 16:28

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

Return to Game mods

cron