Fires a state event.
Example:
state_event = {
id = usa.61 # The event to fire.
# Optional Fields:
hours = 12 # The number of hours to wait before firing the event.
days = 5 # The number of days to wait before firing the event.
months = 1 # The number of months to wait before firing the event, where a month is treated as 30 days.
# Note: hours, days, and months can all be used and will simply be added together.
random_hours = 18 # A random amount of hours to be added to the delay before firing, from 0 up to but not including random_hours.
random_days = 2 # A random amount of days to be added to the delay before firing, from 0 up to but one hour less than random_days.
# Note: random_hours and random_days can both be used and will simply be added together.
random = 6 # Equivalent to random_hours; preserverd for backwards compatibility.
random = { chance = 50 ... } # Specify a set of child effects to execute as part of this effect, with a percentage chance of randomly happening or not (as a group, not individually).
tooltip = usa.61.t # Manually specify which tooltip to use for this effect.
trigger_for = GER # Indicate which country this state effect applies to. Value can be any of the following:
# controller - The country that currently controls the state.
# owner - The country that currently owns the state.
# occupied - The country that has been occupied in the state by the current controller.
# from - The country of the from scope.
# prev - The country of the prev scope.
# root - The country of the root scope.
# TAG - A hard-coded country tag such as GER or ENG.
}
实战 · 配合 · 坑
实战内容由 AI 生成,并已对照 vanilla 命令词表校验 —— 请当作起点而非权威依据。上方的定义节才是游戏自带文档原文。
实战用法
state_event 常用于需要将事件逻辑绑定到特定州省而非国家的场景,例如占领事件、资源争夺、地区起义等,在 STATE scope 下触发时可精准控制事件归属地。trigger_for 字段使其在多国共享同一州省的情况下(如驻军国与所有者不同)仍能将事件推送给正确的一方,非常适合占领与抵抗系统相关的 mod。