五月天青色头像情侣网名,国产亚洲av片在线观看18女人,黑人巨茎大战俄罗斯美女,扒下她的小内裤打屁股

歡迎光臨散文網(wǎng) 會員登陸 & 注冊

[迷你地鐵]自定義地圖創(chuàng)建指南(四)

2021-02-17 23:04 作者:高_明  | 我要投稿

本文來自迷你地鐵官方自定義地圖指南,由Up主-高明-個人翻譯,但保留英語原文。

注意:本編指南極長,且包含部分晦澀難懂的知識,僅適用于一心想要創(chuàng)建自定義地圖的迷你地鐵玩家。

原文鏈接:https://steamcommunity.com/sharedfiles/filedetails/?id=2295902845

第一篇:CV9457864? ? ? ? 第二篇:CV9868683????????第三篇:CV9868830


本段目錄

  • Permanent Lines 永久線路

  • Transitions 過渡特效

  • Previews 預覽圖

  • Achievements 成就

Permanent Lines 永久線路

Permanent Lines are a new feature for Community Maps. Lines in your map can be configured to appear at the start of the game and be connected to your initial stations. Trains can be setup to run on these lines from the start. Permanent lines can be configured to allow or disallow editing the line, and separately allow or disallow editing trains on the line.

永久線路是社區(qū)地圖的一項新特性。社區(qū)地圖可以設置在游戲開始就存在并運行機車的線路。永久線路可以被設定為不可修改,也可以設定為可以修改。

This might be commuter rail lines that connect to stations off the map, which will bring passengers into the city. A permanent line could also be used to add a fixed downtown line or loop that the player has to build around or on top of. Or, they can just give your map some extra flair! You should experiment with this new mechanic.

永久線路可以作為從地圖之外的車站將乘客運送進地圖內(nèi)車站的通勤線路,也可以作為市中心的固定線路,并讓玩家以此為基礎向外擴展。或者就是為了讓你的地圖顯得高級一些!你應該嘗試一下這個新機制。

"lines": [

????????????{

????????????????????????"maxTrains": 4,

????????????????????????"allowedTrains": ["Locomotive", "Carriage"],

????????????????????????"links": [

????????????????????????????????????{

????????????????????????????????????????????????"station": "Uruguai-L1",

????????????????????????????????????????????????"stops": [

????????????????????????????????????????????????????????????{"direction": "EAST", "platform": 0},

????????????????????????????????????????????????],

????????????????????????????????????},

????????????????????????????????????{

????????????????????????????????????????????????"station": "Estacio-L1",

????????????????????????????????????????????????"stops": [

????????????????????????????????????????????????????????????{"direction": "SOUTHWEST", "platform": 0},

????????????????????????????????????????????????????????????{"direction": "NORTHEAST", "platform": 0},

????????????????????????????????????????????????],

????????????????????????????????????},

????????????????????????????????????{

????????????????????????????????????????????????"station": "Central-L1L2",

????????????????????????????????????????????????"stops": [

????????????????????????????????????????????????????????????{"direction": "WEST", "platform": 0},

????????????????????????????????????????????????????????????{"direction": "EAST", "platform": 0},

????????????????????????????????????????????????],

????????????????????????????????????},

????????????????????????????????????[...]

????????????????????????????????????{

????????????????????????????????????????????????"station": "Botafogo-L1L2",

????????????????????????????????????????????????"stops": [

????????????????????????????????????????????????????????????{"direction": "NORTHEAST", "platform": 0},

????????????????????????????????????????????????],

????????????????????????????????????},

????????????????????????],

????????????????????????"startAssets": [

????????????????????????????????? ? "Locomotive",

????????????????????????????????????"Locomotive",

????????????????????????????????????"Carriage",

????????????????????????????????????"Carriage",

????????????????????????],

????????????????????????"canEditTrains": false,

????????????????????????"loop": false,

????????????},

????????????[...]

]

To set up a permanent line, you must have "links" and "startAssets" in the corresponding line dictionary.

