SMST Posted October 2, 2010 Report 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? Quote Link to comment Share on other sites More sharing options...
Ykkrosh Posted October 2, 2010 Report 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). Quote Link to comment Share on other sites More sharing options...
SMST Posted October 2, 2010 Author Report Share Posted October 2, 2010 Thanks for your answer. How would I switch between "conquest" and "endless" mode? Quote Link to comment Share on other sites More sharing options...
fcxSanya Posted October 2, 2010 Report 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. Quote Link to comment Share on other sites More sharing options...
Ykkrosh Posted October 2, 2010 Report 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.) Quote Link to comment Share on other sites More sharing options...
SMST Posted October 2, 2010 Author Report Share Posted October 2, 2010 Thanks again to both of you. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.