Author Topic: [already possible in xml]Select multiple buildings at once  (Read 2462 times)

vibe

  • Guest
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.
« Last Edit: 10 June 2015, 08:44:54 by titi »

Tiel

  • Archer
  • *
  • Posts: 30
    • View Profile
Re: Select multiple buildings at once
« Reply #1 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.

Omega

  • MegaGlest Team
  • Dragon
  • ********
  • Posts: 6,167
  • Professional bug writer
    • View Profile
    • Personal site
Re: Select multiple buildings at once
« Reply #2 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).
« Last Edit: 18 June 2016, 15:37:27 by filux »
Edit the MegaGlest wiki: http://docs.megaglest.org/

My personal projects: http://github.com/KatrinaHoffert

vibe

  • Guest
Re: Select multiple buildings at once
« Reply #3 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.

Tiel

  • Archer
  • *
  • Posts: 30
    • View Profile
Re: Select multiple buildings at once
« Reply #4 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.

andy_5995

  • Moderator
  • Ornithopter
  • ********
  • Posts: 474
  • Debian Linux user
    • View Profile
    • Andy Alt's home page
Re: [already possible in xml]Select multiple buildings at once
« Reply #5 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

 

anything