如果想要建造一條永久線路,必須在線路字典中包含 "links" 與 "startAssets" 變量。

?

Links - Drawing the Permanent Line 畫出永久線路

"links": [

????????????{

????????????????????????"station": "Uruguai-L1",

????????????????????????"stops": [

????????????????????????????????????{"direction": "EAST", "platform": 0},

????????????????????????],

????????????},

????????????{

????????????????????? ? "station": "Estacio-L1",

????????????????????????"stops": [

????????????????????????????????????{"direction": "SOUTHWEST", "platform": 0},

????????????????????????????????????{"direction": "NORTHEAST", "platform": 0},

????????????????????????],

????????????},

????????????[...]

????????????{

????????????????????????"station": "Botafogo-L1L2",

????????????????????????"stops": [

????????????????????????????????????{"direction": "NORTHEAST", "platform": 0},

????????????????????????],

????????????},

],

The links value contains an array of dictionaries, with each corresponding to a station that the line will link to, in order from first to last. A permanent line must have at least two links.

Links 變量是一個包括若干字典的數(shù)組,其中每一項都按順序?qū)€路上的一座車站。一條永久線路至少要有兩個 links。

"station": "Uruguai-L1",

The "station" string must refers to the unique station "tag" that you configured while creating the "stations" dictionary.

"station" 字符串對于每一座車站來說都必須是獨一無二的,它代表了每一座車站的身份。

Make sure that you only connect to stations where you have set a "position" array, and that the value here matches the station tag exactly.

務必確保永久線路聯(lián)通的車站的坐標是已經(jīng)確定的,并且車站的名稱與字典中的名稱相匹配。

"stops": [

????????????{"direction": "SOUTHWEST", "platform": 0},

????????????{"direction": "NORTHEAST", "platform": 0},

],

Within each link, the "stops" array of dictionaries describes how the line will enter and exit the station.

在每個 link 中,"stops" 數(shù)組決定了線路將如何穿過車站。

The first and last links in a permanent line must have one stop. All other links in-between must have two stops.

永久線路的兩個終點站只能有一個 stop,而中間的車站必須有兩個 stops。

Each stop dictionary contains a "direction value". The first dictionary's "direction" will determine which way the line will enter the station from, and the second determines the direction that the line leaves the station from.

每一個 stop 字典都包含一個方向變量,第一個方向變量決定了線路從車站的哪個方向進入,而第二個方向變量則決定線路從車站的哪邊離開。

Valid "direction" values are "NORTH", SOUTH, EAST, WEST, NORTHWEST, NORTHEAST, SOUTHWEST, and SOUTHEAST.

可用的方向值包括"NORTH", "SOUTH",?"EAST",?"WEST", "NORTHWEST",?"NORTHEAST", "SOUTHWEST",?和?"SOUTHEAST",即北、南、東、西和西北、東北、西南、東南。

"platform": 0,

The platform value is an integer that determines the offset of the line, left or right, as it enters and exits the station.

"platform" 變量是一個整型變量,用于確定線路進出車站時的位置。

You’ll only need to change this if you have multiple lines coming into or out of the station in the same direction. Two permanent lines should not enter or exit from the same "direction" with the same "platform" value.

只有在多條永久線路通過的車站才需要修改此變量。兩條永久線路不能從同一方向進入或離開一座車站,它們的 "platform" 值也不能相等。

?

Start Assets - Running Trains on Permanent Line 永久線路上的機車

"startAssets": [

????????????"Locomotive",

????????????"Locomotive",

????????????"Carriage",

????????????"Carriage",

],

The "startAssets" array provides the line with a list of Train and Carriage assets to setup on the line at the start of the game. You can include "Locomotive", "Tram", "Shinkansen", and "Carriage" assets in this array.

"startAssets" 數(shù)組為一條永久線路定義了其初始存在的機車和車廂。除了 "Locomotive",你也可以使用 "Tram" 和 "Shinkansen" 兩種機車。

