HomeUser Control Panel (unavailable in archive)ForumsTutorialsArt GalleryResourcesMaps

Unit ID for custom units

02-25-2003, 06:26 PM#1
got_ammo
I'm just wondering if there is anyway to find out the unit id for a custom unit. I'm making spells like metamorphasis and wanted to create custom units for each level of the spell. I know i could just replace regular units with the custom ones, but I don't want to do this. Any way to do this with custom units?
02-25-2003, 06:48 PM#2
DaKaN
make a unit varible, set the unit you want the ID for to the varible, conver the varible to custom text, the 4 digit code will be there in quotes
02-26-2003, 01:43 AM#3
got_ammo
Thanks Dakan
02-26-2003, 01:50 AM#4
FyreDaug
You could do that, or this way (Which could be considered basically the same thing), but place the custom unit on the map, then create a blank trigger, and do something like MOVE UNIT instantly, then convert it to custom text, and look for the 4 digit unit ID.
02-26-2003, 02:54 AM#5
Guest
We should probably include this in a sticky; it was also the first question I asked around here.
02-26-2003, 06:31 PM#6
Guest
I think this is answered in the b.net forum faq. Maybe it would be better to have a sticky that links to that... Too many stickies in this forum already, IMHO.
02-26-2003, 09:21 PM#7
Guest
Quote:
Originally posted by sid67
I think this is answered in the b.net forum faq. Maybe it would be better to have a sticky that links to that... Too many stickies in this forum already, IMHO.


:mtk: :mtk: :mtk:
02-27-2003, 05:53 AM#8
Tapek
Great I've always wanted to know that.
02-27-2003, 11:08 AM#9
Guest
What do you to convert to custom text?
02-27-2003, 06:23 PM#10
DaKaN
edit > convert to custom text
02-27-2003, 06:45 PM#11
got_ammo
Eclips - This is how I did it thanks to dakan -

You make your custom unit, and then make a variable called unit that is a unit-type variable. Just set it equal to the units you want and convert you custom text and it will give you the 4 digit code. It usually starts with HC## or something.
02-27-2003, 07:07 PM#12
DaKaN
HC = human custom

CU is for neutal

i never used elf undead or orc custom units (where i needed the string i mean)

but i asume they will be like OC UC and NC (or EC)
02-27-2003, 07:47 PM#13
Guest
ok i got it now thanks