Planet Allegiance Increase

Hi all. I'd like to mod the Advent Loyalist "Assimilated Populace" ability to include a 5% increase to planet allegiance maximum. I believe that to do this correctly would look like this:

numEntityModifiers 1
modifierType "AllegianceFromCultureMaxPerc"
baseValue 0.000000
perLevelValue 0.050000

(With indents where appropriate)

My question, other than 'will this work', is what does the baseValue...value...have to be? That code is copied from the code for Allure of the Unity, which is a research subject, so I'm not convinced it will work as desired. I also suspect I would have to add a second finish condition to make sure the Entity Modifier is applied, but I'm not sure. Any help is appreciated. Thank you.

8,108 views 6 replies
Reply #1 Top

Yes it'll work.

Reply #2 Top

Techs can have multiple levels...for example, each weapon tech usually adds 5%...

But, let's just say you wanted it to be such that researching the first level got you to 10%, and then each additional level added 5%...you'd set the base value to 5%, and the per level value to 5%...

I personally am not aware of any technology that actually does this, but you have the option too via a mod...

Note that level is not the same as tier...allure of the unity is tier 8 and has two levels....

Reply #3 Top

Quoting Volt_Cruelerz, reply 1
Yes it'll work.
End of Volt_Cruelerz's quote

When set up that way, wont it give a blanket 5% increase to all planets? I'm going for adding it only to the planet being affected by Assimilated Populace. My goal is to have the buff that AP applies to a planet include a permanent 5% boost to allegiance. Which is also why I was asking about the base value %. This may be impossible the way I've outlined it, I may need a completely new buff or something. Just wanted to see if I could just tack it on. Thanks for the help.

 

Reply #4 Top

Quoting JJBuck2, reply 3
When set up that way, wont it give a blanket 5% increase to all planets? I'm going for adding it only to the planet being affected by Assimilated Populace. My goal is to have the buff that AP applies to a planet include a permanent 5% boost to allegiance. Which is also why I was asking about the base value %. This may be impossible the way I've outlined it, I may need a completely new buff or something. Just wanted to see if I could just tack it on. Thanks for the help.
End of JJBuck2's quote

No, there's actually no way to give a temporary max boost to allegiance or to specific planets, it has to be global. Base value is the value you get without having to research it. So if you did this.

modifierType "AllegianceFromCultureMaxPerc"
baseValue 0.050000
perLevelValue 0.050000

All planets would have a +5% max allegiance from the start of the game, and once you research the tech you'd get an additional +5% per level.

Quoting Seleuceia, reply 2
I personally am not aware of any technology that actually does this, but you have the option too via a mod...
End of Seleuceia's quote

The base value line is by default used by the first fleet supply and capital ship techs, otherwise you'd have no fleet supply or cap slots available. Also the Advent Loyalist tier 8 tech that gives damage in culture bonus has a +5% base value, so they actually have that bonus without doing any research.

Reply #5 Top

Quoting GoaFan77, reply 5
Also the Advent Loyalist tier 8 tech that gives damage in culture bonus has a +5% base value, so they actually have that bonus without doing any research.
End of GoaFan77's quote

Forget about the fleet supply stuff, but I honestly did not know about this one...wish it was more than 5% >:(

Reply #6 Top

Quoting GoaFan77, reply 5

No, there's actually no way to give a temporary max boost to allegiance or to specific planets, it has to be global. Base value is the value you get without having to research it. So if you did this.

modifierType "AllegianceFromCultureMaxPerc"
baseValue 0.050000
perLevelValue 0.050000

All planets would have a +5% max allegiance from the start of the game, and once you research the tech you'd get an additional +5% per level.
End of GoaFan77's quote

EDIT: I misread, you did say you cant do it to specific planets. Oh well. Thanks for the info!

I suppose its impossible to make the boost permanent as well? My intended goal was to have a permanent 5% boost to allegiance be applied to any planet you forcibly take over (that would be triggering assimilated populace).

On a slightly related note, is there a way to increase the actual culture output of culture towers? I know that all the culture techs increase the spread rate (iirc this is just how quickly the culture can move along phase lanes) but I'm working on a bunch of small changes to the Advent Loyalists to try to make them a little more viable and I'd love to be able to do something like increase the base culture rate provided by each tower. Thanks in advance.