Difference between revisions of "NML:Parameter assignment"
From GRFSpecs
Jump to navigationJump to search (add nav template) |
|||
Line 3: | Line 3: | ||
param[<expression>] = <expression>; |
param[<expression>] = <expression>; |
||
− | Set a parameter to the given expression. Neither of the two expressions has to be constant, the following is perfectly valid: |
+ | Set a parameter to the given [[NML:Block syntax#Syntax|expression]]. Neither of the two expressions has to be constant, the following is perfectly valid: |
<pre style="color:blue"> |
<pre style="color:blue"> |
Latest revision as of 13:23, 26 August 2013
Vehicles, Stations, Canals, Bridges, Towns, Houses, Industries (Tiles), Cargos, Airports+Tiles, Objects, Railtypes, Roadtypes, Tramtypes, Terrain
param[<expression>] = <expression>;
Set a parameter to the given expression. Neither of the two expressions has to be constant, the following is perfectly valid:
param[param[2] + 1] = param[3] * param[4];