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 [Template fetch failed for https://www.parawikis.com/wiki/Template:Color?action=raw: HTTP 0].
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. [Template fetch failed for https://www.parawikis.com/wiki/Template:Color?action=raw: HTTP 0]
There is a Condition to check the Mandate: has_mandate = <mandate key>, but [Template fetch failed for https://www.parawikis.com/wiki/Template:Color?action=raw: HTTP 0]
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 }
}
}
}