
国家互动本版本变更
迁移附属国首都
我们会命令附属国将首都迁往另一处地点。
定义in_game/common/country_interactions/move_subject_capital.txt:1
2type = subject
3category = CATEGORY_SUBJECT_ACTIONS
5ai_tick = never
7potential = {
8scope:actor = {
9num_subjects > 0
}
}
13allow = {
14scope:actor = {
15at_war = no
}
}
19price = price:capital_movement
20payer = scope:recipient
22select_trigger = {
23looking_for_a = country
24interaction_source_list = {
25scope:actor = {
26every_subject = {
27add_to_list = source
}
}
}
31target_flag = recipient
32name = "choose_country" 选择国家:
33column = {
34data = name
}
36visible = {
37NOR = {
38country_type = building
39country_type = pop
}
41num_locations > 1
}
43enabled = {
44at_war = no
}
}
50select_trigger = {
51looking_for_a = location
52source = recipient
53target_flag = target
54source_flags = only_actual_locations
55name = "move_subject_capital_select_location" 选择新首都地点
56none_available_msg_key = "move_subject_capital_no_locations"
57column = {
58data = name
}
60column = {
61data = population
}
63visible = {
64is_capital = no
}
}
68effect = {
69if = {
70limit = {
71exists = scope:target
}
73scope:recipient = {
74set_capital = scope:target
}
}
80else = {
81custom_tooltip = move_subject_capital_select_location_tt 点击选择附属国新首都地点
}
}
85accept = {
87add = {
88desc = "DIPLOREASON_OUR_SUBJECT" 对此事没有发言权
89value = 1000
}
}