Agenda modding

本頁面部分全部內容上次核對於3.0版本


This page is about modding Agendas.

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

Data Structure[編輯 | 編輯原始碼]

  • weight_modifier - Modifies how likely should a leader have this Agenda.
  • modifier - A block of Modifiers to be applied to the Empire for as long as this leader remain on the ruler's seat.

Whenever a leader becomes the ruler or a candidate of an Empire with an Authority that has has_agenda = yes, if the leader doesn't have an Agenda, a random Agenda is chosen for the leader and they will preserve the Agenda for their lifetime and will never change to another.

Unlike Mandates, the Agendas don't have some sort of on_term_started. All an Agenda can be relevant to the game is its Modifiers.

There are neither Conditions to check the Agenda nor Effects to change the Agenda.

(However, it is still possible for modders to nearly ensure that a desired custom agenda is selected, as shown in the second example below.)

Example of Default Agenda[編輯 | 編輯原始碼]

Science Leap[編輯 | 編輯原始碼]

agenda_science = {
	weight_modifier = {
		weight = 100
		modifier = {
			factor = 1.5
				from = {
					has_ethic = ethic_materialist
				}
			}
		modifier = {
			factor = 2
				from = {
					has_ethic = ethic_fanatic_materialist
				}
			}
		modifier = {
			factor = 1.5
			leader_class = scientist
		}
	}
	
	modifier = {
		all_technology_research_speed = 0.10
	}
}

Example of Modded, Near-Guaranteed Agenda[編輯 | 編輯原始碼]

Modded Agenda[編輯 | 編輯原始碼]

agenda_modded_agenda = {
	weight_modifier = {
		weight = 100000000      #Such a high weight means this agenda will almost certainly be selected, unless ruled out by the modifier below.
		modifier = {
			factor = 0.0        #This modifier section will reduce the chance of getting this agenda to zero.
			from = {
				NOT = {
    					has_civic = civic_custom_civic     #Thus, any empire that does not have this civic has zero chance of getting this agenda, while any empire with this civic probably will.
				}
			}
		}
	}

	modifier = {
		all_technology_research_speed = 0.05
		pop_happiness = 0.05
		species_leader_exp_gain = 0.10
	}
}

In this latter example, each new leader (including the leader at game start) is very likely to be assigned this agenda, for as long as the empire retains the key custom civic.


帝國 帝國思潮政府 • 國民理念 • 起源承諾議程傳統 • 飛升天賦法令政策遺珍科技自定義帝國
人口 崗位派系
領袖 領袖領袖特質
物種 物種物種特質
行星 行星行星特徵 • 軌道礦藏建築 • 區劃行星決議
星系 星系恆星基地巨型結構蟲洞 • 星門地圖
艦隊 艦隊艦船 • 部件
地面戰 陸軍轟炸姿態
外交 外交 • 聯邦 • 星海共同體評價修正宣戰理由 • 戰爭目標
事件 事件異常現象特殊項目考古遺址
遊玩 遊玩定義研究 • 經濟遊戲開局
動態修改 動態指令效果觸發條件作用域修正變量AI
媒體/本地化 Maya 導出器圖形肖像旗幟事件圖片界面圖標音樂本地化
Other 控制台命令存檔編輯Steam 創意工坊模組製作教程