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

Hero selection at the start of the game #7

Open
russnes opened this issue Aug 23, 2020 · 5 comments
Open

Hero selection at the start of the game #7

russnes opened this issue Aug 23, 2020 · 5 comments

Comments

@russnes
Copy link
Member

russnes commented Aug 23, 2020

There should be a set of heroes at the beginning of the game that the players can choose from. Once, a player has chosen their hero they will enter the arena and be able to control it.

@mithray
Copy link

mithray commented Aug 24, 2020

I know three ways to choose a hero:

  • Delenda Est, a 0AD mod, already has a hero selection at the start of the game. I actually don't like the layout, but it does work.
  • You could "train" a hero once the game has begins, this is what happened in the original Warcraft 3, DOTA map.
  • Use the Civilization selection feature at the start of the game.

Delenda Est actually is putting quite a bit of work into historical heroes. We could potentially use all of that.

@russnes
Copy link
Member Author

russnes commented Aug 27, 2020

I think whichever one is the simplest is probably the best option. If it's possible to create a custom barracks where you can train all types of heroes, and limit the number of heroes to 1, then it's already good enough.

@LenaTheWolfess
Copy link

LenaTheWolfess commented Aug 29, 2020

See https://github.com/SlavomirSlovenkai/MMO/blob/master/simulation/data/civs/archer.json as example
Important is "SkirmishReplacements": {
"units/mmoPlayerSkirmish": "units/mmoArcher"
},
and having units/mmoPlayerSkirmish for every player placed on map
also this component is needed inside unit being replaced 'SkirmishReplacer'

@russnes
Copy link
Member Author

russnes commented Aug 29, 2020

See https://github.com/SlavomirSlovenkai/MMO/blob/master/simulation/data/civs/archer.json as example
Important is "SkirmishReplacements": {
"units/mmoPlayerSkirmish": "units/mmoArcher"
},
and having units/mmoPlayerSkirmish for every player placed on map
also this component is needed inside unit being replaced 'SkirmishReplacer'

Great. Just for the record I would link to a specific commit just in case you end up moving this around, so the link doesn't die in the future.

So this is defining on a building with trainable units?

@LenaTheWolfess
Copy link

this is 0ad feature nothing special, you can find it in current civ files

no,
you put 3 units for each team on the map and that units will have skirmishreplacer element in template.
inside each civ file there will be defined which unit/entity will be used instead

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

No branches or pull requests

3 participants