function CheckVictory(scenarioInfo)
local categoryCheck = nil
if scenarioInfo.Options.Victory == 'demoralization' then
# You're dead if you have no commanders
categoryCheck = categories.COMMAND
elseif scenarioInfo.Options.Victory == 'domination' then
# You're dead if all structures and engineers are destroyed
categoryCheck = categories.STRUCTURE + categories.ENGINEER - categories.WALL
elseif scenarioInfo.Options.Victory == 'eradication' then
# You're dead if you have no units
categoryCheck = categories.ALLUNITS - categories.WALL
#New game mode conditions where SCUs take over command if the com has been sniped
elseif scenarioInfo.Options.Victory == 'secondincommand' then
# You're dead if your ACU is dead and you have no SCUs
categoryCheck = categories.COMMAND + categories.SUPPORTCOMMANDER
else
# no victory condition
return
end
elseif scenarioInfo.Options.Victory == 'yourleadersaredumbasbricks' then
# Wall sections act as commanders in that losing all your wall sections means you lose
categoryCheck = categories.WALL
Statistics: Posted by A_vehicle — 22 Apr 2013, 02:18
Statistics: Posted by zolikk — 10 Apr 2013, 22:48
Statistics: Posted by SC-Account — 09 Apr 2013, 18:08
Statistics: Posted by Badsearcher — 02 Apr 2013, 06:38
Statistics: Posted by Badsearcher — 30 Mar 2013, 23:17
Statistics: Posted by zolikk — 30 Mar 2013, 22:39
Statistics: Posted by rootbeer23 — 22 Mar 2013, 08:16
Statistics: Posted by snuffles — 22 Mar 2013, 06:21
Statistics: Posted by Badsearcher — 12 Mar 2013, 04:50