The next version of the Armada 2 Patch Project will be the first one to feature a new ODF command, thus being the first new ODF command coming to Armada 2 ever. This should be less interesting for people using the patch just as patch, but more for our colleagues creating modifications for Armada 2

The command is called
maxBuildableNumber and can be used in all craft and building ODF classes.
I'll give an easy example to explain what the command is doing:
You have created a new modification, called the "Super-Uber Defiant" mod. It adds a new Defiant class, which has tons of metaphasic torpedoes, a cloaking device and quantum-technobabble enhanced pulse phasers.
Now, it would be quite boring if the player only pulls out only your super-uber defiant class out of his or her shipyards, especially when playing the mod online. You want to limit the number of vessels the player can build.
Yes, there are possibilities out there that can limit a number of vessels build, but modders know they are not quite what they wanted when they came first up with that idea to do that in their mod. One is to use a system similar to our credits system we have used already in Fleet Operations, or to provide those units as start units besides your starbase as some mods already did in the past.
Now you get a third option - a real limit which can be set per vessel.
Just put the line
maxBuildableNumber = 5 in the Super-Uber Defiant's class ODF file and ready you are. Now one player can only have a total number of 5 SU-Defiant class vessels at the same time.
Now, if you have build 5 SU-Defiants you cannot build a sixth one in your yards. Of course, after one of your SU-Defiants gets destroyed or disassembled you can then build a new one to fill the limit again.




btw. the string shown in the tooltip can then be modified through the Dynamic_Localized_Strings.h file by adding
"GUI_CP_MAXBUILD", "Unit limit ( %d / %d )",