Listing all of the Train assets before listing Carriages works best to ensure the carriages are evenly distributed among trains.

盡量將所有機車元素列在車廂之前,這樣車廂將被平均分配至每一輛機車。

Assets in this array will not be deduced from your initial upgrades list, nor will any required "Crossing" assets if the line goes over a water obstacle. The game will add as many as needed, automatically.

永久線路中的財產(chǎn)不會與初始財產(chǎn)沖突,其上的橋梁或隧道也不會從玩家財產(chǎn)中扣除。游戲會自動為永久線路配置財產(chǎn)。

Be aware that assets added will count towards the maximum number of assets, when set for a weekly upgrade option, or for the maximum number of trains on a line, and so on.

然而永久線路上的財產(chǎn)會計入每一種財產(chǎn)的總數(shù)量,它會影響每周開始時的升級。

?

Other Permanent Line Values 其它永久線路變量

"canEdit": false,

The "canEdit" boolean value configures whether this line can be moved by the player after it's initially generated. If this value is not present, it will default to false.

"canEdit" 布爾變量決定了永久線路能否被修改或移除,其默認值為 false。

"canEditTrains": false,

The "canEditTrains" boolean value configures whether trains on this line can be picked up and moved, and if new lines from the player’s supply can be added to the line. If this value is not present, it will default to false.

"canEditTrains" 布爾變量決定了永久線路上的機車能否添加或移除,其默認值為 false。

"loop": false,

If the "loop" boolean is set to true, trains on the line will loop instead of moving back and forth between the two terminal stations.

如果把 "loop" 變量設置為 true,則線路將以環(huán)線,而不是往返線路的形式運行。

For a loop, make sure that the first and last link are connected to the same station tag. Otherwise, the trains will appear to teleport from one terminal to the other.

如果永久線路是環(huán)線,請確保線路兩頭的終點站是同一座車站,否則機車到達終點站后會傳送到另一座終點站并繼續(xù)行駛。

?


Transitions 過渡特效

It’s important to include a background obstacle in your city, since this will let the background map colour show up correctly during the transition from the menu to your level. If you leave out a background, you’ll notice that as the gameplay begins, your background colour will very suddenly pop in.

為地圖設置一個背景至關重要,因為從游戲目錄跳轉(zhuǎn)到游戲畫面時地圖外的背景將會顯露出來。如果你省略了背景,在游戲開始時,背景顏色將會瞬間出現(xiàn)。(Up注:但不會影響游戲進程)

?

Camera Transitions 視角過渡

In addition, the "transitions" array in your city.json main dictionary lets you confirm how the camera will move to enter your map.

此外,city.json 文件主字典中的 "transitions" 數(shù)組起到確定相機視角移動方向的功能。

"transitions": [

????????????{

????????????????????? ? "points": [

????????????????????????????????????[-10000, 8000],

????????????????????????????????????[0, 0],

????????????????????????],

????????????????????????"id": "menu-game",

????????????},

????????????{

????????????????????? ? "points": [

????????????????????????????????????[-10000, 8000],

????????????????????????????????????[0, 0],

????????????????????????],

????????????????????????"id": "menu-pause",

????????????},

],

The "id" value configures which camera path you're setting, with each dictionary in the array. You should only need "menu-game", which sets the path from the Main Menu into the map, and "menu-pause", which sets the path from your Pause Menu in-game back to the Main Menu.

在每個字典中的 "id" 變量設定了移動相機的時機。你只需要設定兩個 "id",分別是 "menu-game",即從游戲主菜單過渡到地圖,和 "menu-pause",從暫停界面過渡回游戲主菜單。

You can modify the path that the camera take into the map by editing the "points" array.

你可以通過修改 "points"?數(shù)組來改變相機聚焦的位置。

"points": [

????????????[-10000, 8000],

????????????[0, 0],

],

The "points" array defines a path that the camera will follow during the transition into or out of the game. Each array inside the array needs an X and Y float value.

