common里面的多数内容可以用@xxxxx来定义常量,如@one=1,那么在给下面的变量赋值时可以使用@one来代替1。好处是如果1这个值用很多次,而想要修改时只要改一次就可以了。比如改成@one=2,那么所有值都变了2,不用一个一个去改了。localisation里面的yml文件可以定义一个字段的说明文字,然后使用诸如$xxxx_xxxx_xxx$来引用它,方便翻译过来的文本重复使用。
AND={
has_ethic = ethic_collectivist
has_ethic = ethic_fanatic_collectivist
}
| 文件夹 | 名称 | 说明 | 例子 |
|---|---|---|---|
| defines | 游戏全局参数定义lua | Increased Leader Skill Cap, Better Sector Mod, Beautiful Battles | |
| static_modifiers | 静态全局参数 | Extended Traits | |
| name_lists | 种族名单 | Playable Robots | |
| buildable_pops | 可建造的居民 | Playable Robots | |
| buildings | 星球建筑 | ||
| country_types | 国家类型 | ||
| edicts | 法令 | 政府-政策菜单下半部分的选项及效果,各种国家参数调整 | 各种作弊MOD |
| traits | 特征 | 领导特性设置 | Playable Robots, Extended Traits |
| technology | 科技 | More Spaceport Modules, More Technologies | |
| global_ship_designs | 全球舰船设计 | 非玩家的舰船模板 | |
| ship_sizes | 舰船大小 | 决定船的类型、框架、速度、血量等等数据 | Beautiful Battles, Ship Improvements |
| section_templates | 舰船分区设计 | 舰船设计页面顶端的“核心” | |
| sector_types | Sector的类型 | ||
| component_flags | 舰船模块AI标签 | AI设计舰船倾向的标签,进攻/防御向性格设计 | |
| component_sets | 舰船模块图片 | 图片的定义文件 | |
| component_tags | 舰船模块分类 | ||
| component_templates | 舰船模块属性 | Beautiful Battles | |
| armies | 地面军队 | ||
| army_attachments | 地面军队零件 | ||
| spaceport_modules | 太空站模块 | More Spaceport Modules |
| 文件夹 | 名称 | 说明 | 例子 |
|---|---|---|---|
| agendas | 议程 | 寡头政治型政府候选人参数 | |
| ambient_objects | 零碎物件 | ||
| anomalies | 异常 | 异常事件 | |
| attitudes | 外交态度 | ||
| colors | 颜色 | 定义政府、海盗、帝国等颜色 | |
| deposits | 存款 | 未知作用 | |
| diplo_phrases | 外交用语 | 控制外交时候显示哪句话 | |
| diplomatic_actions | 外交命令 | 外交命令按钮 | |
| ethic | 伦理 | ||
| event_chains | 事件链 | ||
| fallen_empires | 失落帝国 | ||
| game_rules | 国家规则 | 政府-政策菜单上半部分的效果? | Playable Robots |
| governments | 政府 | 政府形态选举周期等等 | |
| graphical_culture | 文化的图形标志 | ||
| mandates | 要求 | 帝国-派系菜单的内容相关 | |
| observation_station_missions | 观测站的行为 | 观测站的社会研究点数获得/消耗调整等 | |
| on_actions | 触发事件索引 | Playable Robots | |
| opinion_modifiers | 外交调整参数 | 有关外交关系亲和度的参数设定 | |
| personalities | 个性 | AI的性格参数,好战好和平的倾向等 | |
| planet_classes | 行星类型 | 生成行星的参数 | |
| planet_modifiers | 行星地块参数 | 生成行星地块的参数 | |
| policies | 政策 | 政府-政策菜单上半部分的选项 | Playable Robots |
| pop_faction_types | 人民派系 | ||
| precursor_civilizations | |||
| random_names | 随机命名表 | Galaxies Unlimited | |
| scripted_effects | |||
| scripted_triggers | |||
| ship_behaviors | 舰船行为 | 进攻或防御行为参数,有母舰飞机(H)的行为 | Beautiful Battles |
| solar_system_initializers | 星系初始化 | 创建星系的参数 | Ringworld Start |
| special_projects | 特殊研究 | ||
| species_classes | 种族类型 | Playable Robots | |
| species_names | 种族名称 | Playable Robots | |
| star_classes | 星系类型 | 星系有个ABCDEF,似乎跟这个有关,影响行星类型生成 | |
| start_screen_messages | 开始屏幕信息 | ||
| strategic_resources | 资源 | 部分资源相关设置,包括基础资源、战略资源等 | |
| subjects | |||
| terraform | 改变地形 | 设置改变地形的选项及需求 | |
| tile_blockers | 地块障碍 | 清除障碍需要的 | |
| triggered_modifiers | 触发参数调整 | 动态经济政策的参数 | |
| war_demand_counters | |||
| war_demand_types |
| 文件夹 | 名称 | 内容 | 工坊例子MOD |
|---|---|---|---|
| dlc | DLC | ||
| events | 事件 | Playable Robots, Extended Traits | |
| flags | 旗帜 | 各种旗子的设计 | Expanded Colours 120, Flags : Emblems & Backgrounds |
| fonts | 字体 | 似乎没用 | |
| gfx | 贴图 | 多个mod都会用到,字库在此,dds | Animaris - Anime Conversion, Chinese Font, Beautiful Battles |
| interface | 界面 | 界面的设置 | Increased Research Window Size |
| locales | |||
| localisation | 文本 | 变量的文本,汉化会用到 | 3DM Chinese Localization |
| map | 地图 | Galaxies Unlimited | |
| music | 音乐 | 背景音乐 | |
| pdx_launcher | 启动器 | 启动器的界面设置及文本 | |
| pdx_online_assets | 在线模式 | ||
| prescripted_countries | 预设国家 | 游戏自带国家模板 | |
| previewer_assets | |||
| sound | 声音 | 单位的相应声音,战斗声音 | |
| soundtrack | 音轨 | 这个应该是dlc的原声音轨,与游戏无关 | |
| tweakergui_assets | |||
| wallpaper | 墙纸 |
Slvrbuu's Stellaris Cheat Menu 有关事件event的定义和触发。