Tags#
This is an object of the meta object that contains tags. You can define multiple tags in the same meta object.
Adding custom tags may be useful as you can fetch drafts via tags using Draft.getDrafts("meta tag")
.
Animation tags#
These are tags that are only supported by animation drafts.
firework#
Used for defining custom fireworks.
alpha#
The direction of the particle(s).
speed#
The speed of a particle(s).
speed variation#
If there should be variation in speed of the particle(s).
n#
The number of particles to spawn.
time#
The duration of the particle(s).
time variation#
If there should be variation in the duration of the particle(s).
next#
The ID of the particle(s) that should spawn after the lifetime of the current particle(s) expired.
{
"meta": {
"tags": {
"firework": {
"alpha": 0, // float
"speed": 0, // float
"speed variation": 0, // float
"n": 0, // int
"time": 0, // int
"time variation": 0, // float
"next": [{
"id": "", // animation draft ID
"p": 1, // float
"always": false // bool
}]
}
}
}
}
road occupation#
Building tags#
These are tags that are only supported by building drafts.
build rail#
Used to prebuild rails and metro lines for elevated trains and metro.
{
"meta": {
"tags": {
"build rail": {
"id": "", // rail or road ID
"offsets": [], // optional int array
// These are only if its a road ID
"level": 0, // int
"all": false, // bool
"dir": 1 // int
}
}
}
}
bus depot#
Whether a building is considered a bus depot.
decorator#
destroyed building#
Whether to consider this building as a replacement for destroyed buildings. If no such drafts are defined, $destroyedtile
will be used instead.
destroyed building radioactive#
Whether to consider this building as a replacement for radioactive destroyed buildings. If no such drafts are defined, $destroyedtileradioactive00
will be used instead.
destroyed tree#
Whether to consider this building as a replacement for destroyed trees. If no such drafts are defined, $destroyedtile
will be used instead.
destroyed tree radioactive#
Whether to consider this building as a replacement for radioactive destroyed trees. If no such drafts are defined, $destroyedtileradioactive00
will be used instead.
destroyed road#
Whether to consider this building as a replacement for destroyed roads. If no such drafts are defined, $destroyedtile
will be used instead.
destroyed road radioactive#
Whether to consider this building as a replacement for radioactive destroyed roads. If no such drafts are defined, $destroyedtileradioactive00
will be used instead.
destroyed plain#
Whether to consider this building as a replacement for destroyed wires, rail and fences. If no such drafts are defined, $destroyedtile
will be used instead.
destroyed plain radioactive#
Whether to consider this building as a replacement for radioactive destroyed wires, rail and fences. If no such drafts are defined, $destroyedtileradioactive00
will be used instead.
dsa rocket supplier#
Whether the building is considered a rocket supplier and should spawn supply trucks for the launchpad.
farm field#
metro#
Whether to consider the building as a metro station.
metro_station#
Unstable
This feature is part of the ongoing transport update and may be subject to change in the future.
Whether to consider the building as a metro station.
metro_depot#
Unstable
This feature is part of the ongoing transport update and may be subject to change in the future.
Whether to consider the building as a metro depot where metro cars are dispatched from.
freight_train_platform#
Unstable
This feature is part of the ongoing transport update and may be subject to change in the future.
Whether to consider the building as a freight train platform.
policehelicopter#
railway#
Used to define rail-using station buildings. Levels attribute is used to specify served height levels.
- Regular railway stations use
"levels": [0]
- Elevated railway stations use
"levels": [1]
- Metro stations use
"levels": [-1]
spawn train#
ID of a train to spawn at this station. $train00
by default.
Bus stop tags#
These are tags that are only supported by bus stop drafts.
default_busstop#
Unstable
This feature is part of the ongoing transport update and may be subject to change in the future.
Car tags#
These are tags that are only supported by car drafts.
airport taxi#
carres0#
Used to mark a car draft as a level 1 residential car.
carres1#
Used to mark a car draft as a level 2 residential car.
carres2#
Used to mark a car draft as a level 3 residential car.
carcom0#
Used to mark a car draft as a level 1 commercial car.
carcom1#
Used to mark a car draft as a level 2 commercial car.
carcom2#
Used to mark a car draft as a level 3 commercial car.
carind0#
Used to mark a car draft as a level 1 industrial car.
carind1#
Used to mark a car draft as a level 2 industrial car.
carind2#
Used to mark a car draft as a level 3 industrial car.
car hearse#
Used to mark a car draft as a hearse car.
fire brigade#
Used to mark a car draft as a fire brigade car.
garbage#
Used to mark a car draft as a garbage truck.
idle bus#
ts_normal_bus#
Unstable
This feature is part of the ongoing transport update and may be subject to change in the future.
Whether to consider the vehicle as a bus that is used in the bus system.
medic#
Used to mark a car draft as a medic car.
military truck#
Used to mark a car draft as a military truck.
police#
Used to mark a car draft as a police car.
swat#
Used to mark a car draft as a swat car.
Feature tags#
consumable#
Road tags#
These are tags that are only supported by road drafts.
airport lane#
metro#
Whether to consider the road as a metro line.
Road decoration tags#
These are tags that are only supported by road decoration drafts.
car accident#
Whether the road decoration is considered to be a car accident.
Train car tags#
These are tags that are only supported by train car drafts.
short_distance_passenger_train#
Unstable
This feature is part of the ongoing transport update and may be subject to change in the future.
long_distance_passenger_train#
Unstable
This feature is part of the ongoing transport update and may be subject to change in the future.
freight_train#
Unstable
This feature is part of the ongoing transport update and may be subject to change in the future.
heavy_freight_train#
Unstable
This feature is part of the ongoing transport update and may be subject to change in the future.
Tree tags#
These are tags that are only supported by tree drafts.
ranger tree#
Whether the tree can be spawned by the Forester's Lodge.
Tags supported by all drafts#
These are tags that are supported by all drafts, regardless of their type.
budget item#
Used to create a new budget item that shows up in the financials menu.
See budget item attribute for how it can be referenced from a building.
console#
Used to implement a console command with a draft. Multiple commands can be defined.
{
"meta": {
"tags": {
"console": {
"commands": {
"mycustomcommand1": {
// Fun actions and conditions
"condition": {...},
"actions": [
{"type": "feedback", "id": "Condition ok"},
],
"else actions": [
{"type": "feedback", "id": "Condition not ok"}
]
},
"mycustomcommand2": {
// Fun actions and conditions
"condition": {...},
"actions": [
{"type": "feedback", "id": "Condition ok"},
],
"else actions": [
{"type": "feedback", "id": "Condition not ok"}
]
}
}
}
}
}
}