首页所有页面

目标模组制作


Objectives are goals a character can select.

目标分为四类,由其前缀决定:

Configuration

Name Type Description Example
type string 每个目标都有一个目标。类型定义了目标的初始目标池。该泳池可在许可区进一步缩小范围。野心和阴谋的类型包括:
  • character (the plotter)
  • spouse (the plotter's spouse)
  • rivals (the plotter's rivals)
  • friends (the plotter's friends)
  • liege_titles (the plotter's liege's titles)
  • liege_titles_w_claimant (the plotter's liege's titles for a claimant)
  • vassal_titles (the plotter's vassals' titles)
  • realm_titles (titles in the plotter's realm)
  • realm_characters (characters in the plotter's realm)
  • realm_characters_plus(策划者领域内的角色,以及策划者的竞争对手和亲属、父母、子女和配偶)
  • independent_rulers
  • rep_trade_posts

有些类型针对角色,有些则针对标题。原版中的所有野心都使用角色范围,但也可以有针对其他角色的野心。

type = character
intrigue_plot

military_plot
vassal_rank_plot
vassal_intrigue_plot
murder_plot

bool 每个地块必须指定谁有资格作为同伴参与。每个潜在绘图仪池的启用都是通过将其设置为“是”来实现的。可以启用多个池。例如,如果你有“murder_plot = yes”这句话,那么与目标同院的朝臣们就可以加入剧情。

这些池由与图目标的关系定义。如果关系与目标类型不匹配,该池中将不存在任何绘图者。例如,如果你有一个针对realm_character的图,vassal_rank_plot池中不会包含任何图器。这是因为vassal_rank_pool根据与目标标题的关系来让策划者有资格,而不是与目标角色的关系。

intrigue_plot = yes
is_job_ambition bool 目标是关于一个议员职位。这有助于AI优先排序。 is_job_ambition = yes
potential conditions 只用于剧情。它检查绘图仪的示波器,其中 conditions 可以设置为让特定角色使用特定的剧情。
potential = {

	independent = no

}
target_potential conditions Conditions on the target of a plot.
target_potential = {

	NOT = { any_spouse = { character = FROM } }

}
allow conditions
  • 对于图,允许检查目标范围。本节的条件将决定哪些角色是剧情的有效目标。在此语境下,FROM示波器可用于检查绘图仪示波器。
  • 对于野心,允许检查绘图仪的范围,就像潜能对绘图仪进行检查一样。
player_allow conditions 如果错误,则显示玩家的派系条目,但被禁用。关于剧情和派系
allow_join conditions 限制角色是否能加入阵营。派系成员范围(ROOT = joiner,FROM = 目标)。
chance AI角色根据概率值选择野心和阴谋。概率越高,AI选择该目标的可能性也越大。就像ai_chance event 选项和修饰符可以用来改变特定角色选择目标的概率。基础概率通过在概率部分添加“因子=x”来设定,其中x为基础权重。

AI角色也不会选择低于某个因素的目标。该值可在 defines.lua 中更改,方法是更改“OBJECTIVE_DISCARD_WEIGHT_THRESHOLD”变量。

chance = {

	factor = 100

	modifier = {

		factor = 1.25

		trait = patient

	}

}
creation_effect commands
  • For plots, commands occur when the plot is activated.
  • For ambitions, the commands are fired upon ambition selection.
success conditions 成功部分用于设定条件,以判断角色是否完成了目标。当本节所有条件成立时,目标即告完成。
success = {

	has_job_title = job_chancellor

}
abort conditions 当中止部分的所有条件都为真时,角色必须中止当前目标。
abort = {

	OR = {

		trait = charitable

		trait = incapable

	}

}
abort_effect commands 当目标被中止时,无论是自愿还是被迫中止,abort_effect部分中的所有指令都会被触发。
effect commands 当目标成功完成时,效果部分的所有指令都会被触发。
effect = {

	change_intrigue = 1

}
exclusive bool 只能领导或参与此类派系 exclusive = yes
expectation_of_liege bool expectation_of_liege = yes
rel_head_loyalist bool 成员们认为“真正的”教皇才是合法的宗教领袖
cancel_on_leader_death bool 派系不会在新领导人手下自动延续 cancel_on_leader_death = yes
warning_level double 在这个派系实力水平下,我们会给玩家一个警报。设置为0以表示无警报。 warning_level = 0.7
ai_capital_kingdom_focus bool 有这种野心的AI角色实际上会专注于夺取王国 ai_capital_kingdom_focus = yes
membership clause AI会员权重:ROOT是潜在成员。FROM是派系领袖。FROMFROM是目标标题或角色。
can_cancel bool Ambition cannot be cancelled. can_cancel = no
<modifier_name> modifiers Modifiers while the objective is active.
potential_traits List<traits> Traits that can be gained via this focus
potential_traits = {

	haughty

	brooding

}

good_traits List<traits> Traits that positively influence the focus
good_traits = {

  affectionate

  curious



}

bad_traits List<traits> Traits that negatively influence the focus
bad_traits = {

  willful

  fussy

}

相关页面 (63)

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