首页所有页面

宝物模组制作


Artifacts are part of free patch 2.7 and don't actually require Monks and Mystics 扩展包(虽然大多数原版神器都包含在扩展包里)。

它们允许经典角色扮演游戏中宝藏(藏匿)和可装备槽位(背包)的概念。

Artifacts

Variable Type Description Example
quality int quality = 2
flags List<string> Flags that can be checked with has_artifact_flag condition. flags = { chest hermetics very_rare }
active Character conditions 神器被角色使用的条件。参见 is_artifact_active condition.
  • 一个有激活触发但没有所有者的神器永远不会被视为激活
  • 没有激活触发器的工件始终被视为活跃,即使没有被拥有。
  • ROOT is the owner and FROM is the artifact
active = {

  is_adult = yes

}

allowed_gift Character conditions Conditions for the trigger artifact_can_be_gifted_to.
stacking bool 如果没有,个人只能拥有一份这件神器的副本。默认是“是”。 stacking = no
indestructible bool Whether destroy_artifact has any affect. Defaults to "no". indestructible = yes
picture gfx Defines the gfx name, typically GFX_<artifact_name>

2 images are needed:

  • 118x118px for GFX_<artifact_name>
  • 59x59px for GFX_<artifact_name>_small
picture = "GFX_strange_chest"
<modifier> Character modifiers Modifiers given by the artifact when it is equipped.
martial = 2

monthly_character_piety = -2

tech_growth_modifier = 0.05

combat_rating = 2

slot string 配套槽位用于装备神器。新的槽位可以动态添加。 slot = crown

Localization:

  • <artifact_name>: name of the artifact
  • <artifact_name>_desc: description of the arftifact
  • <slot>: name of the equipment slot

Pictures:

  • 图片设置在C:\用户\你的用户名\文档\Paradox Interactive\Crusader 国王II\gfx\interface\inventory\artifacts

模组示例: C:\用户\你的用户名\文档\Paradox Interactive\Crusader《国王II》\mod\《权力的游戏》\gfx\interface\inventory\artifacts

  • GFX代码和图片之间的链接在原版文件接口/domestic_treasury.gfx
  • 你可以在 gfx/interface/inventory /artifacts 中使用 artifact 背景(arti_bg.dds、arti_bg_glow.dds、arti_bg_small.dds 和 arti_bg_glow_small.dds)来制作符合原版 artifact 风格的 artifact

Slots

神器可以装备或卸下。装备的神器数量受动态“槽位”限制:

slots = {

	weapon = 1

	ceremonial_weapon = 1

	scepter = 1

	crown = 1

	wrist = 1

	neck = 1

	torso = 1

	library = 4

}

Artifact spawns

决定游戏开始时神器的生成。

Variable Type Description Example
max_amount int 我们发放多少神器?违约金额为4,294,967,295 max_amount = 1
spawn_date date 它应该宣称创建日期为何?请注意,这可能是未来;生成概率应该在spawn_chance处理。如果使用1.1.1或之前的日期,则会显示“未知日期”。 spawn_date = -1.1.1
spawn_chance MTTH 决定遗物生成是否执行。范围是0-100。默认行为是总是刷新。
# 50% chance to execute an artifact spawn

spawn_chance = {

	value = 50

}

weight MTTH 角色范围,评估潜在的神器持有者分数,然后用来随机分配获得神器的玩家。默认行为是让每个人都有同样的机会。
# Only christians have a chance of getting an artifact

weight = {

	value = 0

	additive_modifier = {

		value = 100

		religion_group = christian

	}

}

artifacts clause List of keys and MTTH for which artifact is spawned.
# 50% chance that the person will get a golden_platypus

artifacts ={

	golden_platypus = {

		value = 1

	}

	crystal_platypus = {

		value = 1

	}

}

Migrate from traits

Here is the equivalence to replace traits into artifacts:

Behavior Trait Artifact
Possession has_trait = xxx has_artifact = xxx
Creation add_trait = xxx add_artifact = xxx
Destruction remove_trait = xxx destroy_artifact = xxx
Transfer
FROM = {

	remove_trait = xxx

}

ROOT = {

	add_trait = xxx

}

random_artifact = {	

	artifact_type = xxx

	transfer_artifact = {

		from = FROM

		to = ROOT

	}

}

Uniqueness xxx = { cached = yes } trait, and xxx = { always = yes } ?

References

相关页面 (59)

ArtifactsConditionsEU4转档器模组制作MTTHModifiersMonks and MysticsPatch 2.7Steam创意工坊事件模组制作作用域修正内阁成员模组制作决议模组制作剧本模组制作单位模组制作历史模组制作另类开局模组制作图形模组制作地图外政权模组制作地图模组制作头衔模组制作奇观模组制作宗教模组制作定义宣战理由模组制作家族模组制作小地图模组制作建筑模组制作指令控制台指令政体模组制作故障排除文化模组制作朝贡国类型模组制作本地化条件模组制作死亡模组制作法律模组制作游戏规则模组制作特质模组制作界面模组制作疾病模组制作目标模组制作盾徽模组制作省份模组制作社团模组制作科技模组制作称号模组制作继承模组制作编辑游戏存档肖像模组制作脚本荣誉头衔模组制作血脉模组制作角色模组制作贸易路线模组制作音乐模组制作验证器