Back to List
Maintained by![AU](/img/flags/AU.png)
SmokeDragon
Last updated 50 days ago
Created 2 months ago
download JSON metadata of limited_tech
limited tech
PLAY THIS MOD
Maintained by
![AU](/img/flags/AU.png)
![rank](/img/ranks/7_5.png)
Last updated 50 days ago
Created 2 months ago
download JSON metadata of limited_tech
storing this here ignore it
[Spoiler]
[Spoiler]
local validunitnames = { ["Funnelweb"] = true, ["Conjurer"] = true, ["Convict"] = true, ["Mason"] = true, ["Quill"] = true, ["Wasp"] = true, ["Crane"] = true, ["Weaver"] = true, ["Constable"] = true, ["Welder"] = true, ["Conch"] = true, ["Mariner"] = true } for name, ud in pairs(UnitDefs) do if validunitnames[ud.name] then ud.buildoptions = { [[cloakcon]], [[cloakraid]], [[cloakheavyraid]], [[cloakskirm]], [[cloakriot]], [[cloakassault]], [[cloakarty]], [[cloaksnipe]], [[cloakaa]], [[cloakbomb]], [[cloakjammer]], } end end working vs broken local allbuildoptions = { "cloakcon", "cloakraid", "cloakheavyraid", "cloakskirm", "cloakriot", "cloakassault", "cloakarty", "cloaksnipe", "cloakaa", "cloakbomb", "cloakjammer" } local numbuildoptions = 4 local function selectrandombuildoptions() local shuffledoptions = {} local tempoptions = {table.unpack(allbuildoptions)} for i = #tempoptions, 2, -1 do local j = math.random(1, i) tempoptions[i], tempoptions[j] = tempoptions[j], tempoptions[i] end local selectedoptions = {} for i = 1, numbuildoptions do table.insert(selectedoptions, tempoptions[i]) end return selectedoptions end local validunitnames = { ["Funnelweb"] = true, ["Conjurer"] = true, ["Convict"] = true, ["Mason"] = true, ["Quill"] = true, ["Wasp"] = true, ["Crane"] = true, ["Weaver"] = true, ["Constable"] = true, ["Welder"] = true, ["Conch"] = true, ["Mariner"] = true } for name, ud in pairs(UnitDefs) do if validunitnames[ud.name] then local randombuildoptions = selectrandombuildoptions() local formattedoptions = {} for _, option in ipairs(randombuildoptions) do table.insert(formattedoptions, "[[" .. option .. "]]") end ud.buildoptions = formattedoptions end end
Zero-K is a free real time strategy (RTS), that aims to be the
best open source multi-platform strategy game available :-)