• Listen to a special audio message from Bill Roper to the Hive Workshop community (Bill is a former Vice President of Blizzard Entertainment, Producer, Designer, Musician, Voice Actor) 🔗Click here to hear his message!
  • Read Evilhog's interview with Gregory Alper, the original composer of the music for WarCraft: Orcs & Humans 🔗Click here to read the full interview.

[General] Arrange units in name order

Status
Not open for further replies.
Level 5
Joined
Feb 1, 2024
Messages
44
I have hero taverns and shops and when I add new units or items the order seems to mess around. How can I arrange all the units and items by name in an alphabetical order? Or the list within the Techtree - Units Sold field and the respective slots of units and would help.
 

Uncle

Warcraft Moderator
Level 73
Joined
Aug 10, 2018
Messages
7,866
There are button position xy settings for units to do it manually yourself. You could also try giving them all the same position, which might then sort them in ascending or descending order according to rawcode?
I think when the Button positions are the same it relies on Object Editor order in the Abilities/Units Sold/Items Sold fields.
 

Dr Super Good

Spell Reviewer
Level 64
Joined
Jan 18, 2005
Messages
27,286
To do this automatically you would need a non-trivial automation build script. This would look at the data of the map, possibly when the map is in folder form, and then automatically calculate the command card button positions for the items and units and apply them to the data at build time. The publishing pipeline might be along the lines of...
Code:
edit map -> save as folder -> run build scripts -> load map folder in editor -> save as w3m/w3x -> apply optimisation/protection -> publish map to distribution networks
 
Status
Not open for further replies.
Top