Feature Request: Expose UpgradeAcquire to Lua

Asked by Andre Novellino Gouvêa

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:
Last query:
Last reply:
Revision history for this message
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.

Revision history for this message
Andre Novellino Gouvêa (andre-ng) said :
#2

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