版本 Diff 差异对比

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

+62 行新增-56 行移除
历史基准版本Rev #34758
00:13, 28 January 2018‎ Xyloz
Pokewiz2018-01-28 01:29:06
当前最新版本Rev #59358
文本替换 - 替换“[[Category:改派教程”为“[[Category:模组制作”
Pokewiz2019-09-11 08:02:52
Wikitext 语法逐行变动
当前版本新增历史版本移除
{{version|长期有效}}
- '''Ages''' are dynamic periods ingame that activate special rules such as Absolutism and permit the spending of Splendor, gained through objectives, on age-specific modifiers.
+ '''时代'''是游戏中可用于激活特定机制(宗教冲突/专制度)和消耗辉煌点数以获得一些时代能力的一些动态时间段。
- == Ages ==
- The Ages for the game are defined in {{path|common/ages/*.txt}}. You can have as a little as one age, or as many as you can create.
+ == 时代==
+ 时代文件的位置在 {{path|common/ages/*.txt}}。数目不限,可以只有一个,也可以编写很多。
+ 文件格式如下:
- Ages follow this format:
- <pre>
- <age> = {
- # The year when the can_start trigger will begin being checked
+ <age> = { #时代名称
+ #这一年之后,can_start条件开始判定
start = <year>
- # When the Age may begin
+ #时代开始的条件
can_start = {
<triggers>
}
- # Added to enable the Religious Conflict features, i.e. Crusades.
+ #添加以允许宗教冲突
religious_conflicts = yes
- # Added to enable the Absolutism feature.
+ #添加以允许专制度机制
absolutism = {
- # Each entry defines the absolutism gain or loss from the action.
- <entries>
- }
+ #以下条目定义进行某些操作时,专制度的得失
+ <entries>
+ }
- # Objectives ...
+ # 时代目标
objectives = {
<objective> = {
- # When to show the objective
+ # 目标的前置条件,满足才可以见到。
allow = {
<triggers>
}
- # When the objective is met
+ # 目标的达成条件
<trigger>
}
}
- # Abilities ...
+ # 能力
abilities = {
<ability> = {
- # When to show the ability
+ # 能力的前置条件,满足才可以见到。
allow = {
<triggers>
}
- # Effect to execute when ability is taken
+ #定义效果型能力
effect = {
<effect>
}
- # Modifier to grant when ability is taken
+ #定义修正型能力
modifier = {
<modifier>
}
- # Rule ability to grant when ability is taken
+ #定义特殊能力
rule = {
<rule>
}
- # How likely the AI is to take this ability
+ #AI的选择概率
ai_will_do = {
factor = <int>
}
}
}
- }
- </pre>
+ }
- === Absolutism entries ===
- The absolutism scope takes specific commands, with the value representing the amount of Absolutism lost or gained when the action is taken.
+ ===专制度语句===
+ 这一区域定义进行特定操作时,专制度的得失。
<pre>
- harsh_treatment
- stability = <float>
- decrease_autonomy_command = <float>
- strengthen_government = <float>
- increase_autonomy_command = <float>
- debase_currency = <float>
- execute_rebel_acceptance_command = <float>
- seat_in_parliament = <float>
- war_exhaustion = <float>
+ harsh_treatment = <float> #严酷镇压
+ stability = <float> #提升稳定
+ decrease_autonomy_command = <float> #降低自治度
+ strengthen_government = <float> #强化政府
+ increase_autonomy_command = <float> #提高自治度
+ debase_currency = <float> #贬值货币
+ execute_rebel_acceptance_command = <float> #执行叛军的要求
+ seat_in_parliament = <float> #在议会安排席位
+ war_exhaustion = <float> #降低厌战
</pre>
- === Abilities ===
- The following modifiers are unique to Ages, they are used in the <code>rule = { }</code> scope within an ability.
+ === 特殊能力===
+ 这些时代独有的能力应当在时代语句的 <code>rule = { }</code>部分使用。
<pre>
- can_transfer_vassal_wargoal = yes
- can_chain_claim = yes
- can_colony_boost_development = yes
- attack_bonus_in_capital_terrain = yes
- force_march_free = yes
- ignore_coring_distance = yes
+ can_transfer_vassal_wargoal = yes #转让附庸
+ can_chain_claim = yes #宣称临近土地
+ can_colony_boost_development = yes #殖民地建成后提高发展度
+ attack_bonus_in_capital_terrain = yes #首都地形作战加成
+ force_march_free = yes #强行军免费
+ ignore_coring_distance = yes #无视造核距离
</pre>
- == Interface ==
- New ages must be added to <code>ages_view.gui</code> as a new '''WindowType''' within the '''ages_view''' window.
+ == 界面==
+ 新时代必须被添加进 <code>ages_view.gui</code> ,在 '''ages_view''' 窗口内作为一个新的 '''WindowType'''。
- For example:
+ 例如:
<pre>
WindowType = {
- name = \"<age name>\"
+ name = "<age name>"
# ...
}
</pre>
- === Abilites and Objectives ===
- The icons for abilities and objectives must be defined in a '''.gfx''' file. For example:
+ === 能力和目标 ===
+ 能力和目标用的图标必须被定义在一个 '''.gfx''' 文件。例如:
<pre>
spriteType = {
- name = \"GFX_obj_discover_america\"
- texturefile = \"gfx/interface/ages/obj_discover_america.dds\"
+ name = "GFX_obj_discover_america"
+ texturefile = "gfx/interface/ages/obj_discover_america.dds"
}
spriteType = {
- name = \"GFX_ab_allow_feudal_de_jure_law\"
- texturefile = \"gfx/interface/ages/ab_allow_feudal_de_jure_law.dds\"
+ name = "GFX_ab_allow_feudal_de_jure_law"
+ texturefile = "gfx/interface/ages/ab_allow_feudal_de_jure_law.dds"
}
</pre>
- === Topbar ===
- It is important to note that Ages will edit the top-bar background when entering a Golden Age. Without the following '''spriteTypes''', the game will crash when entering a golden age:
+ === 顶栏 ===
+ 一定要注意,当进入黄金时代时,时代会编辑顶栏(Topbar)背景。 没有下列的 '''spriteTypes''',游戏将会在进入黄金时代时崩溃:
<pre>
GFX_topbar_liberty_overlay_golden
GFX_age_frame_addon_golden
GFX_age_button_golden
GFX_topbar_bg_golden
GFX_topbar_portrait_value_bg_golden
</pre>
+
+ == 参考资料 ==
+ <references/>
+ 时代的代码关键字:
+ #{{icon|age_of_discovery}} - <code>age_of_discovery</code>
+ #{{icon|age_of_reformation}} - <code>age_of_reformation</code>
+ #{{icon|age_of_absolutism}} - <code>age_of_absolutism</code>
+ #{{icon|age_of_revolutions}} - <code>age_of_revolutions</code>
+
{{Modding navbox}}
- [[Category:改派教程]]
+ [[Category:模组制作]]
+ [[en:Age modding]]