Mod Creation Help - Ming Treasure Fleet

SmashPig5

Chieftain
Joined
Jan 24, 2019
Messages
10
It's my first time making a mod and a I thought I'd take a swing at adding an ability to the Ming Lijia civic, that generates treasure fleets/convoys in their capital when suzerain of a city state. It would give treasure points per city state suzerained (one per city state), similar to the new Inca ability that generates them in cities with three mountains.

However, I am struggling to be honest and I don't know how to go about this. I'm using the unofficial Majapahit rework mod as a guide but I'm lost. I thought that every effect I'm trying to use will already exist in the game (unique treasure fleet generation, effect per city state suzerained, etc.) but I don't know how to bring it all together. I can get the capital to just start producing them once Lijia is researched, but I can't work out how to predicate that on city states suzerained.

Any help or guidance would be appreciated. I'm using xml with Visual Studio Code.
 
Last edited:
I tried to find a way to do it too, but there doesn't seem to be some any type of is a suzerain of x requirement right...?

Did you find it?
 
I can't seem to, no. The effects they've made are very specific to each city state type; there's no per suzerain effect itself, the closest is change yield per city-state, but treasure points aren't a yield. I'm actually not sure what they are, they are very elusive in the files, so its a bit of a dead-end.
 
Back
Top Bottom