版本 Diff 差异对比

条目:政策修改 · 对比历史版本与当前版本间的真实 Wikitext 差异

+148 行新增-16 行移除
历史基准版本Rev #7257
merge from offical wiki
Hstar2017-06-08 02:47:01
当前最新版本Rev #79788
当前线上生效正文
Pokewiz2021-01-21 10:11:57
Wikitext 语法逐行变动
当前版本新增历史版本移除
- {{version|1.19}}
- A policy must contain the following:
- * A unique name
- * monarch_power
- *Conditions for it to show up (in vanilla they're based on idea groups)
- *Conditions for it to be allowed (in vanilla they're based on full idea groups)
- * Effects
- Optionally, you can also include:
- * The AI likelihood of using it
+ {{version|1.25}}
+ 一个政策必须包含下列内容:
+ * 一个独特的名字
+ * 君主点数类型:monarch_power
+ * 显示它所需的条件(在原版游戏它们基于理念组)
+ * 允许它所需的条件(在原版游戏它们基于完成的理念组)
+ * 效果
+ 可选地,你也能包括:
+ * AI使用它的可能性
- The string monarch_power determines from which monarch point type it takes maintenance. For example, writing “ADM” (without the quotation marks) at the end would make it cost one administrative monarch point per month. The policies are found in {{path|common/policies}}.
+ 字符串 monarch_power 决定了它需要哪个君主点数类型维护。例如,在最后写上“ADM”(不带引号)就会让它每月花费一个行政点数。政策能在 {{path|common/policies}} 找到。
- ==Adding a policy==
- {{SVersion|1.19}}
- Conditions for the policy to show in-game go under “potential” while conditions for the policy to be available must be listed under “allow.” The effects go directly under the policy, as demonstrated in this example:
+ ==添加一个政策==
+ {{SVersion|1.25}}
+ 政策在游戏中显示的条件在“potential”下,而政策可用的条件必须在“allow”下列出。如本例子所示,效果直接受政策影响:
custom_policy = {
monarch_power = ADM
potential = {
is_year = 1500
}
allow = {
monthly_income = 100
}
inflation_reduction = 0.1
prestige = 1
ai_will_do = {
factor = 1
}
}
- The policy uses administrative points for maintenance, will not show up before year 1500, and requires at least 100 ducats of monthly income before it can be enacted. It gives 10% inflation reduction and 1.00 yearly prestige. The string “ai_will_do” determines the AI chance of enacting the policy. All vanilla policies use factor = 1 as the base.
+ 该政策使用行政点进行维护,不会在1500年之前出现,并且在颁布之前需要至少100个月收入。 它可以每年减少0.1的通货膨胀和增加1点威望。 字符串“ai_will_do”决定了AI制定的政策的权重。 所有通常策略都使用factor = 1作为基础。
- We can also guide AI in how to use the policy most efficiently by implementing modifiers with their own factors inside ai_will_do. For the final value, all the factors will be multiplied together (so if one 0 modifier is true, the AI will never pick the policy). For example:
+ 我们还可以通过在ai_will_do中实现具有自己权重的修正来指导AI如何最有效地使用政策。 对于最终的权重值,所有权重修正将相乘(因此,如果一个0的权重修正为真,则AI将永远不会选择该政策)。 例如:
custom_policy = {
monarch_power = ADM
potential = {
is_year = 1500
}
allow = {
monthly_income = 100
}
inflation_reduction = 0.1
prestige = 1
ai_will_do = {
factor = 1
modifier = {
factor = 0
NOT = { inflation = 5 }
}
modifier = {
factor = 0
NOT = { gold_income_percentage = 0.15 }
}
modifier = {
factor = 2
gold_income_percentage = 0.5
}
modifier = {
factor = 2
inflation = 15
}
}
}
+
+ == 参考资料 ==
+ <references/>
+ 行政政策关键字
+ {{multiColumn|
+ # <code>the_combination_act</code>
+ # <code>the_court_of_wards_and_liveries</code>
+ # <code>formalized_measures</code>
+ # <code>agricultural_cultivations</code>
+ # <code>the_espionage_act</code>
+ # <code>manueline_architecture</code>
+ # <code>the_royal_commission_act</code>
+ # <code>edict_of_resistance</code>
+ # <code>public_welfare_act</code>
+ # <code>the_spy_discovery_act</code>
+ # <code>enforce_religious_law</code>
+ # <code>the_tolerance_act</code>
+ # <code>vassal_taxation_policy</code>
+ # <code>the_pioneer_policy</code>
+ # <code>land_inheritance_act</code>
+ # <code>the_witchcraft_act</code>
+ # <code>the_education_act</code>
+ # <code>policy_of_calculate_delay</code>
+ # <code>the_loyalty_act</code>
+ # <code>exchange_of_ideas</code>
+ # <code>vassal_obligations_act</code>
+ # <code>foreign_advisors</code>
+ # <code>vassal_integration_act</code>
+ # <code>overseas_dominions</code>
+ # <code>enlightened_aristocracy</code>
+ # <code>the_liberation_act</code>
+ # <code>visionary_thinkers</code>
+ # <code>the_transportation_act</code>
+ # <code>harbour_administration</code>
+ # <code>supply_convoys</code>
+ # <code>cultural_recognition_act</code>
+ # <code>the_licensing_of_the_press_act</code>
+ # <code>the_dissolution_act</code>
+ # <code>the_statute_of_monopolies</code>
+ # <code>taxation_with_representation</code>
+ # <code>cultural_understanding</code>
+ # <code>the_citrus_statute</code>
+ # <code>diplomatic_cooperation_act</code>
+ # <code>the_banking_system</code>
+ # <code>church_sponsored_guilds</code>
+ # <code>anti_heresy_act</code>
+ |4}}
+ 外交政策关键字
+ {{multiColumn|
+ # <code>the_recruiting_act</code>
+ # <code>hold_the_weather_gauge</code>
+ # <code>the_wooden_wall</code>
+ # <code>the_importation_act</code>
+ # <code>colonial_expansions</code>
+ # <code>beneficial_neglect</code>
+ # <code>restrictions_for_colonies</code>
+ # <code>naval_infrastructure_act</code>
+ # <code>new_naval_tactis</code>
+ # <code>trade_connection_policy</code>
+ # <code>naval_secrecy_act</code>
+ # <code>streamlined_galley_production</code>
+ # <code>cloth_quality_edict</code>
+ # <code>production_quota_act</code>
+ # <code>encouragement_of_merchant_navy</code>
+ # <code>commercial_embassies</code>
+ # <code>mandatory_service</code>
+ # <code>professional_diplomatic_corps</code>
+ # <code>colonial_companies_act</code>
+ # <code>protected_shipping_lanes</code>
+ # <code>chaplains_of_the_fleet</code>
+ # <code>multilingual_diplomats</code>
+ # <code>native_assimilation_act</code>
+ # <code>the_foreign_aid_act</code>
+ # <code>cultural_unity</code>
+ # <code>terms_of_surrender_statute</code>
+ # <code>skilled_cartographers</code>
+ # <code>fortified_trading_posts</code>
+ # <code>the_integrated_administration_act</code>
+ # <code>the_cooperation_act</code>
+ # <code>record_keeping_act</code>
+ # <code>colonial_administration_act</code>
+ # <code>naval_school_act</code>
+ # <code>the_foreign_support_act</code>
+ # <code>the_stamp_act</code>
+ # <code>black_chamber_act</code>
+ # <code>diplomatic_defence_act</code>
+ # <code>armed_neutrality_act</code>
+ # <code>the_naval_supremacy_act</code>
+ # <code>letters_of_marque</code>
+ # <code>trained_marines_act</code>
+ |4}}
+ 军事政策关键字
+ {{multiColumn|
+ # <code>privy_council_establishment_act</code>
+ # <code>the_mercenary_registration_act</code>
+ # <code>the_provincial_taxation_system</code>
+ # <code>the_mining_act</code>
+ # <code>the_liquor_act</code>
+ # <code>horse_artillery</code>
+ # <code>public_road_act</code>
+ # <code>superior_supply_system</code>
+ # <code>modern_siege_weapons</code>
+ # <code>superior_fortification_act</code>
+ # <code>modern_firearm_techniques</code>
+ # <code>the_garrison_act</code>
+ # <code>military_zeal_act</code>
+ # <code>field_priests</code>
+ # <code>pen_rely_on_sword_act</code>
+ # <code>local_army_organisation</code>
+ # <code>underhanded_diplomacy_act</code>
+ # <code>hired_adventurers_act</code>
+ # <code>the_tenures_abolition_act</code>
+ # <code>colonial_garrisons</code>
+ # <code>the_maritime_intelligencer_unit</code>
+ # <code>the_nautic_education_act</code>
+ # <code>zealous_captains</code>
+ # <code>autonomous_estates</code>
+ # <code>inspirational_leaders</code>
+ # <code>the_naval_inspection_act</code>
+ # <code>the_preparation_act</code>
+ # <code>local_militias</code>
+ # <code>foreign_conscription_centers</code>
+ # <code>guerilla_warfare</code>
+ # <code>weapon_quality_standards</code>
+ # <code>noble_loyalty_act</code>
+ # <code>the_colonial_nobility_act</code>
+ # <code>nobles_in_navy_act</code>
+ # <code>military_allotment_act</code>
+ # <code>unified_army_command</code>
+ # <code>trade_kontor_network</code>
+ # <code>deserteur_act</code>
+ |4}}
+
{{Modding navbox}}
- [[Category:Modding]]
+ [[Category:模组制作]]
+ [[en:Policy modding]]