"points" 數(shù)組定義了一條線路,相機會沿著這些點組成的線段從一段過渡到另一端。每一個坐標都需要一個橫坐標值和一個縱坐標值。

Your transitions should always end at [0,0], and needs at least two points.

過渡的終點必須是 [0,0],且路徑中至少需要兩個點。

?


Previews 預覽圖

The "preview" dictionary inside your city.json file's main dictionary lets you define how the map icon will appear in the Play menu, before starting a new game.

city.json 主字典中的 "preview" 字典可用于定義游戲菜單中該地圖的預覽圖。

"preview": {

????????????"window": {

????????????????????????"position": [-250, -175],

????????????????????????"size": 800

????????????},

????????????"hidePermanentLines": true,

},

For a basic preview, you must have a "window" dictionary. This will pick out a Square area of the map obstacles to show as a preview. Make sure that "inPreview" is set to true in the obstacle dictionary, for any obstacles that you want to appear in the preview window.

基礎預覽圖必須包含一個 "window" 字典。它會從游戲地圖中框選出一個正方形區(qū)域作為預覽,請確保該區(qū)域包含的障礙物的 "inPreview" 變量設置為 true。

Inside the "window" dictionary, the "position" array configures the [X, Y] coordinates for the bottom-left corner of the preview window.

在 "window" 字典中, "position" 數(shù)組設定了預覽框左下角的坐標值。

The "size" value sets how large the window will be on each side of the Square.

"size" 變量決定了預覽框在在地圖尺度上的大小,即正方形的邊長。

"hidePermanentLines": true,

The boolean value "hidePermanentLines" can be set to true to hide the colours of any permanent lines in the row of circles corresponding to the line colours, which appear below the preview window.

將布爾變量 "hidePermanentLines" 設置為 true 可以在預覽圖下的線路顏色列表中隱藏永久線路對應的線路顏色小圓。

?

Adding Stations and Lines 在預覽圖中添加車站和線路

To draw stations and lines inside the preview window, you can add these inside of the "preview" dictionary, the same way you would define stations and lines in the map.

如果你想在預覽圖中添加車站和線路,你可以在 "preview" 字典中加入以下代碼,它和在地圖中定義線路的道理一樣。

