HomeUser Control Panel (unavailable in archive)ForumsTutorialsArt GalleryResourcesMaps

Replacing a hero, with same name as replaced unit.

02-05-2003, 05:20 PM#1
Guest
Ok, i have a hero named BOB.

BOB is removed from the game, and replaced with a new hero. I need this hero to be named BOB also.

And i need multiple names in the "proper names" section in the unit editor. (So i can't just delete all the names there, except one, and do the same with the replacing hero.)
02-05-2003, 06:03 PM#2
Guest
I thought that WC3 used the names in the order that they appear. Meaning that if the name string lists were Bob, Bill, and John the first unit of that type created would be called Bob, the second Bill, and the third John. If this is not the case then you could create a custom model for each name. I understand that this is tedious. I'll check it out when I get home. Sorry, but this is the best I could come up with without having WE with me and not knowing the method WC3 uses for name selection.
02-05-2003, 07:08 PM#3
Guest
The names of the two heroes are the same, and they're in the same order.
02-05-2003, 08:21 PM#4
dataangel
I know there's a hero name function that returns a string, but I don't think you can choose the name a hero spawns with. You could store a copy of the unit in the game cache, and then replace it with the same unit from the game cache, but I take it it isn't the same unit?
02-05-2003, 08:33 PM#5
Guest
dataangel: I think the function your thinking of still returns unit-type. It's just the unit-type in string form. The one I'm talking about is listed under the strings as Unit - Unit Name. Which is pretty stupid since there is already a Convert Unit-Type to String function.
02-05-2003, 09:55 PM#6
Guest
The replaced unit just needs to have the same name as the unit it replaces.


And remember, it's a heros name. Not the name of the unit. (Not "paladin" or "mountain king" but "Kara Starmoon" etc. the "proper names" section.)