HomeUser Control Panel (unavailable in archive)ForumsTutorialsArt GalleryResourcesMaps

Re using hero names

10-24-2006, 02:02 AM#1
Astrotrain
Hello.

I'm sure many of you are aware that, with constant use of the remove hero/create hero trigger, eventually the names of the heroes will run out and be forced to have II, III, IV, etc behind their names. Is there anyway around this so that if a hero is deleted, his name is recylced into the available list of names?
10-24-2006, 04:21 PM#2
Panto
Nothing comes to mind, except that perhaps there's a more ideal solution than remove/create. What are you trying to accomplish?
10-24-2006, 05:03 PM#3
zen87
Hmph giving a hero with 20 names that atctually the same name ?

Well I'm not sure that
Trigger:
unit - remove unit
will work on this case or not...
10-24-2006, 09:02 PM#4
Archmage Owenalacaster
The name cycling only occurs if the names used are greater than 1. For example, campaign hero names do not cycle.

Open the Object Editor, select the hero, select Text - Proper Names Used, set it to 1, then go to Text - Proper Names and set that to a single name.

The alternative is to figure out a more efficient means of triggering to achieve the desired effect.
10-24-2006, 09:59 PM#5
Taur
or have so many proper names (e.g. 5 of the same) that it would take forever to go to numbers?
10-25-2006, 06:52 AM#6
Archmage Owenalacaster
I guess we would need to know the function of adding/removing heroes to determine a practical solution. Is it a melee setting where multiples of the same hero can be constructed thus necessitating a variety of names? In that case a seperate hero could be created for each player that only they can access, each with a single predetermined name.
10-25-2006, 12:59 PM#7
King Klear
Quote:
Originally Posted by Taur
or have so many proper names (e.g. 5 of the same) that it would take forever to go to numbers?

That could cause 2 heroes with the same name being in the game at the same time...
10-25-2006, 03:34 PM#8
Zachary_Shadow
First off, hey Panto, still got the same Avatar i see ;) hehe

Anyways, I'm building an AoS map, with a hero selection system, that creates heroes and removes them as you look tru the different characters, eventually (looking tru enough times) the I II III IV will start popping up.

Only one thing springs to mind that could be done in my case, as I don't know what your trying to do, is when the hero is created, have a trigger rename the Hero to it's proper name.

I also have "heroes" spawning with the waves of mobs, and they end up with I II III IV as well, nothing much to do about that I suppose though... Other than maybe adding 200 names :P

Good luck, and let me know if you figure out some clever way
10-25-2006, 05:20 PM#9
Panto
Well, I hope that something like simply hiding the hero and unhiding it when you need it is a more workable solution, but it sounds more sinister in his case.

Heya ZS, yep, same avatar! Don't fix what's awesome, as they say.
10-25-2006, 07:20 PM#10
Captain Griffen
Only solution I can see is having multiple heroes in the object editor, each with one name, and then using triggers to allocate names.