"preview": {?

????????????"window": {?

????????????????????????"position": [-400,-450],?

????????????????????????"size": [1000,1000]?

????????????},

???????????? "stations": [

???????????? ???????????{ "ghost": false, "position": [15.0, 80.0],?

????????????????????????????????????"tag": "triangle.br", "type": "Square", },

????????????????????????{ "ghost": false, "position": [-185.0,80.0],??

????????????????????????????????????"tag": "triangle.rg", "type": "triangle", },

????????????????????????{ "ghost": false, "position": [-85.0, -100.0],??

????????????????????????????????????"tag": "triangle.bg", "type": "triangle", },

????????????????????????{ "ghost": false, "position": [-350.0, 150.0],??

????????????????????????????????????"tag": "red1", "type": "circle", },

????????????????????????{ "ghost": true, "position": [410.0, 0.0],??

????????????????????????????????????"tag": "red2", "type": "circle", },

????????????????????????{ "ghost": false, "position": [525.0,100.0],??

????????????????????????????????????"tag": "red3", "type": "circle", },

????????????????????????{ "ghost": false, "position": [-250.0, 282.0],??

????????????????????????????????????"tag": "green1", "type": "circle", },

????????????????????????{ "ghost": false, "position": [70.0, -360.0],??

????????????????????????????????????"tag": "green2", "type": "circle", },

????????????????????????{ "ghost": false, "position": [15.0, 474.0],?

????????????????????????????????????"tag": "blue1", "type": "circle", },

????????????????????????{"ghost": false, "position": [-250.0, -360.0],??

????????????????????????????????????"tag": "blue2", "type": "circle", },

????????????],

????????????"lines": [

????????????????????????{

????????????????????????????????????"index": 0,

????????????????????????????????????"links": [

????????????????????????????????????????????????{ "station": "red1", "stops": [ { "direction": "SOUTHEAST", "platform": 0 } ] },

????????????????????????????????????????????????{ "station": "triangle.rg",

????????????????????????????????????????????????????????????"stops": [ { "direction": "WEST", "platform": 0 },

????????????????????????????????????????????????????????????????????????{ "direction": "EAST", "platform": 0 }

????????????????????????????????????????????????????????????]

????????????????????????????????????????????????},

????????????????????????????????????????????????{ "station": "triangle.br",

????????????????????????????????????????????????????????????"stops": [ { "direction": "WEST", "platform": 0 },

????????????????????????????????????????????????????????????????????????{ "direction": "SOUTHEAST", "platform": 0 }

????????????????????????????????????????????????????????????]

????????????????????????????????????????????????},

????????????????????????????????????????????????{ "station": "red2",

????????????????????????????????????????????????????????????"stops": [ { "direction": "WEST", "platform": 0 },

????????????????????????????????????????????????????????????????????????{ "direction": "EAST", "platform": 0 }

????????????????????????????????????????????????????????????]

????????????????????????????????????????????????},

????????????????????????????????????????????????{ "station": "red3",

????????????????????????????????????????????????????????????"stops": [ { "direction": "SOUTHWEST", "platform": 0 } ]

????????????????????????????????????????????????}

????????????????????????????????????]

????????????????????????},

????????????????????????{

????????????????????????????????????"index": 1,

????????????????????????????????????"links": [

????????????????????????????????????????????????{ "station": "blue1",

????????????????????????????????????????????????????????????"stops": [ { "direction": "SOUTH", "platform": 0 } ]

????????????????????????????????????????????????},

????????????????????????????????????????????????{ "station": "triangle.br",

????????????????????????????????????????????????????????????"stops": [ { "direction": "NORTH", "platform": 0 },

????????????????????????????????????????????????????????????????????????{ "direction": "SOUTH", "platform": 0 }

????????????????????????????????????????????????????????????]

????????????????????????????????????????????????},

????????????????????????????????????????????????{ "station": "triangle.bg",

????????????????????????????????????????????????????????????"stops": [ { "direction": "NORTHEAST", "platform": 0 },

????????????????????????????????????????????????????????????????????????{ "direction": "SOUTHWEST", "platform": 0 }

????????????????????????????????????????????????????????????]

????????????????????????????????????????????????},

????????????????????????????????????????????????{ "station": "blue2",

????????????????????????????????????????????????????????????"stops": [ { "direction": "NORTH", "platform": 0 } ]

????????????????????????????????????????????????}

????????????????????????????????????]

????????????????????????},

????????????????????????{

????????????????????????????????????"index": 1,

????????????????????????????????????"links": [

????????????????????????????????????????????????{ "station": "green1",

????????????????????????????????????????????????????????????"stops": [ { "direction": "SOUTHEAST", "platform": 0 } ]

????????????????????????????????????????????????},

????????????????????????????????????????????????{ "station": "triangle.rg",

????????????????????????????????????????????????????????????"stops": [ { "direction": "NORTH", "platform": 0 },

????????????????????????????????????????????????????????????????????????{ "direction": "SOUTH", "platform": 0 }

????????????????????????????????????????????????????????????]

????????????????????????????????????????????????},

????????????????????????????????????????????????{ "station": "triangle.bg",

????????????????????????????????????????????????????????????"stops": [ { "direction": "NORTHWEST", "platform": 0 },

????????????????????????????????????????????????????????????????????????{ "direction": "SOUTHEAST", "platform": 0 }

????????????????????????????????????????????????????????????]

????????????????????????????????????????????????},

????????????????????????????????????????????????{ "station": "green2",

????????????????????????????????????????????????????????????"stops": [ { "direction": "NORTH", "platform": 0 } ]

????????????????????????????????????????????????}

????????????????????????????????????]

????????????????????????},

????????????],

????????????"hidePermanentLines": true,

},

