~重复脚本模板(~Repeating Script Templates) mod | 群星
这个mod名为"~重复脚本模板",是为了避免内存限制而禁用了一些我个人不打算使用的功能。如果其他的mod开发者有特定的功能希望我重新启用,请告诉我。
该mod允许在技术、建筑或政策上进行迭代吗?
不幸的是,这是不可能的,但希望这个mod能让你做类似的事情。
该mod包含了一些内联脚本、脚本效果和脚本触发器,用于重复调用任意其他内联脚本、脚本效果和脚本触发器;例如包括"for_each_technology_society"/"foreach/technology/society"和"for_each_policy_category"/"foreach/policy_category";每个脚本提供一系列参数;例如,各种for_each_technology脚本提供参数"tech"、"icon"、"category"、"tier"、"cost"、"rare"、"dangerous"和"background"。
所有参数都始终输入到内联脚本中。然而,对于脚本触发器和效果,大多数参数需要通过输入参数"enable_parameter_<parameter name> = yes"来启用。
为了排除被覆盖的对象,所有与该模块一起使用的脚本也应该使用"not_overwritten_trigger"参数。
要手动更改某些参数的属性,我建议使用set_global_flag和has_global_flag;例如,如果你希望一个效果在统一资源和其他资源上有不同的工作方式,你可以设置全局标志"unity_is_unity",然后检查全局标志"$resource$_is_unity"。
来自其他mod的内容将被省略,除非还使用了与这些mod兼容的模块。目前已经有以下mod的兼容模块:
- Ancient Caches of Technology
- Sins of the Fallen Empires
- Ethics and Civics Bug Branch
- Expanded Espionage
- Gigastructural Engineering
- Guilli's Planetary Modifiers
- Planetary Diversity
- Planetary Diversity: Habitats
- Planetary DIversity: Unique Worlds
- Planetary Wonders
- Stellaris Evolved
- More Events Mod
- Dynamic Political Events
- Plentiful Traditions
- Forgotten Queens
- NSC2
但现在我已经为它编写了一个脚本,生成额外的兼容模块应该很容易;只要提出请求即可。