-
March 26, 2015, 08:27 PM
#1
One unit, two names (depending on faction) - need help
I am trying to get a single unit to have two different names depending on what faction is using it. The problem is I am missing somewhere in the loop that determines the unit's name.
Take for example att_rom_cohors. In Unit_Variants, it has both att_rom_cohors_east and att_rom_cohors_west as values. Yet in the land_units.loc there is no such entry. There is just att_rom_cohors. Yet that entry assigns the name to any unit_variant using either rom_cohors_east or rome_cohors_west. So somewhere there is a value that assigns the att_rom_cohors unit name to both those with _West and _east suffix. Otherwise the unit should have no name.
I'm going to spare myself trying to explain what I am doing, but it's basically to make it so factions whose unit variant refers to the name -att_rome_cohors_east has a different unit name ingame than those of cohors_west. But since the game clearly ignores the suffix and just goes for rome_cohors with no care of the unit_variant table, I am left wondering what the hell I am supposed to do.
-
March 27, 2015, 12:33 AM
#2
Re: One unit, two names (depending on faction) - need help
What is it that's made you think its the ID in the unit_variant table that designates the name of the unit? A units name is given pertaining to its ID in land_units or likewise naval_units.
It's the same unit after all, so it'll have the same name, if you want a unit to have a different name, that makes it essentially a different unit and you'll need to create a new one.
You're trying to use the unit variant system in a way it wasn't intended I'm afraid.
-
March 27, 2015, 12:36 AM
#3
Re: One unit, two names (depending on faction) - need help
Take the Auxilia Palatina, available to WRE and ERE, for example:
att_rom_eastern_auxilia_palatina
att_rom_western_auxilia_palatina
Exactly the same unit in all but name, and they're given different names by having two seperate units with unique ID's that can be set in the loc.
-
March 29, 2015, 08:44 AM
#4
Civis
Re: One unit, two names (depending on faction) - need help
I don't think that sounds correct to me. I am very new here and could be very wrong but yes I agree with you the actual unit name such as
att_rom_eastern_auxilia_palatina
att_rom_western_auxilia_palatina
Yes, they are the same however, when playing these factions don't these names display differently within the game with something like
Eastern Auxilla
or Western Auxilla?
They must be able to have different display names?
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules