Difference between revisions of "VariationalAction2/Railtypes"
From GRFSpecs
Jump to navigationJump to searchm (3 revisions) |
(also link var 10/18 from here) |
||
(5 intermediate revisions by 5 users not shown) | |||
Line 1: | Line 1: | ||
+ | ==Introduction== |
||
+ | == Variables == |
||
− | '''''Variational Action 2 for Railtypes''''' |
||
+ | {| |- |
||
− | =Variational Action 2 for Railtypes= |
||
⚫ | |||
+ | |- |
||
+ | |10||D||{{ottdp|1.3|ottdrev=r24367}}||Additional information for sprite selection - See [[Action3/Railtypes#Signal_sprites_.280B.29|Action3 Signals]] |
||
+ | |- |
||
+ | |18||D||{{ottdp|1.3|ottdrev=r24367}}||Additional information for sprite selection - See [[Action3/Railtypes#Signal_sprites_.280B.29|Action3 Signals]] |
||
+ | |- |
||
⚫ | |||
+ | |- |
||
+ | |41||B||{{ottdp|1.0|ottdrev=r19056}}||Enhanced tunnels; entrance has track above. Always 0 in OpenTTD. |
||
+ | |- |
||
⚫ | |||
+ | |- |
||
⚫ | |||
+ | |- |
||
+ | |44||B||{{ottdp|1.2|ottdrev=r23866}}||[[TownZones|Town zone]] of the tile. (Only available for level crossings and depots.) |
||
+ | |} |
||
+ | == Description == |
||
− | available in OpenTTD r19056 |
||
⚫ | |||
⚫ | |||
⚫ | |||
+ | {| |- |
||
⚫ | |||
⚫ | |||
+ | |- |
||
⚫ | |||
+ | |- |
||
⚫ | |||
+ | |- |
||
⚫ | |||
+ | |- |
||
⚫ | |||
+ | |} |
||
− | + | === Enhanced tunnels (41) === |
|
⚫ | |||
⚫ | |||
− | |||
⚫ | |||
− | |||
⚫ | |||
− | |||
⚫ | |||
− | |||
⚫ | |||
− | |||
⚫ | |||
− | |||
⚫ | |||
− | |||
⚫ | |||
− | |||
⚫ | |||
− | |||
− | ==Enhanced tunnels (41)== |
||
− | |||
⚫ | |||
This variable will always return 0 and is reserved for future use with enhanced tunnels. |
This variable will always return 0 and is reserved for future use with enhanced tunnels. |
||
− | ==Level crossing status (42)== |
+ | === Level crossing status (42) === |
− | Format: byte |
+ | '''Format:''' byte |
This variable returns 1, if a crossing is closed. If the crossing is open or the tile is no level crossing, the return value is 0. |
This variable returns 1, if a crossing is closed. If the crossing is open or the tile is no level crossing, the return value is 0. |
||
+ | |||
+ | ==Example== |
Latest revision as of 16:10, 2 July 2012
Introduction
Variables
Variable | Size | Version | Description |
---|---|---|---|
10 | D | 1.3 | Additional information for sprite selection - See Action3 Signals |
18 | D | 1.3 | Additional information for sprite selection - See Action3 Signals |
40 | B | 1.0 | Terrain type: 0 normal, 1 desert, 2 rainforest, 4 on or above snowline. |
41 | B | 1.0 | Enhanced tunnels; entrance has track above. Always 0 in OpenTTD. |
42 | B | 1.0 | Level crossing status: 0 if open (or not a crossing), 1 if closed. |
43 | D | 1.0 | Depot construction date (long format, 0 based); other: current date |
44 | B | 1.2 | Town zone of the tile. (Only available for level crossings and depots.) |
Description
Terrain type (40)
Format: byte
value | Meaning |
---|---|
0 | normal tile |
1 | desert tile |
2 | rain forest tile |
4 | tile on or above snow line |
Enhanced tunnels (41)
Format: byte
This variable will always return 0 and is reserved for future use with enhanced tunnels.
Level crossing status (42)
Format: byte
This variable returns 1, if a crossing is closed. If the crossing is open or the tile is no level crossing, the return value is 0.