版本 Diff 差异对比
条目:事件 · 对比历史版本与当前版本间的真实 Wikitext 差异
+33 行新增-35 行移除
历史基准版本Rev #63437
/* 周期性事件 */
30663007392020-02-29 07:57:59
当前最新版本Rev #104320
/* 基于MTTH的事件 */
幼猫2025-06-14 16:23:16
Wikitext 语法逐行变动
当前版本新增历史版本移除
{{version|长期有效}}
- {{需要翻译}}
- [[File:CometSightedEvent.png|500px|right|The Comet Sighted pulse event]]
-
{{Hatnote|本页面主要讲述事件相关的机制。关于事件的总览,参见[[事件ID]]或[[总事件列表]]。}}
- 在游玩游戏的全过程中经常会发生'''事件'''。事件可以对一个国家造成正面的、负面的或者是双重的效果。它们会以弹出窗口的形式出现在屏幕上,可能会允许玩家在多个选项之间进行选择,或者只是提醒玩家本事件已经发生,并让他们知道其结果。<br>
- <br>
- <br>
- <br>
- <br>
- <br>
- <br>
- <br>
+ 在游玩游戏的全过程中经常会发生'''事件'''。事件可以对一个国家造成正面的、负面的或者是双重的效果。它们会以弹出窗口的形式出现在屏幕上,可能会允许玩家在多个选项之间进行选择,或者只是提醒玩家本事件已经发生,并让他们知道其结果。
+ [[File:CometSightedEvent.png|500px|缩略图|right|扫帚星事件]]
+ {{clear}}
- == 仅触发事件 ==
+ ==仅触发事件==
{{SVersion|Timeless}}
- {{see also|List of event lists}}
- {{expand|with=more detail}}
+ {{see also|总事件列表}}
+ {{expand|with=更多细节}}
这些事件是一个国家所做出的行动的结果的体现。它们的效果可以作用于本国,也可以是他国。需要的触发条件可以简单到点击某一个选项,或者复杂到占领某一个特定的省份。这类事件通常会立刻发生,或者仅仅间隔一小段时间。
- == 周期性事件 ==
- {{SVersion|Timeless}}
- {{expand|with=information on how pulse events work}}
- 周期性事件<ref>脚本文件请见 {{path|common/on_actions/00_on_actions.txt}}.</ref> 是在一定周期内发生的随机事件。
- 它们的主要目的之一是提供互动和游戏中的随机性,虽然事件是必然发生的,但它们仍然基于玩家的行为;
- 比如, 一个 [[Exploration events|探索事件]]要触发,玩家需要在探索过程中拥有一个探索者/征服者。
- 事件根据它们的目的(常规游戏玩法或相关机制)被分组到不同的集合中,并在各自的集合中分配权重。
+ ==周期性事件==
+ {{SVersion|Timeless}}{{see also|on_actions}}
+ {{expand|with=周期性事件的运行原理}}
+ 周期性事件<ref>脚本文件请见 {{path|common/on_actions/00_on_actions.txt}}。</ref> 是在一定周期内发生的随机事件。
+ 它们的主要目的之一是提供互动和游戏中的随机性,虽然事件是''必然''发生的,但它们仍然基于玩家的行为;
+ 比如,一个[[探索事件]]要触发,玩家需要在探索过程中拥有一个探索者/征服者。
+
+ 事件根据它们的目的(常规游戏玩法或相关机制)被分组到不同的集合中,并在各自的集合中分配权重。
每一组都设定了定时发生的程序。周期从每年到五年。
- 需要注意的是,有几个相同年份的间隔并不意味着他们会在同一时间发生;比如,在连续两年中可能有两个5年周期的事件触发。
+ 需要注意的是,有几个相同年份的间隔并不意味着它们会在同一时间发生;比如,在连续两年中可能有两个5年周期的事件触发。
当周期结束,会随机选择集合中一个事件触发。
高权重的事件将比低权重的事件更容易触发。
拥有某些修正、理念组、省份等可以增减某些事件的权重。
- == 基于MTTH(平均发生时间)的事件 ==
+ 在 on_actions 中有不同的周期脉冲,大多都包含一些事件集合。有些周期是年份,有些则是玩家可能反复执行的动作。
+ 如上所述,在每个脉冲触发的时候,会按照权重从其中选择事件,而年数相同的不同脉冲也会分别计算各自要触发的事件。
+ 玩家可能执行的动作触发对应的事件,这很容易理解。进一步的,游戏是如何在每年的某一天触发周期脉冲,还缺乏相关信息。总之,周期脉冲比MTTH要规律一些。
+
+ ==基于MTTH的事件==
{{SVersion|Timeless}}
- [[File:MTTH.png|frame|right|The chance of an event with an MTTH of 365 days firing within x days.]]
- Other events are not triggered but have a chance of happening at any time if their conditions are met. These events are controlled by a mean time to happen (MTTH).
+ [[File:MTTH.png|frame|right|MTTH为365天的事件在x天内发生的可能性]]
+ 在上述两种事件以外的事件不会被触发,但如果满足所需条件则随时有可能发生。这些事件由MTTH(平均发生时间,Mean Time To Happen)控制。
- This mechanic determines the time it takes for an event to trigger, measured in months. Yet since events are probabilistic, there is a small chance an event may happen very quickly, or possibly never at all during the game. For example, if an event had a MTTH of 120 months, it means that usually it would take around a decade for the event to trigger. Certain factors may increase or decrease MTTH for an event, such as country's leader's quality, national stability, and so on.
+ 这个机制决定了事件发生所需的时间,以月为单位。然而,由于事件是概率性的,一个事件有可能立即触发,也有可能在游戏中永不发生。举个例子,如果一个事件的MTTH为120个月,则意味着该事件通常需要10年左右才能触发。某些因素可能会增加或减少一个事件的MTTH,如统治者的属性,国家的稳定度等等。
- Assuming the probabilities are calculated in the same manner as [[forum:304046#post6927706|in EU3]], then despite the name MTTH is actually the [[Wikipedia:Median#Medians of probability distributions|median]] time, or half-life, for the event to trigger, i.e., the amount of time during which there is a 50% chance of the event occurring by that time, rather than the [[Wikipedia:Mean#Mean of a probability distribution|mean]] (average).
+ 假设用与[[forum:304046#post6927706|EU3]]中相同的方式计算概率,那么,尽管名为平均发生时间,MTTH实际上是指事件触发所需时间的[[Wikipedia:Median#Medians of probability distributions|中位数]]或“半衰期”,即事件发生概率达到50%所需的时间,而不是[[Wikipedia:Mean#Mean of a probability distribution|平均值]] 。
- The engine checks whether an event occurs every <tt>EVENT_PROCESS_OFFSET</tt> days, set to 20 at default. The chance per check is
+ 游戏引擎会每 <tt>EVENT_PROCESS_OFFSET</tt> (默认值为20)天检查一次某事件是否发生。每次检查的机率是:
<math>1 - 2^{-t_c / t_{1/2} }</math>
- where <math>t_c</math> is the <tt>EVENT_PROCESS_OFFSET</tt> and <math>t_{1/2}</math> is the median.
+ 此处 <math>t_c</math>为 <tt>EVENT_PROCESS_OFFSET</tt> , <math>t_{1/2}</math>即为“中位数”。
- This approximates the \"ideal\" probability
+ 假设时间为t(天),设a=t/20那么累计概率 P=<math>1 - 2^{-a / t_{1/2}}</math>
+ 这近似于理想概率:
+
<math>1 - 2^{-t / t_{1/2}}</math>
- where <math>t</math> is the amount of time that passes. The approximation is best for a long MTTH.
+ 此处 <math>t</math> 为经过的时间 ,近似值对于较长的MTTH最优.
- The median <math>t_{1/2}</math> and mean <math>\overline{t}</math> are related by
+ 中位数 <math>t_{1/2}</math> 和平均数 <math>\overline{t}</math> 的关系式为:
<math>\overline{t} = \frac{t_{1/2}}{\ln 2} \approx 1.44 t_{1/2}</math>
- In terms of the mean, the ideal probability is:
+ 就平均值而言,理想概率为:
<math>1 - e^{-t / \overline{t}}</math>
- For a repeating event the number of occurrences within a given number of checks is given by a [[Wikipedia:Binomial distribution|binomial distribution]], which may be approximated by a [[Wikipedia:Poisson distribution|Poisson distribution]] for a long MTTH.
+ 对于重复事件,给定检查次数内的发生次数由[[Wikipedia:Binomial distribution|二项式分布]]给出,二项式分布可视为对长MTTH下的[[Wikipedia:Poisson distribution|泊松分布]]的近似。
==另见==
- *[[List of events files]]
+ *[[总事件列表]]
+
[[Category:事件|#]]
[[Category:内政]]
{{realm navbox}}
- [[en:Events]]
+ [[en:Events]]
+ <references />