The example above is from the Mini Metro More - Kyiv map, and shows how to setup preview stations and preview lines.

以上這段示例代碼來自一張基輔地圖,它展示了該如何在預覽圖中畫出車站和線路。

Stations and Lines in the "preview" dictionary will only appear in the preview, and don't affect gameplay otherwise.

"preview" 字典中的車站和線路只會在預覽圖中顯示,不會影響游戲過程。

Stations all must have a unique "tag" string, "position" array with an X and Y value, and a "type". The "ghost" boolean can be set to true to hide stations from being drawn, but still connect them to a line to create more complex line curvature.

這里的車站必須有一個獨一無二的 "tag" 標簽字符串,一個 "position" 坐標數(shù)組,以及一個 "type" 來定義車站種類。"ghost" 布爾變量可以被設置為 true,這樣線路會經(jīng)過這座車站,但車站本身不會顯示,這可以用來為線路設置更復雜的走向。

Each line needs a "links" array, as if it was a Permanent Line. Refer to the Permanent Line section on how to setup the Links array. The link "station" values in preview lines can only refer to the tag of preview stations, and not stations in the general gameplay "stations" array.

就像永久線路那樣,每條預覽線路都要有一個 "links" 數(shù)組。它們的工作方式相同,但這里的 "station" 值只會指代至預覽車站,不會指代到其它地方的車站數(shù)組。

Unique to Preview Lines, you can include an "index" value on each line, to denote which line colour should be used. The first line colour in your theme.json Line Colours will be index 0, the second will be index 1, and so on.

你可以為預覽線路添加一個 "index" 變量用于為其上色。theme.json 中的第一條線路顏色的指數(shù)為0,第二個為1,以此類推。

?


Achievements 成就

You can setup custom challenges by adding an?achievements.json?file into your city folder. This file is a dictionary formatted like the JSON below.

你可以在地圖文件夾中創(chuàng)建一個 achievements.json 文件以設置一個自定義挑戰(zhàn)成就。

{

????????? ? "achievements": [

????????????????????????{

????????????????????????????????????"id": "casablanca-1",

????????????????????????????????????"city": "casablanca",

????????????????????????????????????"difficultyPriority": 0,

????????????????????????????????????"type": "score",

????????????????????????????????????"score": 500,

????????????????????????????????????"customDescription": "score 500 points with two lines on Casablanca.",

????????????????????????????????????"icon": "passenger",

????????????????????????????????????"restrictions": [

????????????????????????????????????????????????{"max": 2, "type": "Line", "scope": "Global"}

????????????????????????????????????],

????????????????????????},

????????????????????????[...]

????????????],

}

The "achievements" array contains a list of unique dictionaries. Each dictionary will correspond to one challenge in your map.

"achievements" 數(shù)組包含一系列特殊字典,每一個字典都對應一項挑戰(zhàn)。

"id": "casablanca-1",

Each achievment must have a unique "id" string.

每一項挑戰(zhàn)都必須有一個獨一無二的 "id" 字符串。

"city": "casablanca",

The "city" string must correspond to the city "id" in your city.json file.

此處的 "city" 字符串需與 city.json 文件中的城市 "id" 相同。

"difficultyPriority": 0,

If you’re making multiple achievements for the map, you can set the "difficultyPriority" integer value to order of your challenges from lowest to highest, in the Achievements screen.

如果一張地圖有多個成就,你需要用整型變量 "difficultyPriority" 確定它們的顯示順序。

Achievements have to have one of two possible type values: score or Day.

成就中必須要包含?"type" 變量,它的值可以是 score 或者 Day。

"type": "score",

"score": 500,

If the "type" is score, then the "score" value will set the number of passengers that the player has to move to complete the challenge.

如果 "type" 的值是 score,那么 "score" 變量就會規(guī)定你完成這項挑戰(zhàn)必須到達的分數(shù)。

"type": "Day",

"day": 35,

