So me and my friend are attempting to create our own first mod. We are attempting to create 6 new cultures one per era.
For Norte Chico we could do it with relative ease using what is given in unity.
However with the second culture Odrysian Kingdom, we are struggling because we want to give a percentage buff based on how many in your empire are not of your culture.
So when looking around we saw that Arabia multiplies the percentage buff with the amount of alliances by saying 0.05 * Source.DiplomaticRelationAllianceCount. My question is if it would be possible to create a file Source.CitiesInfluencedByOtherNations, and where that file should be for it to be visible. But yeah the question might not be stupid, and ones i find the source files or at least know somewhere, where i atleast have a chance to enter code, i might still not manage to do what i want. But i thought before we give up on doing this with thought it was worth asking.
The things like Source.DiplomaticRelationAllianceCount are actually reference to properties of SimulationEntities, I don't know where you found the Arabia bonus but looking at it I would say it's a RPN (a formulas) that take a Source and a Target Entity. Here the entity is a MajorEmpire that have a property DiplomaticRelationAllianceCount (if I'm not mistaken). I think this property is actually an EditableProperty, this mean that this property cannot be modified by you, but is modified by us in our code. But you can use this property to do calculation (like the Arabia bonus). Some other properties are "simple" properties that you can modify in descriptor.
Sadly, because you can't really modify the source code, you won't be able to add new properties so I think you won't be able to do what you want.
So i can find some of the RPNs for units like all the production costs. However i struggle finding the different RPNs for MajorNations and right now i can only find the ones that are used by some nations. For example Babylon Source.NumberOfUnlockedTechnologies, Arabia and Byzantium Source.DiplomaticRelationAllianceCount, Ghana Target.SumOfLuxuryResourceAccessCount. etc. Is there anywhere in the modding tool a list of all the possible source. and target.
carlhhc
Nickname
carlhhc
Nickname
4 700g2g ptsReport comment
Why do you report carlhhc?
Are you sure you want to block carlhhc ?
BlockCancelAre you sure you want to unblock carlhhc ?
UnblockCancelDEVDrunkenChoko
Seven Heretic
Making bug and code around here, in that order.
DEVDrunkenChoko
Seven Heretic
32 900g2g ptsReport comment
Why do you report DrunkenChoko?
Are you sure you want to block DrunkenChoko ?
BlockCancelAre you sure you want to unblock DrunkenChoko ?
UnblockCancelcarlhhc
Nickname
carlhhc
Nickname
4 700g2g ptsReport comment
Why do you report carlhhc?
Are you sure you want to block carlhhc ?
BlockCancelAre you sure you want to unblock carlhhc ?
UnblockCancelcarlhhc
Nickname
carlhhc
Nickname
4 700g2g ptsReport comment
Why do you report carlhhc?
Are you sure you want to block carlhhc ?
BlockCancelAre you sure you want to unblock carlhhc ?
UnblockCancelcarlhhc
Nickname
carlhhc
Nickname
4 700g2g ptsReport comment
Why do you report carlhhc?
Are you sure you want to block carlhhc ?
BlockCancelAre you sure you want to unblock carlhhc ?
UnblockCancelcarlhhc
Nickname
carlhhc
Nickname
4 700g2g ptsReport comment
Why do you report carlhhc?
Are you sure you want to block carlhhc ?
BlockCancelAre you sure you want to unblock carlhhc ?
UnblockCancel