Mandate modding

本页面部分全部内容上次核对于2.6版本


This page is about modding Mandates.

They are defined at "common/mandates/xxx.txt".

Data Structure[编辑 | 编辑源代码]

  • valid - A block of Conditions to check if a Leader can have this Mandate. (Leader scope)
  • parameters - Actual functionality is unclear.
  • on_term_started - A block of Effects to be executed when the term of a Leader of this Mandate is started. (Leader scope)
  • on_term_ended - A block of Effects to be executed when the term of a Leader of this Mandate is ended. (Leader scope)

Whenever a leader becomes the ruler or a candidate of an Empire with an Authority that has use_mandates = yes, a random Mandate is selected for the leader. It will change the Mandate next time it become a candidate again.

All other mechanics were implemented through Special Projects and Events. See Special Project modding and Event modding for details.

Unlike Agendas, the Mandates don't have some sort of weight. All capable Mandates will appear in an equal chance.

In-game texts claim that a leader failed to fulfill its Mandate will become less likely to win the next election, but this has never been implemented since Stellaris v1.0 and until now.

All the principles the voters will follow is that they will vote for the candidates in the same faction as them or how many times was the candidate supported by the player. There is no way to modify how likely a Pop will support a candidate.

There is a Condition to check the Mandate: has_mandate = <mandate key>, but there are no Effects to change the Mandate.

Examples[编辑 | 编辑源代码]

Urbanizer[编辑 | 编辑源代码]

mandate_district_city = {
	valid = {
		exists = owner
		owner = {
			NOT = { has_origin = origin_void_dwellers }
			any_owned_planet = {
				free_district_slots >= 2
			}
		}
	}
	parameters = {}

	on_term_started = {
		owner = {
			begin_event_chain = {
				event_chain = "mandate_district_city_chain"
				target = this
			}
		}
	}

	on_term_ended = {
		owner = {
			if = { limit = { is_ai = no } 	log = "mandate_districts_city end_of_term fired for player" }
			if = { limit = { is_ai = yes } 	log = "mandate_districts_city end_of_term fired for AI" }
			country_event = { id = mandate.185 }
		}
	}
}
帝国 帝国思潮政府 • 国民理念 • 起源承诺议程传统 • 飞升天赋法令政策遗珍科技自定义帝国
人口 岗位派系
领袖 领袖领袖特质
物种 物种物种特质
行星 行星行星特征 • 轨道矿藏建筑 • 区划行星决议
星系 星系恒星基地巨型结构虫洞 • 星门地图
舰队 舰队舰船 • 部件
地面战 陆军轰炸姿态
外交 外交 • 联邦 • 星海共同体评价修正宣战理由 • 战争目标
事件 事件异常现象特殊项目考古遗址
游玩 游玩定义研究 • 经济游戏开局
动态修改 动态指令效果触发条件作用域修正变量AI
媒体/本地化 Maya 导出器图形肖像旗帜事件图片界面图标音乐本地化
Other 控制台命令存档编辑Steam 创意工坊模组制作教程