群星
ParaWikis
Notice
: Undefined index: HTTP_ACCEPT_LANGUAGE in
/data/wwwroot/www.parawikis.com/skins/Liberty/LibertyTemplate.php
on line
185
最新百科
都市天际线2百科
英雄无敌3百科
维多利亚3百科
奇妙探险队2百科
罪恶帝国百科
英白拉多:罗马百科
热门百科
群星百科
欧陆风云4百科
十字军之王2百科
十字军之王3百科
钢铁雄心4百科
维多利亚2百科
ParaWikis
申请建站
ParaWikis
ParaCommons
最近更改
随机页面
加入QQ群
工具
链入页面
相关更改
特殊页面
页面信息
页面值
阅读
编辑
编辑源代码
查看历史
讨论
编辑“
Diplomacy modding
”(章节)
警告:
您没有登录。如果您做出任意编辑,您的IP地址将会公开可见。如果您
登录
或
创建
一个账户,您的编辑将归属于您的用户名,且将享受其他好处。
反垃圾检查。
不要
加入这个!
== Federations == Full Federation modding consist of Federation Types, Federation Perks, Federation Law Categories, and Federation Laws. A Federation Type have level entries that refer to Federation Perks, while Federation Law Categories and Federation Laws work like [[Policies_modding|policies and policy options]]. === Federation Types === Federation Types are defined at "common/federation_types/xxx.txt". ==== Data Structure ==== * '''icon''' - A reference to a GFX instance that indicates the icon of this federation type. * '''potential''' - A block of [[Conditions]] that checks if this federation type is visible in federation type selection menu. (Country scope) * '''allow''' - A block of [[Conditions]] that checks if this federation type can be selected. (Country scope) * '''levels''' - A list of level entries. The order in this list is the order of the levels to be activated. ** The key of each level entry is just flavor text. Technically it can be anything. Using just the level_1-5 is recommended since the federation UI is designed for federations of just 5 levels. The first level is always active for the federation for no experience requirement. ** '''experience''' - Experience required from this level to the next level. *** If set to "100 200 300 400", the 5th level actually requires 100+200+300+400 experience to be achieved. ** '''perks''' - A list of Federation Perks to be activated upon activation of this level as well as to be deactivated upon deactivation of this level. * '''on_create''' - A block of [[Effects]] to be executed when this federation is created. * '''ai_weight''' - The higher the weight, the more likely the AI will be happy to form or join a federation of this type, as well as to swich an existing federation into this type. ==== Federation Type Example ==== This is the default federation type. default_federation = { icon = "GFX_default_federation" potential = { always = yes } allow = { custom_tooltip = { fail_text = requires_actor_not_barbaric_despoilers NOT = { has_valid_civic = civic_barbaric_despoilers } } } levels = { level_1 = { # Starting rank experience = @xp_to_level_2 # Experience until next rank perks = { default_federation_passive } } ... } on_create = { remove_federation_flag = enable_federation_cooldowns set_federation_law = centralization_minimal set_federation_law = succession_type_rotation ... } ai_weight = { base = 0 modifier = { desc = federation_acceptance_honorbound_warriors add = -10 from = { has_ai_personality = honorbound_warriors } } ... } } Unlike the '''ai_weight''' block of most other game objects, each '''modifier''' block of federation types do have a '''desc''' localisation key used to display AI acceptance to this federation type. === Federation Perks === Federation Perks are defined at "common/federation_perks/xxx.txt". Unlike other "perks", the federation perks can't be freely picked. They are bound to the federation level entries. ==== Data Structure ==== * '''federation_modifier''' - A block of [[Modifiers]] applies to the Federation scope. * '''members_modifier''' - A block of [[Modifiers]] applies to all members of the federation, including the president. * '''leader_modifier''' - A block of [[Modifiers]] applies to only the federation president. * '''on_activate''' - A block of [[Effects]] executed to the Federation scope when this perk is activated because of level up. * '''on_deactivate''' - A block of [[Effects]] executed to the Federation scope when this perk is deactivated because of level down. Used to cancel the effects of '''on_activate'''. ==== Federation Perk Example ==== This is the passive effect of the research federation. It's activated through level-1 entry. research_federation_passive = { federation_modifier = { description = research_federation_passive_effect federation_research_sharing_mult = 0.25 } on_activate = { set_federation_settings = { research_sharing = yes } } on_deactivate = { set_federation_settings = { research_sharing = no } } } === Federation Law Categories === Federation Law Categories are defined at "common/federation_law_categories/xxx.txt". ==== Data Structure ==== * '''potential''' - A block of [[Conditions]] to determine should this federation law category be displayed in the GUI. * '''laws''' - A list of keys of Federation Laws. * '''centralization''' - (yes/no) The Centralization law category use this. ==== Federation Law Category Example ==== This is the Succession Power federation law category. law_category_succession_power = { potential = { OR = { has_federation_law = succession_type_strongest has_federation_law = succession_type_strongest_hegemony } } laws = { succession_power_economy succession_power_diplomatic_weight succession_power_tech succession_power_fleet } } === Federation Laws === Federation Laws are defined at "common/federation_laws/xxx.txt". ==== Data Structure ==== * '''potential''' - A block of [[Conditions]] to determine should this federation law option be displayed. * '''allow''' - A block of [[Conditions]] to determine can this federation law be voted to activate. * '''modifier''' - A block of [[Modifiers]] applies to the Federation scope. * '''on_enact''' - A block of [[Effects]] executed to the Federation scope when the federation law is changed to this. * '''ai_weight''' - Determines AI acceptance to this federation law option. ==== Federation Law Example ==== This is the Federation Law "Succession Power: Diplomatic Weight". succession_power_diplomatic_weight = { potential = { OR = { has_federation_law = succession_type_strongest has_federation_law = succession_type_strongest_hegemony } } allow = { custom_tooltip = { NOT = { AND = { NOT = { has_federation_law = succession_power_diplomatic_weight } has_modifier = federation_law_category_succession_power_cooldown has_any_federation_law_in_category = law_category_succession_power } } } } on_enact = { set_federation_succession_type = diplomatic_weight if = { limit = { has_federation_flag = enable_federation_cooldowns } add_modifier = { modifier = federation_law_category_succession_power_cooldown days = @cooldown } } add_cohesion = -5 } ai_weight = { base = 26 #Behaviour-specific modifier = { add = 25 federation = { has_federation_type = trade_federation NOT = { federation = { has_federation_law = succession_power_economy } } } } ... } } === 相关的动态修改语句 === Country Conditions * '''is_federation_leader = yes/no''' - Checks if this empire is federation leader. * '''num_envoys_to_federation <=> int''' - Checks the number of envoys this empire assigned to the federation. * '''is_in_federation_with = <country scope>''' - Checks if this empire and the target empire are in the same federation. Country Effects * '''set_federation_leader = yes''' - Makes this empire the federation leader. Federation Conditions * '''federation_experience <=> int''' - Checks the federation experience. * '''federation_cohesion <=> int''' - Checks the federation cohesion. * '''federation_cohesion_growth <=> int''' - Checks the federation cohesion monthly growth. * '''federation_level <=> int''' - Checks the federation level. * '''has_any_federation_law_in_category = <federation law category key>''' - Checks if there is an active federation law under a specific category. * '''has_federation_law = <federation law key>''' - Checks if this federation has a specific law. * '''has_federation_perk = <federation perk key>''' - Checks if this federation has a specific perk. * '''has_federation_type = <federation type key>''' - Checks the federation type. * '''has_federation_setting = <federation setting key>''' - Checks the federation setting. Federation Effects * '''add_federation_experience = int''' - Changes the federation experience. * '''add_cohesion = int''' - Changes the federation cohesion. * '''set_federation_law = <federation law key>''' - Makes the federation law to activate. * '''set_federation_type = <federation type key>''' - Changes the federation type. * '''set_federation_succession_type = strongest/diplomatic_weight/rotation/challenge/random''' - Using this effect outside the federation laws is discouraged. * '''set_federation_succession_term = status_change/years_10/years_20/years_30/years_40''' - Using this effect outside the federation laws is discouraged. * '''set_only_leader_builds_fleets = yes/no''' - Using this effect outside the federation laws is discouraged. * '''set_allow_subjects_to_join = yes/no''' - Using this effect outside the federation laws is discouraged. * '''set_equal_voting_power = yes/no''' - Using this effect outside the federation laws is discouraged. * '''set_free_migration = yes/no''' - Using this effect outside the federation laws is discouraged. * '''set_diplomacy_action_setting''' - Using this effect outside the federation laws is discouraged. set_diplomacy_action_setting = { action = <diplomatic action key that requires federation vote> settings = { vote_type = unanimous_vote/majority_vote/leader } } * '''set_federation_settings''' - Using this effect outside the federation laws is discouraged. set_federation_settings = { research_sharing = yes/no failed_vote_half_price = yes/no }
摘要:
请注意您对群星百科的所有贡献都被认为是在知识共享署名-非商业性使用-相同方式共享下发布,请查看在
群星百科:版权
的细节。如果您不希望您的文字被任意修改和再散布,请不要提交。
您同时也要向我们保证您所提交的内容是您自己所作,或得自一个不受版权保护或相似自由的来源。
未经许可,请勿提交受版权保护的作品!
为防止机器编辑,请完成下方验证
取消
编辑帮助
(在新窗口中打开)
×
登录
密码
记住登录
加入群星百科
忘记密码?
其他方式登录