PDA

View Full Version : How do I set a heroe's name?


Adept
December 1st, 2010, 02:58 PM
I'm working on a mod that is 95% done. Problem is I haven't done this since Dom2, and I just realised I don't know how to set a hero's name after setting their "type".

Help?

Redeyes
December 1st, 2010, 03:20 PM
Use the following tag:
#name "[insert name]"

Duncan_Frost
December 1st, 2010, 03:26 PM
Use the following tag:
#name "[insert name]"

This is just the unit type name, though - is there a way to have seperate unit names and unique names like the vanilla heroes do?

After I looked through the Worthy Heroes mod I noticed none of them had unique names, so I assumed it wasn't possible, but if someone could point out a way for this to work then I'd be very grateful :)

nerozero
December 1st, 2010, 03:52 PM
Is it maybe possible to create a new nametype? Not sure that you can, but it might be possible.

Adept
December 1st, 2010, 04:36 PM
Use the following tag:
#name "[insert name]"

This is just the unit type name, though - is there a way to have seperate unit names and unique names like the vanilla heroes do?

After I looked through the Worthy Heroes mod I noticed none of them had unique names, so I assumed it wasn't possible, but if someone could point out a way for this to work then I'd be very grateful :)

This is what I was thinking. Is it possible to give a proper name to a new nations hero?

Duncan_Frost
December 1st, 2010, 05:59 PM
You could use the custom nametables (look in the modding manual for their numbers) and just use a single name. However, there are only two, so it's very likely to lead to conflicts with other mods, and leaves you with very little room for other nametables if you want more than one.

Plus I don't know if that works anyway :p

rdonj
December 1st, 2010, 06:08 PM
It works, but it's generally better to rely on the players to rename their heroes. Just leave the name somewhere in the hero description so they know what it's supposed to be.

NTJedi
December 1st, 2010, 06:23 PM
It works, but it's generally better to rely on the players to rename their heroes. Just leave the name somewhere in the hero description so they know what it's supposed to be.
This works best... until we have Dominions_4.

I keep casting WISH, however still no Dominions_4. I'm trying different spellings too.

llamabeast
December 1st, 2010, 07:44 PM
Yes, unfortunately there is no good solution to this.

Sombre's warhammer mods have lots of named heroes - maybe have a look at what he did. However his solution will be some kind of thematic workaround, there's no actual way of setting the name properly without wasting a nametype.

rdonj
December 2nd, 2010, 04:27 AM
If I recall correctly what sombre did was to overwrite nametypes that weren't in use in the particular era. Which is one way to do it, but only offers a few extra nametypes.

Adept
December 2nd, 2010, 01:14 PM
Alright, thanks guys. I was afraid this was the case.

I'll just have my Mistress of Fire get a random name rather than have her be Ignis the Red. A shame, but not a huge loss.