Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Win the game by destroying opposite team's base tower #16

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

russnes
Copy link
Member

@russnes russnes commented Sep 13, 2020

This would possibly solve #9 in a very rough way. My experience with scripting 0 A.D. maps is very limited so I'm unsure if the syntax is correct, and still work remains to be done to be able to train a hero so it can be tested.

Copy link

@LenaTheWolfess LenaTheWolfess left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You need to edit the template itself and use that template on the map.
So for example you open brit_wonder.xml (public/simulations/templates/structures/) and add or remove this class.
Keep in mind, that templates have hierarchy, so most of them inherit elements from parents.
(<Entity parent='some_template'>)
To add class you use ConquestCritical if not present in parents, to remove you use -ConquestCritical if present in some parent and not removed until this now.

@russnes
Copy link
Member Author

russnes commented Sep 20, 2020

@SlavomirSlovenkai I see. Since that is not in the map file itself, but in the structure files I suppose that means it will require this project to be a mod?

@LenaTheWolfess
Copy link

yes

@russnes russnes mentioned this pull request Sep 26, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants