事件

Country的王朝选举

election.6in_game/events/government/election.txt:490
… 的王朝选举

随着Old Ruler离世,Old Ruler Dynasty家族走到了终点。

是时候让贵族寻找一个能引导Country走向未来的新家族了。

经历数天的讨论,选举人做出了他们的决定。

需要宗族选举继承制继承法trigger

定义in_game/events/government/election.txt:490

491type = country_event
493title = election.6.title Country的王朝选举
494desc = {
495first_valid = {
496triggered_desc = {
497trigger = {
498NOR = {
499exists = scope:candidate_a
500exists = scope:candidate_b
501exists = scope:candidate_c
502exists = scope:candidate_d
503exists = scope:candidate_e
}
}
507desc = election.6.desc.b 随着Old Ruler离世,Old Ruler Dynasty家族走到了终点。

是时候让贵族寻找一个能引导Country走向未来的新家族了。

经历数天的讨论,选举人做出了他们的决定。
}
509triggered_desc = {
510desc = election.6.desc.a 随着Old Ruler离世,贵族在Capital集合,以选择一位新Ruler Title统治Country。

经过数天的讨论,选举人做出了他们的决定。
}
}
}
514outcome = neutral
516trigger = {
}
520illustration_tags = {
52110 = regular
52210 = interior
}
524immediate = {
526capital = {
527save_scope_as = capital_scope
}
529previous_ruler ?= {
530save_scope_as = old_ruler
}
533random_election_candidates = {
534save_scope_as = candidate_a
}
536random_election_candidates = {
537limit = {
538NAND = {
538exists = scope:candidate_a
538this = scope:candidate_a
}
}
540save_scope_as = candidate_b
}
542random_election_candidates = {
543limit = {
544NAND = {
544exists = scope:candidate_a
544this = scope:candidate_a
}
545NAND = {
545exists = scope:candidate_b
545this = scope:candidate_b
}
}
547save_scope_as = candidate_c
}
549random_election_candidates = {
550limit = {
551NAND = {
551exists = scope:candidate_a
551this = scope:candidate_a
}
552NAND = {
552exists = scope:candidate_b
552this = scope:candidate_b
}
553NAND = {
553exists = scope:candidate_c
553this = scope:candidate_c
}
}
555save_scope_as = candidate_d
}
557random_election_candidates = {
558limit = {
559NAND = {
559exists = scope:candidate_a
559this = scope:candidate_a
}
560NAND = {
560exists = scope:candidate_b
560this = scope:candidate_b
}
561NAND = {
561exists = scope:candidate_c
561this = scope:candidate_c
}
562NAND = {
562exists = scope:candidate_d
562this = scope:candidate_d
}
}
564save_scope_as = candidate_e
}
566if = {
567limit = {
568NOR = {
569exists = scope:candidate_a
570exists = scope:candidate_b
571exists = scope:candidate_c
572exists = scope:candidate_d
573exists = scope:candidate_e
}
}
576capital = {
577create_dynasty_from_location = random
578last_dynasty_in_location ?= {
579save_scope_as = capital_dynasty
}
}
582create_character = {
583culture = root.culture
584religion = root.religion
585age = {
20
60
}
586birth_location = capital
588dynasty = scope:capital_dynasty
589save_scope_as = candidate_a
}
592random_owned_location = {
593create_dynasty_from_location = random
595last_dynasty_in_location ?= {
596save_scope_as = target_dynasty
}
598save_scope_as = location_scope
}
600create_character = {
601culture = scope:location_scope.dominant_culture
602religion = scope:location_scope.dominant_religion
603age = {
20
60
}
604birth_location = scope:location_scope
606dynasty = scope:target_dynasty
607save_scope_as = candidate_b
}
}
}

选项

A选举Candidate A为统治者。
614trigger = {
614exists = scope:candidate_a
}
615if = {
616limit = {
617scope:candidate_a = {
617is_ruler = yes
}
}
619add_government_power = government_power_extreme_penalty (-10)
}
621character = scope:candidate_a
}
B选举Candidate B为统治者。
627trigger = {
627exists = scope:candidate_b
}
628if = {
629limit = {
630scope:candidate_b = {
630is_ruler = yes
}
}
632add_government_power = government_power_extreme_penalty (-10)
}
635character = scope:candidate_b
}
C选举Candidate C为统治者。
641trigger = {
641exists = scope:candidate_c
}
642if = {
643limit = {
644scope:candidate_c = {
644is_ruler = yes
}
}
646add_government_power = government_power_extreme_penalty (-10)
}
649character = scope:candidate_c
}
D选举Candidate D为统治者。
654trigger = {
654exists = scope:candidate_d
}
655if = {
656limit = {
657scope:candidate_d = {
657is_ruler = yes
}
}
659add_government_power = government_power_extreme_penalty (-10)
}
662character = scope:candidate_d
}
E选举Candidate E为统治者。
667trigger = {
667exists = scope:candidate_e
}
668if = {
669limit = {
670scope:candidate_e = {
670is_ruler = yes
}
}
672add_government_power = government_power_extreme_penalty (-10)
}
675character = scope:candidate_e
}
© 2026 Soft Santa Cruz, S.L.U.。保留所有权利。非官方粉丝项目,与Paradox Interactive无关。游戏内容 © Paradox Interactive。 关于 · 隐私 · 法律声明