I seem to be asking more questions here than most, and I am sorry about that.
But when I was doing my prototypes for how the whole quests would work I ended up with no problems. But right now when I am doing the bulk of the quests in games I hit a dead wall in regards with the requirements. I think that I understand now(after seeing that you have safeguard in the code and my tests failing a lot of times) that you planned the requirements as more of a what should be done before this action can be added to a planner. But as I understood it more of a what should exist, and if possible add those actions that would make this quest possible to the planner, but if there isnt a way to create the quest just ignore this action and continue finding other suitable actions. Currently I have i.e. a couple of actions that you can do with a settlement like bring some goods to it if it is friendly, bring a message if it neutral, do something bad if it is an enemy, etc... and I have domains for enemy, friendly, player faction and neutral settlements. And the problem that occurs is that it exceeds the safe guard when trying to generate quests( I have set the safeguard to low value) and generates a quest for a friendly settlement even though it is an enemy one(all the settlements are in the correct domains). So how can I have requirements for quests working more like offer condition for the non procedural quests? Would it be an easy change or it's completely out of the planned use case? What is funny I've tried it sometimes with checking whether a event happened in the world(event was added as an entity type if it happened recently) and it worked but right now I don't know what to do.
P.S. I don't know If I am using it wrong the whole time( I did went through the tutorials multiple times though) but anyways I wanted to say that as I am creating a battle between factions which is supposed to offer non linear gameplay, I find the procedural quest system a bit... unprocedural for a lack of better word
