NML:Deprecated syntax
From GRFSpecs
Revision as of 11:42, 14 September 2011 by Planetmaker (talk | contribs) (explain the numeric parameter access briefly)
Direct variable access
NML allows a syntax to directly access (unnamed) variables by their NewGRF number:
value = param[<num>, <bit>, <mask>, <param>]
where <num>
is the variable number, <bit>
is the the first bit read from that variable, <mask>
is a mask applied to the variable and <param>
is only present for those variables which require a parameter.