Difference between revisions of "VariationalAction2/Bridges"

From GRFSpecs
Jump to navigationJump to search
(note about implementation status)
(→‎Variables: add versions)
(One intermediate revision by the same user not shown)
Line 4: Line 4:
 
== Variables ==
 
== Variables ==
 
{| |-
 
{| |-
!Variable!![[GRFActionsDetailed|'''Size''']]!!Content
+
!Variable!![[GRFActionsDetailed|'''Size''']]!!Version!!Content
 
|-
 
|-
|40||B||Age of the bridge in years (or, strictly speaking, the difference between the current year and the year the building was built). Returns 255 for buildings older than 255 years.
+
|40||B||{{ottdp| |2.5|ttdprev=alpha45}}||Age of the bridge in years (or, strictly speaking, the difference between the current year and the year the building was built). Returns 255 for buildings older than 255 years.
 
|-
 
|-
|41||B||Terrain type: 0 normal, 1 desert, 2 rainforest, 4 on or above snowline
+
|41||B||{{ottdp||}}||Terrain type: 0 normal, 1 desert, 2 rainforest, 4 on or above snowline
 
|-
 
|-
|80+x|| ||None defined yet, Trying to access these variables crashes TTD.
+
|80+x|| ||{{ottdp}}||None defined yet, Trying to access these variables crashes TTD.
 
|}
 
|}
   

Revision as of 11:55, 23 July 2011

Introduction

This seems to be some draft spec for TTDPatch support. The implementation status is unknown.

Variables

Variable Size Version Content
40 B Supported by OpenTTD Supported by TTDPatch 2.5 (alpha45)2.5 Age of the bridge in years (or, strictly speaking, the difference between the current year and the year the building was built). Returns 255 for buildings older than 255 years.
41 B Supported by OpenTTD Supported by TTDPatch Terrain type: 0 normal, 1 desert, 2 rainforest, 4 on or above snowline
80+x Not supported by OpenTTD Not supported by TTDPatch None defined yet, Trying to access these variables crashes TTD.

Description

Age of the bridge in years (40)

The age of the bridge.

Terrain type (41)

Terrain type: 0 normal, 1 desert, 2 rainforest, 4 on or above snowline

Example