Feature Request: Expose UpgradeAcquire to Lua

Asked by Andre Novellino Gouvêa on 2013-07-10

My feature request, I believe, is a rather simple one. I would like to see a way to give a upgrade to a player through lua, since this would be quite helpful for map-making, allowing map-makers to make players start with certain upgrades already researched, for instance.

Question information

Language:
English Edit question
Status:
Solved
For:
Stratagus Edit question
Assignee:
No assignee Edit question
Solved by:
Andre Novellino Gouvêa
Solved:
2013-07-10
Last query:
2013-07-10
Last reply:
Joris Dauphin (joris-dauphin) said : #1

It is already possible in lua to begin with certain upgrade:
DefineAllow(unitName, flags)
look at stratagus/doc/scripts/research.html#DefineAllow

It is not available through the map editor.

Ah, thank you very much! I had misunderstood what the flags in the define allows meant.