定义:修订间差异

本页面所适用的版本可能已经过时,最后更新于1.2
无编辑摘要
(08:18, 1 January 2021‎ SolSys)
第19行: 第19行:


===游戏===
===游戏===
{| class="wikitable"
{| class="wikitable" width=100%
|-
|-
! 变量 !! 单位 !! 注释/描述
! width=30% | 变量 !! 单位 !! width=60% | 注释/描述
|-
|-
| END_DATE = "1453.1.1" || || YYYY.M.D 年.月.日
| END_DATE = "1453.1.1" || || YYYY.M.D 年.月.日
第43行: 第43行:
| BENCHMARK_WAYPOINTS ||  || Where the camera should pan during the benchmark.
| BENCHMARK_WAYPOINTS ||  || Where the camera should pan during the benchmark.
|}
|}
===Setup===
{| class="wikitable" width=100%
|-
! width=30% | Variable !! Unit !! width=60% | Notes/description
|-
| COURTLESS_CHARACTER_GUEST_CHANCE = 0.25 || || Chance that a courtless character is sent to a court as a guest instead of a regular courtier on game start.
|-
| GENERATED_POOL_CHARACTERS || || Random range for number of characters per pool (duchy) generated at the start of the game
|-
| GENERATED_POOL_CHARACTER_TEMPLATES || || Templates used for the pool character. Presumably, the trait-based templates are characters skilled in that trait.
|-
| GENERATED_POOL_CHARACTER_TEMPLATE_WEIGHTS || || Influence the chance of each template appearing. Correspond to the template names at the same index.
|-
| DESIRED_NEIGHBOR_POOLS = 4 || || Number of pools each pool should try to border.
|-
| MAX_POOL_NEIGHBOR_DISTANCE = 3 || Example || Maximum number of sea zones away a pool should search for a neighboring pool.
|}
[[Category:模组制作]]
[[Category:模组制作]]
[[en:Defines]]
[[en:Defines]]

2021年1月1日 (五) 17:54的版本

定义Defines)是影响某些非脚本化游戏行为的变量,如军队移动和谋略。

Configuration

游戏本体的定义位于game\common\defines\00_defines.txt

要修改定义,最好不要修改原版文件,而是使用模组。To do so, create a mod, then create a text file in Documents\Paradox Interactive\mod\[mod name]\commond\defines. To change a define, use the following format in the following example, which changes the end date to 1800:

NGame = {
    END_DATE = "1800.1.1"
}

The file only needs to contain the edited defines—ones that are not being changed can be left out.

定义列表

以下是分类列出的不完整定义列表。

游戏

变量 单位 注释/描述
END_DATE = "1453.1.1" YYYY.M.D 年.月.日
GAME_SPEED_TICKS 每级游戏速度下模拟一天的实际秒数(第一个值是最慢速度,最后一个值是最快速度)。
COMBAT_TICK_LIMIT = 1
LAG_DECREASE_SPEED_DAYS = 15 在多人游戏中,将会导致游戏速度降低的玩家端延迟天数。
LAG_PAUSE_DAYS = 30 在多人游戏中,将会导致游戏暂停的玩家端延迟天数。
MULTIPLAYER_EVENT_TIME_OUT = 90 在多人游戏中,一个事件将会持续显示的天数。如果时间已过,游戏将自动选择一个选项。
BENCHMARK_TEST_DURATION = 135 Duration of a benchmark test using the "-benchmark" launch option.
BENCHMARK_INTERFACE_INTERVAL = 5.0 Seconds Time before the benchmark changes the open UI window.
BENCHMARK_OBSERVE_CHARACTER = k_england Title The title of the character who will be observed for the benchmark.
BENCHMARK_WAYPOINTS Where the camera should pan during the benchmark.

Setup

Variable Unit Notes/description
COURTLESS_CHARACTER_GUEST_CHANCE = 0.25 Chance that a courtless character is sent to a court as a guest instead of a regular courtier on game start.
GENERATED_POOL_CHARACTERS Random range for number of characters per pool (duchy) generated at the start of the game
GENERATED_POOL_CHARACTER_TEMPLATES Templates used for the pool character. Presumably, the trait-based templates are characters skilled in that trait.
GENERATED_POOL_CHARACTER_TEMPLATE_WEIGHTS Influence the chance of each template appearing. Correspond to the template names at the same index.
DESIRED_NEIGHBOR_POOLS = 4 Number of pools each pool should try to border.
MAX_POOL_NEIGHBOR_DISTANCE = 3 Example Maximum number of sea zones away a pool should search for a neighboring pool.