Jump to content

Question about current victory conditions


SMST
 Share

Recommended Posts

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

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

 Share

×
×
  • Create New...