開戦事由の作成
アクション

開戦事由の作成

prepare_for_warin_game/common/generic_actions/parliament.txt:349

わが国の正当な開戦事由を承認し、戦争の開始を認めるようPlayer Parliamentに求める。
• 反乱軍国家でも自国の従属国でもなく、外交範囲内にあり、現在停戦を結んでいない国に対して以下の開戦事由を作成する
開戦事由「州の請求(議会承認)」
• 開戦事由はDefineヵ月(Divide Int32年)持続する。

定義in_game/common/generic_actions/parliament.txt:349

350type = parliament
351show_message_to_target = no
353sound = PARLIAMENT_PREPARE_FOR_WAR
355ai_tick = daily
356ai_tick_frequency = 30
357automation_tick = daily
358automation_tick_frequency = 7
359player_automated_category = parliament
362allow = {
363scope:actor = {
364country_type = location
365is_active_parliament = yes
366parliament_issue_support > {
}
}
}
372select_trigger = {
373looking_for_a = country
374ai_interaction_source_list = {
375scope:actor = {
376every_country_in_diplomatic_range = {
377limit = {
378scope:actor = {
379or = {
380wants_casus_belli_with = prev
381and = {
382NOT = {
382has_casus_belli_on = prev
}
383wants_to_attack = prev
}
}
}
}
388add_to_list = source
}
}
}
392target_flag = target
393pre_evaluation_sort_value = {
394if = {
395limit = {
396scope:target ?= {
397is_rival_of = scope:actor
}
}
400add = {
401desc = "game_concept_rival" ライバル
402value = 100
}
}
405if = {
406limit = {
407exists = scope:actor
408exists = scope:target
}
410subtract = {
411desc = "OUR_OPINION_TOOLTIP" わが国の相手国に対する評価
412value = "scope:actor.opinion(scope:target)"
413divide = 10
}
}
}
417pre_evaluation_number_to_evaluate_fully = 1
418name = "prepare_for_war_select_title" 開戦事由を適用する国家の選択
419none_available_msg_key = "prepare_for_war_no_countries"
420column = {
421data = name
}
423column = {
424data = population
}
426visible = {
427NOT = {
427has_target_casus_belli_on_us = root
}
428NOT = {
428has_truce_with = scope:actor
}
429NOT = {
429is_subject_of = scope:actor
}
430is_rebel_country = no
431scope:actor = {
432within_diplomatic_range = root
}
434capital = {
435is_discovered_by = scope:actor
}
}
}
440select_trigger = {
441looking_for_a = province
442source = target
443target_flag = target_province
444pre_evaluation_sort_value = {
445add = {
446value = {
447capital = {
448add = {
449value = "border_distance_to(scope:actor)"
450multiply = -1
}
}
}
}
456add = province_tax_base
}
458pre_evaluation_number_to_evaluate_fully = 1
459name = "prepare_for_war_select_province_title" 戦争目標とする州を選択
460none_available_msg_key = "no_valid_provinces"
461column = {
462data = name
}
464column = {
465data = population
}
467column = {
468data = province_our_primary_culture_percentage
}
470column = {
471data = province_tax_base
}
}
475effect = {
476scope:actor = {
477if = {
478limit = {
478exists = scope:target
478exists = scope:target_province
}
479add_casus_belli = {
480target = scope:target
482province = scope:target_province
}
}
485else = {
485custom_tooltip = select_a_country_to_get_casus_belli_on 開戦事由を適用する国家を選び、Player Parliamentに承認を求める。
}
486change_parliament_issue_support = {
}
}
}
493ai_will_do = {
494add = {
495value = 50
}
498if = {
499limit = {
500scope:actor = {
500ai_personality = ai_personality:ai_aggressive
}
}
503add = 250
}
506if = {
507limit = {
508scope:actor = {
508ai_personality = ai_personality:ai_expansionist
}
}
511add = 100
}
514if = {
515limit = {
516NOT = {
517scope:actor = {
518wants_to_attack = scope:target
}
}
}
522add = {
523value = -1000
524desc = "doesnt want CB"
}
}
527else = {
528add = {
529value = 1000
530desc = "we want to attack"
}
}
}
© 2026 Soft Santa Cruz, S.L.U.。無断転載を禁じます。本サイトは非公式のファンプロジェクトであり、Paradox Interactiveとは関係ありません。ゲームコンテンツ © Paradox Interactive。 概要 · プライバシー · 法的情報