I try to create some pop centred events, and currently tries to understand how modifiers are to be applied to pops, but this has wrecked my mind and I need help to straighten it out. I got two troubles I can't solve:
First trouble
In the code below everything is peachy until the options. if I tries to use <any_pop> from base scope it just appiles to the pop in the tile.

Ok, fair, so lets scope up to planet first and then scope <any_pop>, and then I cant parse the results. If unlimited the pop modifiern gets applied as a planetwide modifier (and the icon is just soo ironic).

and if I tries to limit it in any way it just don't show up anywhere...

So what scope to use to for just apply modifiers to a limited number of pops on a planet? Or Am I just missing something?
Second trouble
Why don't the second option show up? I guess it can be realated to some error made in the first problem... but do I missing something here too?
[and yes I will limit these events so they do not spam the brain out of us]
First trouble
In the code below everything is peachy until the options. if I tries to use <any_pop> from base scope it just appiles to the pop in the tile.

Ok, fair, so lets scope up to planet first and then scope <any_pop>, and then I cant parse the results. If unlimited the pop modifiern gets applied as a planetwide modifier (and the icon is just soo ironic).


and if I tries to limit it in any way it just don't show up anywhere...

So what scope to use to for just apply modifiers to a limited number of pops on a planet? Or Am I just missing something?
Second trouble
Why don't the second option show up? I guess it can be realated to some error made in the first problem... but do I missing something here too?
[and yes I will limit these events so they do not spam the brain out of us]
Code:
namespace = schedim
pop_event = {
id = schedim.1
title = "schedim.1.name"
desc = "schedim.1.desc"
picture = "GFX_evt_burning_settlement"
trigger = {
has_ethic = ethic_fanatic_xenophobe
AND = {
NOT = {is_enslaved = yes}
NOT = {is_being_purged = yes}
}
OR = {
has_ethic = ethic_fanatic_militarist
has_ethic = ethic_militarist
}
planet = {
any_pop ={
AND = {
NOT = {is_same_species = ROOT}
is_robot_pop = no
is_being_purged = no
}
}
}
}
mean_time_to_happen = {
months = 120
}
immediate = {
save_event_target_as = troubleMaker
planet = {
random_pop ={
limit = {
is_robot_pop = no
is_being_purged = no
NOT = {
is_same_species = ROOT
}
}
purge = yes
save_event_target_as = victim
}
}
}
option = {
name = schedim.1.option1
immediate = {
planet={
any_pop={
#limit = {
#NOT = {is_same_species = ROOT }
#}
add_modifier = { modifier = "pop_governmental_oppression" month = 6 }
}
}
}
}
option = {
name = schedim.1.option2
immediate = {
event_target:victim = {
purge = no
}
any_pop={
limit = {
NOT = {is_same_species = ROOT }
}
add_modifier = { modifier = "pop_governmental_oppression" month = 24 }
}
}
}
}