.com.unity Forums

.com.unity Forums (http://forum.shrapnelgames.com/index.php)
-   Scenarios, Maps and Mods (http://forum.shrapnelgames.com/forumdisplay.php?f=146)
-   -   How do I set a heroe's name? (http://forum.shrapnelgames.com/showthread.php?t=46703)

Adept December 1st, 2010 02:58 PM

How do I set a heroe's name?
 
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

Re: How do I set a heroe's name?
 
Use the following tag:
#name "[insert name]"

Duncan_Frost December 1st, 2010 03:26 PM

Re: How do I set a heroe's name?
 
Quote:

Originally Posted by Redeyes (Post 764543)
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

Re: How do I set a heroe's name?
 
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

Quote:

Originally Posted by Duncan_Frost (Post 764545)
Quote:

Originally Posted by Redeyes (Post 764543)
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

Re: How do I set a heroe's name?
 
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

Re: How do I set a heroe's name?
 
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

Re: How do I set a heroe's name?
 
Quote:

Originally Posted by rdonj (Post 764570)
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

Re: How do I set a heroe's name?
 
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

Re: How do I set a heroe's name?
 
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.


All times are GMT -4. The time now is 02:13 PM.

Powered by vBulletin® Version 3.8.1
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©1999 - 2025, Shrapnel Games, Inc. - All Rights Reserved.