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 創意工坊模組製作教程