SMST Posted October 2, 2010 Share Posted October 2, 2010 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 More sharing options...
Ykkrosh Posted October 2, 2010 Share Posted October 2, 2010 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 More sharing options...
SMST Posted October 2, 2010 Author Share Posted October 2, 2010 Thanks for your answer. How would I switch between "conquest" and "endless" mode? Link to comment Share on other sites More sharing options...
fcxSanya Posted October 2, 2010 Share Posted October 2, 2010 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 More sharing options...
Ykkrosh Posted October 2, 2010 Share Posted October 2, 2010 (Eventually these settings should be exposed by the map editor so you don't have to edit the XML. But they're not yet.) Link to comment Share on other sites More sharing options...
SMST Posted October 2, 2010 Author Share Posted October 2, 2010 Thanks again to both of you. Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now