首页所有页面

目标模组制作


Objectives are goals a character can select.

There are four categories of objectives, which are determined by their prefix:

Configuration

Name Type Description Example
type string Each objective has a target. The type defines the initial pool of targets for the target. This pool can be narrowed down further in the allow section. The types for ambitions and plots are:
  • 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 (characters in the plotter's realm, plus rivals and relatives of the plotter, parents, children and spouse)
  • independent_rulers
  • rep_trade_posts

Some of these types target characters, others target titles. All ambitions in vanilla use the character scope but it is possible to have ambitions targeting other characters.

type = character
intrigue_plot

military_plot
vassal_rank_plot
vassal_intrigue_plot
murder_plot

bool Each plot must specify who is eligible to join the plot as fellow plotters. Each pool of potential plotters is enabled by setting it with "yes". More than one pool can be enabled. For example, if you have the line "murder_plot = yes" then the courtiers in the same court as the target will be able to join the plot.

These pools are defined by relationships to the target of the plot. If the relationship and the target type of the plot do not match there will not be any plotters in that pool. For example if you have a plot that targets a realm_character the vassal_rank_plot pool will not contain any plotters. This is because the vassal_rank_pool makes plotters eligible based on their relationship to a target title, not to a target character.

intrigue_plot = yes
is_job_ambition bool The objective is about a councillor job. Helps the AI to prioritize. is_job_ambition = yes
potential conditions Only used for plots. It checks the plotter scope, where conditions can be set to let certain characters to use a specific plot.
potential = {
	independent = no
}
target_potential conditions Conditions on the target of a plot.
target_potential = {
	NOT = { any_spouse = { character = FROM } }
}
allow conditions
  • For plots, allow checks the target scope. Conditions in this section will determine which characters are valid targets for the plot. The FROM scope in this context can be used to check the plotter scope.
  • For ambitions, allow checks the plotter scope, just as potential does for plots.
player_allow conditions If false, shows the faction entry for players, but disabled. For plots and factions
allow_join conditions Restricts whether characters can join factions. Faction member scope (ROOT = joiner, FROM = target).
chance AI characters pick ambitions and plots based on the chance value. The greater the chance value, the greater the odds that the AI will pick that particular ambition. Just like ai_chance for event options, modifiers can be used to alter a particular character's chance of picking the objective. Base chance is set by adding "factor = x" in the chance section, where x is the base weight.

AI characters will also not pick objectives below a certain factor at all. This value can be changed in defines.lua, by changing the "OBJECTIVE_DISCARD_WEIGHT_THRESHOLD" variable.

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 The success section is used to set conditions to determine if the character has completed the objective. When all conditions are true in this section, the objective is considered completed.
success = {
	has_job_title = job_chancellor
}
abort conditions When all conditions in the abort section are true, the character is forced to abort the current objective.
abort = {
	OR = {
		trait = charitable
		trait = incapable
	}
}
abort_effect commands When an objective is aborted, either by choice or by forced abort, all of the commands in the abort_effect section are fired.
effect commands When an objective is successfully completed, all of the commands in the effect section are fired.
effect = {
	change_intrigue = 1
}
exclusive bool Can only lead or be in one faction of this type exclusive = yes
expectation_of_liege bool expectation_of_liege = yes
rel_head_loyalist bool Members consider the "real" pope to be the rightful religious head
cancel_on_leader_death bool The faction will not automatically continue under a new leader cancel_on_leader_death = yes
warning_level double At this level of faction power we give player an alert. Set to 0 for no alerts. warning_level = 0.7
ai_capital_kingdom_focus bool AI characters with this ambition will actually focus on taking the kingdom ai_capital_kingdom_focus = yes
membership clause AI membership weight: ROOT is the prospective member. FROM is the faction leader. FROMFROM is the target title or character.
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事件模组制作作用域修正内阁成员模组制作决议模组制作剧本模组制作单位模组制作历史模组制作另类开局模组制作图形模组制作地图外政权模组制作地图模组制作头衔模组制作奇观模组制作宗教模组制作定义宝物模组制作宣战理由模组制作家族模组制作小地图模组制作建筑模组制作指令控制台指令政体模组制作故障排除文化模组制作朝贡国类型模组制作本地化条件模组制作死亡模组制作法律模组制作游戏规则模组制作特质模组制作界面模组制作疾病模组制作盾徽模组制作省份模组制作社团模组制作科技模组制作称号模组制作继承模组制作编辑游戏存档肖像模组制作脚本荣誉头衔模组制作血脉模组制作角色模组制作