任务脚本代码说明
Jump to navigation
Jump to search
本文会教您如何自定义任务
任务文件路径
默认目录是: "C:\Steam\steamapps\common\SimRail\SimRail_Data\StreamingAssets\Sceneries" 或者说,"Steam Library所在路径\SimRail\SimRail_Data\StreamingAssets\Sceneries"
最大容许载货量
LHS Max: 900m and 6000t Normal Line Max: 700m and 4500t Traxxa: max 2500-2800t Dragon2: 3200-3500 up an incline
车辆
货车
424Z/424Z_brazowy 424Z/424Z Concrete_slab Gas_pipeline Pipeline Sheet_metal Steel_circle T-beam Tie Tree_trunk Wooden_beam RandomContainerAll RandomContainer3x20 RandomContainer1x40 RandomContainer2040 RandomContainer1x20 RandomContainer2x20 412W/412W_v4_364-9_b Variant 412W/412W_v4_364-9 Variant Coal Sand Ballast WoodLogs
客车
11xa/112A_50 51 19-08 136-0 Variant 11xa/112A_51 51 19-70 003-4 Variant 11xa/111A_50 51 20-00 608-3 Variant 11xa/111A_50 51 20-08 607-7 Variant 11xa/111A_51 51 20-70 829-9 Variant 11xa/111A_51 51 20-71 102-0 Variant z2/a9emnouz_61511970214-5 z2/a9mnouz_61511970234-3 z2/b11mnouz_61512170064-0 z2/b11mnouz_61512170098-8 z2/wrmnouz_61518870191_1 z2/b11gmnouz_61512170107-7
机车
4E/EU07-096 - PKP Cargo 4E/EU07-085 - PKP IC 4E/EP07-135 - Green PKP Dragon2/E6ACTad Traxx/E186-134
电力动车组
Elf/EN96-001 - PR Elf/EN76-022 - KM Elf/EN76-006 - KŚ Pendolino/ED250-018 Variant
制动设置
G, P, and T - 在重量和载货量之间输入
示例
412W/412W_v4_364-9_b Variant:G:55@Coal 412W/412W_v4_364-9_b Variant - Stock G - Brake Setting 55 - Weight (in tons) Coal - Load 412W Brown variant with 55t of coal and brakes set to G.
列车示例
4E/EP07-135+412W/412W_v4_364-9 Variant::53@Ballast+424Z/424Z::48@Tie+412W/412W_v4_364-9 Variant::53@Ballast+412W/412W_v4_364-9 Variant::52@Ballast+412W/412W_v4_364-9_b Variant::58@Sand+412W/412W_v4_364-9 Variant::54@Ballast+424Z/424Z::48@Tie+412W/412W_v4_364-9 Variant::54@Ballast+424Z/424Z::48@Tie+412W/412W_v4_364-9 Variant::51@Ballast+412W/412W_v4_364-9 Variant::56@Ballast+412W/412W_v4_364-9_b Variant::52@Sand+412W/412W_v4_364-9 Variant::54@Ballast+424Z/424Z::48@Tie+412W/412W_v4_364-9 Variant::51@Ballast+412W/412W_v4_364-9_b Variant::52@Sand+412W/412W_v4_364-9 Variant::54@Ballast+412W/412W_v4_364-9 Variant::53@Ballast+424Z/424Z::48@Tie+424Z/424Z::48@Tie+412W/412W_v4_364-9 Variant::55@Ballast+412W/412W_v4_364-9 Variant::55@Ballast
触发事件
__ "$type": "SimrailEvent.PostNotify", "res": { "$ref": "210" }, "timeout": 2.0 __ "$type": "SimrailEvent.VehicleStartupTutorial", "train": { "$ref": "1000" }, "willFinish": { "$ref": "5000" }, "tutorial": 7 __ "$type": "SimrailEvent.SetObjectiveState", "objective": { "$ref": "5000" }, "state": 1 __ "$type": "SimrailEvent.SetCabPaper", "res": { "$ref": "220" }, "position": 1 __ "$type": "SimrailEvent.TrafficCommand", "commandText": " __ $type": "SimrailEvent.FinishAction" __ "$type": "SimrailEvent.TimerAction", "timer": { "$ref": "207" }, "action": 1 __ "$type": "SimrailEvent.CoroutineDelayAction", "delay": 3.0, "until": false __ "$type": "SimrailEvent.WeatherCommand", "instant": false, "weatherCode": 741, "temperature": 22.3, "pressure": 1000, "humidity": 92, "visibility": 1000, "windSpeed": 10, "windDeg": 30
设置触发条件
__ "$type": "SimrailEvent.ObjectiveStateTrigger", "objective": { "$ref": "250" }, "state": 3 __ "$type": "SimrailEvent.TrainArrivedTrigger", "stationName": "Sosnowiec Dańdówka", "train": { "$ref": "1000" } __ "$type": "SimrailEvent.TimerFinishTrigger", "timer": { "$ref": "300" } __ "$type": "SimrailEvent.ImmediateOnceTrigger" __ "$type": "SimrailEvent.AtTimeTrigger", "time": 5.0 __ "$type": "SimrailEvent.PlayerCallTrigger" __ "$type": "SimrailEvent.TrainDepartureTimeTrigger", "stationName": "Będzin Ksawera", "train": null __ "$type": "SimrailEvent.TrainAnyDepartureTrigger", "train": { "$ref": "249" } __ "$type": "SimrailEvent.TrainSignalProximity", "signalName": "Sk_E", "distance": 30.0, "maxSpeed": 0.0, "train": { "$ref": "1000" } Trigger Conditions Objective based condition "$type": "SimrailEvent.ObjectiveStateCondition", "objective": { "$ref": "1376" }, <- ID objective do sprawdzenia "state": 3, <- stan objective który wymagasz "invert": false <- czy odwrócić warunek? Execute Trigger Only Once "$type": "SimrailEvent.ExecOnceCondition", "invert": false <- czy odwrócić warunek?
示例
{ "$id": "13386", <- musi być niepowtarzalny "$type": "SimrailEvent.SetObjectiveState", <- rodzaj action lub trigger, w tym przypadku to SimRailEvent.SetObjectiveState "objective": { "$ref": "1576" }, <- ID of objective który chcesz uaktywnić "state": 1 <- stan w który chcesz objective wprowadzić }
作者:PJK