王国风云2
ParaWikis
最新百科
都市天际线2百科
英雄无敌3百科
维多利亚3百科
奇妙探险队2百科
罪恶帝国百科
英白拉多:罗马百科
热门百科
群星百科
欧陆风云4百科
十字军之王2百科
十字军之王3百科
钢铁雄心4百科
维多利亚2百科
ParaWikis
申请建站
ParaWikis
ParaCommons
最近更改
随机页面
加入QQ群
工具
链入页面
相关更改
特殊页面
页面信息
页面值
帮助
译名手册
字词转换
编辑指南
编辑规范
练手沙盒
资助我们
ParaTranz
资助我们
×
欢迎访问王国风云2百科!
注册一个账号
,一起参与编写吧!这里是
当前的工程
。
全站已采用新UI,任何使用上的问题请点击
这里
。欢迎所有对百科感兴趣的同学加入QQ群:
497888338
。
阅读
查看源代码
查看历史
讨论
查看“贸易路线模组制作”的源代码
←
贸易路线模组制作
因为以下原因,您没有权限编辑本页:
您请求的操作仅限属于该用户组的用户执行:
用户
您可以查看和复制此页面的源代码。
Provinces along a [[trade route]] benefit from bonuses to local tax income, movement speed, and technology spread. Certain provinces along a trade route can also construct [[trade posts]], which provide trade income to the owner of the province. The course of a trade route is defined in the <code>/common/trade_routes/</code> folder. ==Creating a Basic Trade Route== A trade route's bonuses, source, course, and major stops must be defined by a .txt file in the <code>/common/trade_routes/</code> folder. As an example:<pre> trier_tree_trade = { wealth = 100 # Multiplier for other modifiers. Modifiers calculated as (Wealth * modifier)/# of trade provinces. trade_post_display_trigger = {# Determines which provinces will have the Potential Trade Post tool-tip. OR = { province_id = 127 #Lorraine province_id = 118 #Trier } } modifier = { # Modifiers applied to each province on a trade route. castle_tax_modifier = 0.01 # Percentage multiplier applied to tax income for castle holdings in a province city_tax_modifier = 0.01 # Percentage multiplier applied to tax income for city holdings in a province. temple_tax_modifier = 0.01 # Percentage multiplier applied to tax income for temple holdings in a province. tribal_tax_modifier = 0.01 # Percentage multiplier applied to tax income for tribal holdings in a province. trade_route_value = 2.5 # Modifier used to determine base trade route income for a trade post on a province. local_movement_speed = 0.025 # Percentage multiplier applied to movement speed of troops through a province. tech_growth_modifier = 0.025 # Percentage multiplier for technology spread between provinces. icon = 4 # Sets the icon displayed for the province modifier, in this case the Stewardship icon. } start = { # Starting province for the trade route. Trade flows from this province to all other provinces connected downstream. 127 # Lorraine } path = { # Creates a connection between either a starting province or an already defined end province of a previous path. 127 128 118 # Lorraine - Metz - Trier } } </pre>The end result of this code, the Trier tree trade, is a trade route that starts in Lorraine, passes through Metz, and ends in Trier, and that grants a 33.3% bonus to local income, a 83.3% bonus to local movement speed and technology spread, and a base income of 83.3 for any trade posts built along the trade route. Now that the Trier tree trade has been defined, localization can be added to change the name of the province modifier. Creating a .csv file under <code>/localisation/</code> will add a localization for the trade route:<pre> trier_tree_trade;Trier Tree Trade;;;;;;;;;;;;;x </pre>Finally, a scripted trigger is required to allow the construction of trade posts on Potential Trade Post counties. Creating a .txt file under <code>/common/scripted_triggers/</code>, and add a trade route post trigger:<pre> trade_route_post_trigger = { custom_tooltip = { text = trade_route_province_desc hidden_tooltip = { OR = { province_id = 127 # Lorraine province_id = 118 # Trier } } } } </pre>The Trier tree trade is now complete - its province modifiers apply, trade posts can be built in Lorraine and Trier, and its name is now properly localized to display in-game. ==Trade Route Pathing== A path connects either a starting province or previously defined end province to a new end province. These provinces do not need to be adjacent. Both <code>path = { 127 128 118}</code> and <code>path = { 127 118}</code> are valid. A path cannot connect a province defined in an existing path that was ''not'' the end province of that path. As an example:<pre> path = { 127 128 118 } # Lorraine - Metz - Trier path = { 128 123 } # Metz - Mainz </pre>The second path between Metz and Mainz is invalid. In order to create a valid path between Metz and Mainz, Metz must be the end province of an existing path:<pre> path = { 127 128} # Lorraine - Metz path = { 128 118} # Metz - Trier path = { 128 123} # Metz - Mainz </pre>Provinces in a path can also be non-county provinces, such as major rivers and sea tiles. The same pathing rules apply for these provinces as well as counties. IDs for these non-county provinces can be found in <code>/map/definition.csv</code> As an example, adding a path for Rhine river trade from Trier to Holland:<pre> path = { 127 128} # Lorraine - Metz path = { 128 118} # Metz - Trier path = { 128 123} # Metz - Mainz path = { 118 1045 1043 1044 80 } # Trier - Rhine River - Holland </pre>
返回
贸易路线模组制作
。
×
登录
密码
记住登录
加入王国风云2百科
忘记密码?
其他方式登录