HomeUser Control Panel (unavailable in archive)ForumsTutorialsArt GalleryResourcesMaps

How can you determine unit ID from a custom unit?

02-01-2003, 10:11 PM#1
FyreDaug
I'm creating a shapeshifter hero and he has 5 different forms he can use, in the AbilityData.slk file I need to specify what the unit ID of the custom heroes is, how can you determine this? (All custom unit models of S.S. are human)
02-01-2003, 10:18 PM#2
pigchow777
i would not do that, ive tried that but i didnt nkow that u can only have 1 of the spell type for each hero.
02-01-2003, 10:37 PM#3
FyreDaug
No I have it working for non hero units that arent custom (like it morphs to footman, knight, peasant, malita and archer all works fine, I just need to know if you can get the unitID of custom units
02-01-2003, 10:54 PM#4
Guest
Make a trigger referencing the custom unit. Like, Move Unit to Location Instantly or something like that, and select your custom unit.

Convert it to custom text and you'll see the 4 digit id.

Delete the trigger.

Care.
02-01-2003, 11:08 PM#5
pigchow777
when they all have same spell Code they clump together, u will see
02-01-2003, 11:30 PM#6
FyreDaug
.... thats why you dont use the same spell ID, are you a n00b to MPQ or what?

BTW: Thanks heaven
02-01-2003, 11:55 PM#7
pigchow777
dude dont go flaming on me, The Code for the spell is required for its action, u make make a new spell code then it wont do anything, u can make the Id the way u want it, the two around the spell code. is da spell id

also, the best way to get the codes r from the unitdata.slk they list all units and there ID's
02-02-2003, 04:54 PM#8
FyreDaug
Its a custom unit created in WE..... I'm not flaming you I'm telling you that my 5 different morphs will work.

HEAVEN: just makin sure that "gg_unit_HC03_0023" HC03 is the ID of my custom unit correct?
02-02-2003, 05:09 PM#9
pigchow777
unitdata.slk lists ever unit and the code, much faster and u got the whole list
02-02-2003, 05:47 PM#10
CBWhiz
its hc03 - human custom, custom unit 3

the other number is the unit number that you placed on the map, and gg_unit_ is part of it's custom text variable
02-02-2003, 06:50 PM#11
FyreDaug
Pigchow: damnit its a CUSTOM UNIT! Its not in the unitdata file!

CBWhiz: thanks