Agenda modding

本页面部分全部内容上次核对于3.0版本
Pokewiz讨论 | 贡献2022年3月6日 (日) 23:09的版本 (merge from offical wiki)
(差异) ←上一版本 | 最后版本 (差异) | 下一版本→ (差异)


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 创意工坊模组制作教程