群星
ParaWikis
最新百科
都市天际线2百科
英雄无敌3百科
维多利亚3百科
奇妙探险队2百科
罪恶帝国百科
英白拉多:罗马百科
热门百科
群星百科
欧陆风云4百科
十字军之王2百科
十字军之王3百科
钢铁雄心4百科
维多利亚2百科
ParaWikis
申请建站
ParaWikis
ParaCommons
最近更改
随机页面
加入QQ群
工具
链入页面
相关更改
特殊页面
页面信息
页面值
阅读
编辑
编辑源代码
查看历史
讨论
编辑“
Starbase modding
”(章节)
警告:
您没有登录。如果您做出任意编辑,您的IP地址将会公开可见。如果您
登录
或
创建
一个账户,您的编辑将归属于您的用户名,且将享受其他好处。
反垃圾检查。
不要
加入这个!
=== Starbase Types === Starbase Types is an abstract concept that classifies Starbases based on the modules they have. To the players, the Starbase Types serve no more than flavor texts. To the AI, the Starbase Types is a Starbase auto build guide. Starbase Type entries are defined at "common/starbase_types/xxx.txt". ==== Data Structure ==== * '''potential''' - A block of [[Conditions]] that determines can a Starbase be classified into this Type. (Starbase scope) * '''weight_modifier''' - If a Starbase has met the requirements of multiple Starbase Types, one with the highest weight wins. ** '''base = <int>''' - The base weight. ** '''modifier''' - An entry of weight modifier. Multiple allowed. It consist of [[Conditions]] checked under the Starbase scope and a field '''add = <int>''' that determines how much weight is added. * '''ai_design''' - An entry that guides the AI to design and build their Starbases. ** '''min''' - An entry that determines the minimal count of Starbases of this type the AI wants to have. *** '''base = <int>''' - The Starbase Type "Shipyard" has 1. *** '''factor = <int>''' - The Starbase Type "Shipyard" has 1. Actual effect is unclear. ** '''ratio''' - An entry that makes the AI wants a percent of Starbases to be of this type. *** '''base = <float>''' - The base percentage. *** '''modifier''' - An entry of percentage modifier. Multiple allowed. It consist of [[Conditions]] checked under the Starbase scope and a field '''add = <float>''' that determines how much percentage is added. ** '''buildings''' - A list of '''<starbase building key> = { base = <float> }''' entries that guides the AI to pick starbase buildings weighted by the factors provided here. ** '''modules''' - A list of '''<starbase module key> = { base = <float> }''' entries that guides the AI to pick starbase modules weighted by the factors provided here. ==== Starbase Type Example ==== This is the Starbase Type "Shipyard". sshipyard = { potential = { has_starbase_size > starbase_outpost count_starbase_modules = { type = shipyard count > 0 } } weight_modifier = { base = 100 modifier = { add = 100 count_starbase_modules = { type = shipyard count > 1 } } modifier = { add = 100 count_starbase_modules = { type = shipyard count > 2 } } ... } ai_design = { min = { base = 1 factor = 1 } ratio = { base = 0.25 modifier = { add = 0.10 exists = owner owner = { has_ethic = ethic_militarist } } modifier = { add = 0.05 exists = owner owner = { has_ethic = ethic_fanatic_militarist } } } # token followed by priority buildings = { crew_quarters = { base = 1.00 } fleet_academy = { base = 0.25 } naval_logistics_office = { base = 0.05 } titan_yards = { base = 0.01 } colossus_yards = { base = 0.01 } } modules = { shipyard = { base = 1.00 } anchorage = { base = 0.50 } hangar_bay = { base = 0.45 } } } }
摘要:
请注意您对群星百科的所有贡献都被认为是在知识共享署名-非商业性使用-相同方式共享下发布,请查看在
群星百科:版权
的细节。如果您不希望您的文字被任意修改和再散布,请不要提交。
您同时也要向我们保证您所提交的内容是您自己所作,或得自一个不受版权保护或相似自由的来源。
未经许可,请勿提交受版权保护的作品!
为防止机器编辑,请完成下方验证
取消
编辑帮助
(在新窗口中打开)
×
登录
密码
记住登录
加入群星百科
忘记密码?
其他方式登录