HomeUser Control Panel (unavailable in archive)ForumsTutorialsArt GalleryResourcesMaps

Looking for a list of unit codes

12-14-2002, 11:17 PM#1
DryMaltExtract
I'm looking for a list of unit codes, for example, the Water Elemental is hwat. I've done a couple searches of the forum but I couldn't find one.
12-14-2002, 11:48 PM#2
BlacKDicK
Use MPQVIEW or WINMPQ and extract Units\UnitData.slk and open that. You can see the 4 letter code and wich unit is that.
12-15-2002, 12:59 AM#3
Electromancer
Here you go. Just ignore the sort data. The code is on the left, and the name is on the right. Hope it helps.
12-15-2002, 04:41 PM#4
DryMaltExtract
Thanks a lot for the help. I've just discovered I also need/need to know where to find a list of all the mdl's and their paths such as
Abilities\Weapons\FireBallMissile\FireBallMissile.mdl. Any help would be appreciated.

Also, do custom made units get unit codes?
12-15-2002, 08:54 PM#5
Insaniteus
Ok, the UMSWE has all of the lists you could ever want. I'd say go and download it from Umsmaps

-Insaniteus-
12-16-2002, 07:32 AM#6
Ari
Quote:
Also, do custom made units get unit codes?

Yes. They start at HCxx, and work their way upwards. So the first human custom unit is HC01, while the second night elf custom unit is EC02. But something weird is involved in generating the names. Even if you delete a custom unit, that number isn't immediately reclaimed in a map. SO if I create a custom unit, delete it, and make another, it will be HC02, even if it is the only custom unit there. I'm not sure what happens if you get up to HC99 and there are opening left earlier. Perhaps they're filled on the second time through.

I'm sure there's an easier way to do this, but to determine the code of a custom unit, I make a trigger that creates one of that unit, convert it into custom text, and take the code from there. Crude but effective.
12-16-2002, 04:58 PM#7
DryMaltExtract
Ah that's a good idea Ari, thanks for the tip. That would have never even crossed my mind. (The create unit etc thing).
12-18-2002, 02:19 AM#8
Guest
why do u need unit codes?

what can they do?
12-18-2002, 03:37 AM#9
Phil_123
u can change spells so that they only target (a) specific unit(s)... and that's why u need a unit code
12-18-2002, 04:49 PM#10
Guest
Unit codes are also useful when changing spells like Feral Spirit, Water Elemental, or Inferno. That way you can make a new spell based on these original ones and change what unit is summoned. Its better than just Unit Editing the units because another hero could now have the original without the unit being different.