So, for one of the civs I'm making, I need to know how to make them like civs that participate in espionage. Looking at the base game, the only agenda that does something similar is Catherine's Black Queen agenda, which makes her dislike civs who don't participate in espionage. So, what I want is pretty much the opposite: doesn't dislike civs who don't do espionage, likes civs who do.
The thing is, looking at her agenda in the game's xml, her agenda trait's modifier type is 'MODIFIER_PLAYER_DIPLOMACY_AGENDA_BLACK_QUEEN', unlike most other agendas, which use the 'MODIFIER_PLAYER_DIPLOMACY_SIMPLE_MODIFIER' modifier type. Black Queen's modifier also has no arguments, so there's no way to easily change the effects of it. Looking deeper, the modifier type is actually tied to a unique GameEffect, 'EFFECT_DIPLOMACY_AGENDA_BLACK_QUEEN', and that's where I lose the chain, as I don't know how to look at how the game handles/implements effects, and specifically the diplomacy ones. There are a couple other agendas that are the same way, Bushido, Ayyubid Dynasty, Environmentalist, Exploitative, Last Viking King, Optimus Princeps, Paranoid, Queen of the Nile, and With Your Shield or On It. Some of these are the more advanced effects-wise, so I suppose it makes sense to have something probably in Lua to handle them, but I'd like to know how to be able to create similar effects.
The thing is, looking at her agenda in the game's xml, her agenda trait's modifier type is 'MODIFIER_PLAYER_DIPLOMACY_AGENDA_BLACK_QUEEN', unlike most other agendas, which use the 'MODIFIER_PLAYER_DIPLOMACY_SIMPLE_MODIFIER' modifier type. Black Queen's modifier also has no arguments, so there's no way to easily change the effects of it. Looking deeper, the modifier type is actually tied to a unique GameEffect, 'EFFECT_DIPLOMACY_AGENDA_BLACK_QUEEN', and that's where I lose the chain, as I don't know how to look at how the game handles/implements effects, and specifically the diplomacy ones. There are a couple other agendas that are the same way, Bushido, Ayyubid Dynasty, Environmentalist, Exploitative, Last Viking King, Optimus Princeps, Paranoid, Queen of the Nile, and With Your Shield or On It. Some of these are the more advanced effects-wise, so I suppose it makes sense to have something probably in Lua to handle them, but I'd like to know how to be able to create similar effects.