版本 Diff 差异对比

条目:贸易公司修改 · 对比历史版本与当前版本间的真实 Wikitext 差异

+120 行新增-23 行移除
历史基准版本Rev #27087
23:25, 22 November 2017‎ Gigau
Pokewiz2017-11-23 01:26:28
当前最新版本Rev #59411
文本替换 - 替换“[[Category:改派教程”为“[[Category:模组制作”
Pokewiz2019-09-11 08:04:03
Wikitext 语法逐行变动
当前版本新增历史版本移除
{{version|1.23}}
- This page is an explanation of how to mod a [[trade company]]. The relevant folder is {{path|common/trade_companies}}. In the vanilla game, this folder only contains one file {{path|custom=1|00_trade_companies.txt}}. This is the file that must be edited when modifying existing trade companies, unless the mod replaces the trade companies path (or the entire common path). In that case or if you are adding entirely new trade companies, one or more new file(s) with any name can be created in the trade companies folder.
+ 本页是如何修改 [[贸易公司]] 的说明。相关文件夹是 {{path|common/trade_companies}}。在原版游戏,这个文件夹只包含一个文件 {{path|custom=1|00_trade_companies.txt}}。这就是修改现存贸易公司时必须编辑的文件,除非Mod替换贸易公司目录(或者整个common目录)。在那种情况下或者如果你正在彻底地添加新的贸易公司,一个或多个任意名称的新文件能被创建在贸易公司文件夹。
- == Trade company code ==
+ == 贸易公司代码 ==
{{SVersion|1.23}}
- A trade company is defined on the following model
+ 一个贸易公司以下列模式定义:
trade_company_west_africa = {
color = { 50 0 200 }
provinces = {
1164 1165 1166 1096 1793 2241 1466 1097 1098 1118 1119 1151 1163 2242 1168 1306 4078 4079 4080
1111 1126 1139 1141 2257 2258 1147 2289 2290 2294 1112 1113 1116 2239 1114 1117 2238 1167 1171
1172 1174
}
names = {
- name = \"TRADE_COMPANY_WEST_AFRICA_Root_Culture_GetName\"
+ name = "TRADE_COMPANY_WEST_AFRICA_Root_Culture_GetName"
}
names = {
- name = \"TRADE_COMPANY_WEST_AFRICA_Africa_Trade_Company\"
+ name = "TRADE_COMPANY_WEST_AFRICA_Africa_Trade_Company"
}
}
- === Name ===
- Each trade comany needs a unique name, which begin the entry.
+ === 代码名 ===
+ 每个贸易公司需要一个独特的名字(关键字),以它作为记录的开始。
trade_company_west_africa = {
}
- === Color ===
- The color line determines the charter in Colonial and Trade Regions map mode.
+ === 颜色 ===
+ color这行决定了在殖民和贸易区域(Colonial and Trade Regions)地图模式中的图形。
color = { 50 0 200 }
- === Provinces ===
- The provinces section should include all the provinces you want to see included in that trade company.
+ === 省份 ===
+ 省份段落应该包括你想要包括在那个贸易公司的所有省份。
- A province can only be part of one trade company, or it'll cause a game crash.
+ 一个省份只能作为一个贸易公司的组成部分,否则它会导致游戏崩溃。
- Note that, in Vanilla, trade companies match trade nodes.
+ 要注意,在原版游戏,贸易公司匹配贸易节点。
provinces = {
1164 1165 1166 1096 1793 2241 1466 1097 1098 1118 1119 1151 1163 2242 1168 1306 4078 4079 4080
1111 1126 1139 1141 2257 2258 1147 2289 2290 2294 1112 1113 1116 2239 1114 1117 2238 1167 1171
1172 1174
}
- === Trade Company names ===
- These names work like any other localisation strings, but it is useful to follow existing naming conventions.
+ === 贸易公司名称 ===
+ 这些名字就像任何其他本地化字符串那样工作,但是它对遵循现有的命名规则很有用。
names = {
- name = \"TRADE_COMPANY_WEST_AFRICA_Root_Culture_GetName\"
+ name = "TRADE_COMPANY_WEST_AFRICA_Root_Culture_GetName"
}
- == Localisations ==
- Localisation is handled in the same way as any other localisation string. For example:
+ == 贸易公司设施 ==
+ 代码例如:
+ <pre>
+ local_quarter = {
- trade_company_west_africa:0 \"West Africa Charter\"
- TRADE_COMPANY_WEST_AFRICA_Root_GetName:0 \"[Root.GetAdjective] West Africa Company\"
- TRADE_COMPANY_WEST_AFRICA_Africa_Trade_Company:0 \"West Africa Trade Company\"
+ category = company_garrison
- In the above examples, [Root.GetAdjective] will find the national adjective of the company's overlord (English, British, French etc.) and use that as the first word in the name.
+ sprite = "GFX_investment_local_quarter"
+
+ upgrades_to = permanent_quarters
+
+ cost = 300.0
+
+ company_province_area_modifier = {
+ local_defensiveness = 0.15
+ supply_limit = 0.25
+ }
+
+ ai_global_worth = { factor = 0 }
+ ai_area_worth = { factor = 1 }
+ ai_region_worth = { factor = 0 }
+ }
+ </pre>
+ == 本地化 ==
+ 本地化的处理方式与任何其他本地化字符串相同。例如:
+
+ trade_company_west_africa:0 "West Africa Charter"
+ TRADE_COMPANY_WEST_AFRICA_Root_GetName:0 "[Root.GetAdjective] West Africa Company"
+ TRADE_COMPANY_WEST_AFRICA_Africa_Trade_Company:0 "West Africa Trade Company"
+
+ 在上例中,[Root.GetAdjective] 会找到该公司的宗主国的形容词格(English、British、French等等)并且用作公司名字的第一个单词。
+
+
+ == 参考资料 ==
+ <references/>
+ 贸易公司关键字
+ <pre>
+ trade_company_west_africa = {
+ color = { 50 0 200 }
+ }
+
+ trade_company_south_africa = {
+ color = { 0 175 0 }
+ }
+
+ trade_company_east_africa = {
+ color = { 200 0 0 }
+ }
+
+ trade_company_west_india = {
+ color = { 135 104 85 }
+ }
+
+ trade_company_east_india = {
+ color = { 230 0 0 }
+ }
+
+ trade_company_burma = {
+ color = { 135 150 0 }
+ }
+
+ trade_company_coromandel = {
+ color = { 50 30 210 }
+ }
+
+ trade_company_deccan = {
+ color = { 175 27 217 }
+ }
+
+ trade_company_north_india = {
+ color = { 220 150 10 }
+ }
+
+ trade_company_indonesia = {
+ color = { 0 240 0 }
+ }
+
+ trade_company_philippines = {
+ color = { 0 200 150 }
+ }
+
+ trade_company_moluccas = {
+ color = { 196 191 61 }
+ }
+
+ trade_company_indochina = {
+ color = { 84 152 93 }
+ }
+
+ trade_company_south_china = {
+ color = { 100 230 20 }
+ }
+
+ trade_company_east_china = {
+ color = { 178 34 34 }
+ }
+
+ trade_company_north_china = {
+ color = { 60 60 255 }
+ }
+ </pre>
+ 贸易公司设施关键字
+ * allow trigger is evaluated with scope province set to 1st province in Area, ROOT = Investor Country
+ * Company Garrison
+ #<code>local_quarter</code>
+ #<code>permanent_quarters</code>
+ #<code>officers_mess</code>
+ * Harbor
+ #<code>company_warehouse</code>
+ #<code>company_depot</code>
+ #<code>admiralty</code>
+ * Local Venture
+ #<code>brokers_office</code>
+ #<code>brokers_exchange</code>
+ #<code>property_appraiser</code>
+ * Foreign Influence
+ #<code>settlements</code>
+ #<code>district</code>
+ #<code>townships</code>
+ * Governance
+ #<code>company_administration</code>
+ #<code>military_administration</code>
+ #<code>governor_general_mansion</code>
+
{{Modding navbox}}
- [[Category:Modding]]
+ [[Category:模组制作]]
+ [[en:Trade company modding]]