Author Topic: [done] Omitting certain structures from victory conditions in custom games.  (Read 817 times)

Ishmaru

  • Behemoth
  • *******
  • Posts: 1,071
  • um wat??
    • View Profile
    • DelphaDesign
Hi, At this moment, victory/defeat is determined by destruction of all units with a be-built skill. However there may be certain structures that should be omitted from affecting victory/defeat. A good example are base defenses which could be passed by and drag the end of the game out. If anyone played Annex multiplayer probally have encountered this at some point.

So just asking for a tag that allows a player to be defeated even if he still has certain units with be built skill are still present.

Thank you for your time!
« Last Edit: 11 May 2012, 20:19:52 by softcoder »
Annex: Conquer the World Release 4 For Pc Mac + Linux
https://forum.megaglest.org/index.php?topic=9570.0
Annex is now on Facebook!
https://www.facebook.com/AnnexConquer

Ishmaru

  • Behemoth
  • *******
  • Posts: 1,071
  • um wat??
    • View Profile
    • DelphaDesign
Couldn't the losing player just surrender? Seems like the most simple option. Plus, what if all one player has is a couple units, and he can't take down the base defense units? That might be an edge case though.

Then game will end in a draw. Playing an hour + game just to get stuck in a draw is very fustrating.
Annex: Conquer the World Release 4 For Pc Mac + Linux
https://forum.megaglest.org/index.php?topic=9570.0
Annex is now on Facebook!
https://www.facebook.com/AnnexConquer

softcoder

  • MegaGlest Team
  • Battle Machine
  • ********
  • Posts: 2,239
    • View Profile
Add in svn:

- it is now possible to explicitly specify which units should count towards victory conditions. In the unit's xml file add:
<?xml version="1.0" standalone="no"?>
<unit>
   <parameters>
               <!-- valid values are true or false for this optional parameter -->
      <count-in-victory-conditions value="false"/>
        </parameters>
</unit>

By adding this new parameter it will explcitly set that unit to either count (true) or not count (false) regardless of anything else (does not require a be_built skill)

Thanks