Let's Talk about Agendas and some general questions

Drenghbar

Chieftain
Joined
Feb 27, 2017
Messages
4
Hi Modders !

(Warning : I'm not an english speaker, forgive me if I use wrong words)

I have started XML/SQL modding civ VI this month, and I love it ! I have still a lot to learn, and there is a lot of riddles remaining, I hope you could help me to go further into my understanding and modding skills :)

In my second mod I just posted, I tried to address random agendas. In addition to the modifications I brought, I wanted to add new random agendas to the field. I had some simple ideas (for example, the civ like you if you have a good percentage of cavalry in your standing army, and dislike you if you have a low percentage) but I found myself quite restrained into what I could do.

This was due to the RequirementType I was able to use. It seems to me that I can could only use those that was already created for agendas. I've found REQUIREMENT_PLAYER_HAS_RESOURCE_OWNED, and I thought I could create a new agenda with it. But after hours of failed testing, I finally discover why it does not work as intended : this requirement will check its validity for the civ owning the random agenda (ie it will check if the owner civ has the resource, and not the opponent) while the over "Agenda Requirements", like REQUIREMENT_PLAYER_YIELD_LEAD will check the values for the opponent civs (often compared with the owner civ).

So I guess the difference is in the implementation of these requirement, and when we want to create relevant agendas that check what the other civs have, we can only use requirement that was specifically designed for agendas. Do you have the same conclusion ? Do you know how and where are these requirement implemented ? Can we add more ? Is it accessible/modifiable ? Will it be someday ?

The modding community seems to love creating new leaders and civilization, and my guess is that they will be quite restrained when designing their historical agendas if we cannot go further. What do you think ?
 
Back
Top Bottom