Difference between revisions of "NML:Parameter assignment"
From GRFSpecs
Jump to navigationJump to search (content of nml r1625) |
(add nav template) |
||
Line 1: | Line 1: | ||
+ | {{NMLNavBlocksyntax}} |
||
+ | |||
param[<expression>] = <expression>; |
param[<expression>] = <expression>; |
||
Revision as of 16:38, 21 August 2011
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];