群星
ParaWikis
最新百科
都市天际线2百科
英雄无敌3百科
维多利亚3百科
奇妙探险队2百科
罪恶帝国百科
英白拉多:罗马百科
热门百科
群星百科
欧陆风云4百科
十字军之王2百科
十字军之王3百科
钢铁雄心4百科
维多利亚2百科
ParaWikis
申请建站
ParaWikis
ParaCommons
最近更改
随机页面
加入QQ群
工具
链入页面
相关更改
特殊页面
页面信息
页面值
阅读
编辑
编辑源代码
查看历史
讨论
编辑“
Empire modding
”(章节)
警告:
您没有登录。如果您做出任意编辑,您的IP地址将会公开可见。如果您
登录
或
创建
一个账户,您的编辑将归属于您的用户名,且将享受其他好处。
反垃圾检查。
不要
加入这个!
== Implementing custom Start Screen introductory text and empire description == In Stellaris, every single empire gets auto-generated introductory text when starting a new game, built from 'text pieces' based on [[ethics]], government, planet class, FTL and few other "characteristic traits" of it. However, there is also an option of creating custom introductory text for a custom empire. If you want to do this, you will need to modify few separate files. === Prescripted_countries.txt === One of the lines in 00_prescripted_countries.txt is mysterious flags = { human_1 custom_start_screen } If you don't want your empire to have unique, custom introduction text, just delete it. Otherwise, leave it in place. Imperial "flag" (in this case human_1) is used to identify the particular empire, so it needs to be the same here and in the next file. === Start_screen_messages.txt === Go to Stellaris->common->start_screen_messages folder, here is the file '''00_start_screen_messages.txt'''. On the bottom of this file there is code allowing custom introductory text to appear instead of a randomly generated one. In case of our example, United Nations of Earth, it is # United Nations of Earth part = { location = 0 localization = "START_SCREEN_UNE" trigger = { has_country_flag = human_1 } } Just copy that code for your custom empire. Location should always be 0. Localization should be exactly the same code as in the localisation files, and has_country_flag has to point at the same "imperial flag" as in prescripted countries.txt has_country_flag = human_1 human_1 custom_start_screen === Localisation === Then you just need to create localisation file which will contain introductory text for your empire. All localisation files need to be in YML format (in Stellaris->localisation you can see how do they look, you may copy one of them and remake it) and their names have to end in l_language (l_english, l_russian etc.) to work. For example, introductory text of United Nations of Earth look like this: START_SCREEN_UNE:0 "Much has happened since modern Humans first emerged in Africa (...)" Just use the same START_SCREEN_CUSTOMEMPIRENAME line here and in Start_screen_messages.txt file. Also, remember about two things. If you want your text to enter new paragraph, use '''\n\n''' as in civilizations took form.\n\nScientific progress has been swift And as for now, be careful not to create too long introductory text, as it will be cut if not fitting inside of the start screen window. Just make it not much longer than exemplary introduction of UNE. Each Stellaris empire also may have a description displaying on a new game screen when browsing through playable empires. In case of United Nations on Earth this description is in localisation->prescripted_l_english.yml: EMPIRE_DESIGN_humans1:0 "United Nations of Earth" EMPIRE_DESIGN_humans1_desc:0 "The myriad Human nations that constitute their interstellar government (...)" You can, of course, do the similar description for your custom empire. Remember about appropriate codename, paragraphs and length (although in case of descriptions, 'too long' ones will display under scrollbar).
摘要:
请注意您对群星百科的所有贡献都被认为是在知识共享署名-非商业性使用-相同方式共享下发布,请查看在
群星百科:版权
的细节。如果您不希望您的文字被任意修改和再散布,请不要提交。
您同时也要向我们保证您所提交的内容是您自己所作,或得自一个不受版权保护或相似自由的来源。
未经许可,请勿提交受版权保护的作品!
为防止机器编辑,请完成下方验证
取消
编辑帮助
(在新窗口中打开)
×
登录
密码
记住登录
加入群星百科
忘记密码?
其他方式登录