MegaGlest Forum

MegaGlest => Feature requests => Closed feature requests => Topic started by: vibe on 8 April 2014, 15:14:46

Title: [already possible in xml]Select multiple buildings at once
Post by: vibe on 8 April 2014, 15:14:46
Hi, I think it would be nice to be able to select multiple buildings of the same type at the same time (and assign them to hotkeys).

For example, if you could select 3 barracks and click on build soldier, and they all start making a soldier in parallel.
Or if you select several town halls and click on build worker once it will make a worker in each town hall.
Title: Re: Select multiple buildings at once
Post by: Tiel on 8 April 2014, 21:59:05
That's something specified in the unit's xml, I believe. Meaning you'd have to mod your own version of the Megapack with that alteration in order to do what you propose. I have absolutely no idea how glest handles production from multiple selected units, though.
Title: Re: Select multiple buildings at once
Post by: Omega on 8 April 2014, 22:34:04
Multiple selection is specifically disabled for buildings because it's usually used to select units via drag and drop, and if you also selected buildings, you wouldn't be able to tell your units to move (as they lack a common move skill).

I'm going by memory here and my memory is a bit spotty, but if I recall correctly, buildings are identified purely by skills. In particular, buildings don't have a move skill. I think that's the only way buildings are identified.

In the past, this identification as a building was all that was needed for determining if you had to kill that unit to win the game. That is, you win when all buildings are dead, not all units. This changed when MG introduced `count-in-victory-conditions`, which overrides this (docs (https://docs.megaglest.org/XML/Unit#count-in-victory-conditions)).
Title: Re: Select multiple buildings at once
Post by: vibe on 8 April 2014, 22:42:09
Multiple selection is specifically disabled for buildings because it's usually used to select units via drag and drop, and if you also selected buildings, you wouldn't be able to tell your units to move (as they lack a common move skill).

Well this could easily be addressed by some logic where if any units are selected, no buildings are added to the selection.

Furthermore, you shouldn't be able to select different types of buildings at once (ie: you can only select multiple buildings of the same type). Otherwise it wouldn't make sense to select a barracks and a town hall at the same time since they do different things.
Title: Re: Select multiple buildings at once
Post by: Tiel on 8 April 2014, 23:44:24
Multiple selection is specifically disabled for buildings because it's usually used to select units via drag and drop, and if you also selected buildings, you wouldn't be able to tell your units to move (as they lack a common move skill).

Well this could easily be addressed by some logic where if any units are selected, no buildings are added to the selection.

Furthermore, you shouldn't be able to select different types of buildings at once (ie: you can only select multiple buildings of the same type). Otherwise it wouldn't make sense to select a barracks and a town hall at the same time since they do different things.

I could be wrong, but I'm pretty sure the current method exists to avoid doing those.
Title: Re: [already possible in xml]Select multiple buildings at once
Post by: andy_5995 on 13 March 2017, 03:03:35
Hi, I think it would be nice to be able to select multiple buildings of the same type at the same time (and assign them to hotkeys).

For example, if you could select 3 barracks and click on build soldier, and they all start making a soldier in parallel.
Or if you select several town halls and click on build worker once it will make a worker in each town hall.

This feature is now available in the Megapack as of MegaGlest v3.13.0