If the "type" is Day, then the "score" or "day" value will set the number of days that the player has to pass without having a station overflow, to complete the challenge.

如果 "type" 的值是 Day,那么 "day" 變量就會規(guī)定完成挑戰(zhàn)必須到達的天數(shù)。

"customDescription": "score 500 points with two lines on Casablanca.",

"icon": "passenger",

The string value "customDescription" lets you describe the challenge for the map in your own words, and this will appear on the Achivement screen for the map.

"customDescription" 字符串可以用于顯示關于該項挑戰(zhàn)的描述,它會顯示在成就界面中。

The "icon" string value will pick which icon to use for the map. You can choose various icons, which are listed in the Achievement Icons appendix.

"icon" 字符串會為這項挑戰(zhàn)選定一個小圖標。有多個圖標可供選擇,具體可在附錄中查看。

The icon is strictly cosmetic, so pick whatever suits the challenge best!

圖標只有裝飾作用,所以你可以盡情挑選最適合這項挑戰(zhàn)的圖標。

?

Restrictions 限制

"restrictions": [

????????????{

????????????????????????"max": 2,?

????????????????????????"type": "Line",?

????????????????????????"scope": "Global",

????????????},

????????????{

????????????????????????"min": 1,?

????????????????????????"type": "Loop",?

????????????????????????"scope": "Line",

????????????},

],

Finally, the "restrictions" array of dictionaries let you add extra rules that the player needs to follow to beat the challenge. Each dictionary adds a restriction, and you can include no restrictions at all, or as many as you like.

最后,"restriction" 數(shù)組可用于添加其它挑戰(zhàn)規(guī)則。每一個字典代表一項規(guī)則,你可以不添加其它限制,或者添加任意數(shù)量的限制。

"max": 2, "type": "Line",

Restrictions have a "type", and a "max" or "min" value, or both.

限制條件包含一個 "type" 變量,以及一個 "max" 或 "min" 變量,也可同時包含 max 和 min。

Together, these effectively say, “don’t have more than the max number, or less than the min number, of this type of thing.” The example above says, “don’t use more than two lines”.

這些變量組合在一起表示“某種物件的數(shù)量不能超過最大值,也不能低于最小值”,在本例子中該代碼意為“不能使用超過兩條線路”。

Valid types are as follows:

可用的 "type" 值有以下幾種:

  • "Line": Counts the lines actively used, ? ? ?but not ones unused in the toolbar, including any permanent lines.

"Line":已經(jīng)使用的線路數(shù)量,包括永久線路。

  • "Locomotive": Counts the Locomotives, ? ? ?Trams, and Shinkansen actively used, but not ones unused in the toolbar, ? ? ?including on any permanent lines.

"Locomotive":正在運行的所有機車的數(shù)量,包括永久線路上的機車。

  • "Carriage": Counts the Carriages ? ? ?actively used, but not ones unused in the toolbar, including on any ? ? ?permanent lines.

"Carriage":已經(jīng)使用的車廂的數(shù)量,包括永久線路上的車廂。

  • "Crossing": Counts the number of ? ? ?Tunnels or Bridges used, as in, the number of times lines have to cross a ? ? ?water obstacle, include permanent lines.

"Crossing":已經(jīng)使用的橋梁或隧道的數(shù)量,包括永久線路上的橋梁和隧道。

  • "Loop": Counts the number of loops. Each ? ? ?line that is looping counts as one loop, including permanent lines.

"Loop":環(huán)線的數(shù)量,每一條首尾相連的線路都被視作環(huán)線,包括永久線路。

  • "Station": Counts the number of ? ? ?stations connected to a line.

"Station":一條線路上的車站數(shù)量。

  • "Hub": Counts the number of stations ? ? ?which are linked to all lines, including permanent lines.

"Hub":被所有線路通過的車站的數(shù)量,包括永久線路。

"scope": "Global",

In addition, the "scope" value sets the context that the restriction applies.

此外,"scope" 變量設定了該限制條件作用的范圍。

