Related bugs

Related FAQ:

There is no way to convert NumberDesc into ordinary Lua number, since NumberDesc is computed real-time and so Lua can't index DwarvenNames with it.
The only way to make this thing is to program a new dynamic type (maybe called TableDesc or something like that) which could be initialized with ordinary Lua types and index it's contents by NumberDesc

It is not ideal, since I have to manually add a new line for each possible element of the array, but it works.

Joris, it would be great if more variables were exposed to lua. In particular, I think that it would be nice if we could change the HP, Attack Range and etc. of individual units, instead of just that of unit types. I implemented a trait system which randomly gives units individual traits, but I was only able to change an individual unit's damage and armor (since I could access the damage formula, I could use that to create a work-around to make a unit with the trait "Strong" do more damage, and then I changed ui.lua to reflect that in the unit's display), and the trait system would be much more interesting if I could change things such as HP and etc. as well.