See also http://galaxywiki.com/wiki
First, you need to setup the trigger debug console. To do this:
To use this console, “DebugAI(“hello world”)” and many other functions are avaliable. Find them in “AIMelee.galaxy”.
After intensive testing, we've worked out how this function works. We believe it increases the maximum count of a unit, but with priorities. If I setstock of scvs to 10 then setstock marines to 10, it will TRY and get scvs to 10 first. If there's a bottleneck with making SCVs, or it has extra minerals it will make marines at the same time.