Untitled
unknown
plain_text
4 years ago
1.5 kB
18
Indexable
country_event = {
id = testmod.0
is_triggered_only = yes
fire_only_once = yes
trigger = {
from = {
species = {
has_trait = trait_the_borg
}
}
is_ai = no
}
hide_window = yes
immediate = {
every_owned_leader = {
limit = {
NOR = {
has_trait = trait_ruler_the_borg
has_trait = trait_admiral_the_borg
}
}
if = {
limit = { leader_class = admiral}
add_trait = trait_admiral_the_borg
add_ruler_trait = trait_ruler_the_borg
}
if = {
limit = { leader_class = ruler}
add_trait = trait_ruler_the_borg
add_ruler_trait = trait_ruler_the_borg
}
}
every_pool_leader = {
limit = {
NOR = {
has_trait = trait_ruler_the_borg
has_trait = trait_admiral_the_borg
}
}
if = {
limit = { leader_class = admiral}
add_trait = trait_admiral_the_borg
add_ruler_trait = trait_ruler_the_borg
}
if = {
limit = { leader_class = ruler}
add_trait = trait_ruler_the_borg
add_ruler_trait = trait_ruler_the_borg
}
}
}
}
country_event = {
id = testmod.1
is_triggered_only = yes
hide_window = yes
trigger = {
from = {
species = {
has_trait = trait_the_borg
}
}
is_ai = no
}
immediate = {
from = {
if = {
limit = { leader_class = admiral}
add_trait = trait_admiral_the_borg
add_ruler_trait = trait_ruler_the_borg
break = yes
}
if = {
limit = { leader_class = ruler}
add_trait = trait_ruler_the_borg
add_ruler_trait = trait_ruler_the_borg
break = yes
}
}
}
}
Editor is loading...