• We have updated our Community Code of Conduct. Please read through the new rules for the forum that are an integral part of Paradox Interactive’s User Agreement.

sillyrobot

General
Jul 18, 2015
1.980
3.870
G'day Folks,

I noticed the 'Greater Than Ourselves' effect can ruin buildings if the unemployed pops being removed cross a building slot threshold. I'd like to add a kludge to validate the removal won't cost a building slot .

Conceptually, this is simple: (total owned pops in the colony) mod 5 != 0. I can live with the prospect that if there are more than 5 unemployed pops in a colony, it requires some human intervention. I haven't done a lot of arithmetic in my modding ()because it seems to be such a pain) so although I fiddled around with some possibilities, I couldn't find anything workable.

Probably the easiest thing would be to build a scripted effect, but that's as far as I can get.
 
Is there some way to apply multiple tests to a count result?

In other words, rather than

Code:
count_pops = {
      limit = {
          is_sapient = yes
      }
      count = 5
}

something like the following?

Code:
     count_pops = {
      limit = {
          is_sapient = yes
      }
      OR = {      
        count = 5
        count = 10
        count = 15
        count = 20
        count = 25
        count = 30
        count = 35
        count = 40
        count = 45
        count = 50
        count = 55
        count = 60
        count = 65
        count = 70
        count = 75
       }      
      }

Obviously, the example doesn't directly work or I'd have my answer.