Valid scopes are as follows:

以下是可用的 scope 值:

  • "Global": Means anywhere in the map. ? ? ?This works for all types, except for "Station".

"Global":范圍為整張地圖,適用于除 "Station" 外的的其它所有 "type" 值。

  • "Line": Counts the "type" per ? ? ?each line. This lets you set a max or min value allowed of the type for ? ? ?each line individually. This can be used with any type except ? ? ?"Line", or "Hub". Note that type "Loop" per ? ? ?scope "Line" with either be 0, is not looping, or 1, if looping. ? ? ?This restriction will apply to permanent lines as well.

"Line":在每一條線路上計算 "type" 值對應的數(shù)量。你可以為每條線路設定單獨的上下限。該范圍適用于除 "Line" 和 "Hub" 之外的 "type" 值。不過 "Line" 范圍下的 "Loop" 值只會是0或1,取決于一條線路本身是否是環(huán)線。該限制也會作用于永久線路。

  • "Square": Only allowed with type ? ? ?"Line". This lets you set the maximum or minimum number of lines ? ? ?connected to each Square type station. This includes permanent lines.

"Square":只適用于 "type" 值為 "Line" 的限制條件。規(guī)定了可以連接正方形車站的線路數(shù)量,也包括永久線路。

  • "Crossing": Only allowed with type ? ? ?"Line". This lets you set the maximum number of lines that ? ? ?use?any?Tunnels or Bridges at all. This includes ? ? ?permanent lines.

"Crossing":只適用于?"type" 值為?"Line" 的限制條件。它規(guī)定了可以使用隧道或橋梁的線路數(shù)量,也包括永久線路。

Examples 示例

Here are some example achievement restrictions.

以下是一些規(guī)則示例。

{"max": 6, "type": "Carriage", "scope": "Global"}

“Don’t use more than 6 carriages anywhere.”

“總共不能使用超過6節(jié)車廂。”

{"max": 3, "type": "Locomotive", "scope": "Line"}

“Don’t use more than 3 locomotives on each line.”

“每條線路不能有超過3輛機車?!?/span>

{"max": 1, "type": "Loop", "scope": "Global"}

“Don’t use more than one loop line in total.”

“總共只能有一條環(huán)線?!?/span>

{"min": 1, "type": "Hub", "scope": "Global"}

“Have at least one station connected to all lines.”

“至少有一座車站被所有線路連接?!?/span>

{"min": 1, "type": "Loop", "scope": "Line"}

“Use at least one loop on each line.”, or, “Make every line a loop.”

“所有線路都必須是環(huán)線?!?/span>

{"max": 0, "type": "Loop", "scope": "Line"}

“Don't use any loops.”

“不要使用任何環(huán)線?!?/span>

{"max": 2, "type": "Line", "scope": "Square"}

“Have at most two lines with Squares.”

“只能有兩條線路通過正方形車站?!?/span>

{"max": 1, "type": "Line", "scope": "Crossing"}

“Have only one line with any tunnels.”

“只有一條線路能使用隧道?!?/span>

{"max": 2, "type": "Crossing", "scope": "Global"}

“Only use two tunnels in total.”

“總共只能使用2條隧道?!?/span>

[迷你地鐵]自定義地圖創(chuàng)建指南(四)的評論 (共 條)

分享到微博請遵守國家法律
容城县| 宝鸡市| 洪湖市| 乌什县| 虹口区| 闸北区| 高雄市| 恭城| 长春市| 信丰县| 大荔县| 西乌珠穆沁旗| 兴山县| 晴隆县| 资中县| 尚义县| 高雄市| 霍城县| 大余县| 武乡县| 海宁市| 遂溪县| 荥阳市| 安溪县| 西青区| 湖口县| 延庆县| 五峰| 新和县| 龙陵县| 谷城县| 肇庆市| 棋牌| 舞钢市| 庆城县| 丰宁| 合作市| 大埔县| 台北县| 乌鲁木齐县| 九台市|