0ad-moba / dott

Defenders of The Thing (working title)
Creative Commons Attribution Share Alike 4.0 International
2 stars 2 forks source link

Hero selection at the start of the game #7

Open russnes opened 4 years ago

russnes commented 4 years ago

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 commented 4 years ago

I know three ways to choose a hero:

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

russnes commented 4 years ago

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 commented 4 years ago

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 commented 4 years ago

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 commented 4 years ago

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