Jump to content

Question about current victory conditions


SMST
 Share

Recommended Posts

So, the Trac says about basic victory conditions. What are they? I guess it is just "all enemy units dead -> you win" by this stage, or is there anything more sophisticated yet? Also, how would I implement them in a custom map?

Link to comment
Share on other sites

In the "conquest" mode (the default), a player loses when they have no entities in the "ConquestCritical" class - currently template_unit.xml and template_structure.xml add that class to all units and all structures, but I guess we'll want to change it to ignore certain units. Currently the only alternative mode is "endless", where you can't win or lose - custom scenarios might want to use something like that and write their own triggers to control victory (at least once we've implemented custom scenarios and triggers).

Link to comment
Share on other sites

How would I switch between "conquest" and "endless" mode?

As Philip wrote "conquest" mode is default and so it don't need any addition tags in the map files. If you want to set "endless" mode, then you need to add the "GameType":"endless" item in the <scriptSettings> section of the maps xml file. You can see an example in the Pathfinding_demo.xml.

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

×
×
  • Create New...