Rename units (more than once)

Mr_3tianne

Chieftain
Joined
Sep 4, 2020
Messages
1
Hey, sorry for the total noob question. I was really shocked that there isn't a mod that allows you to rename units more than once.

I've managed to tweak GlobalParameters.xml to allow me to set custom unit names as soon as the unit is created (I set UNIT_EXPERIENCE_LEVEL_FOR_CUSTOM_NAME to 0) but for the life of me I can't find anything that controls when the unit can (or can't) be renamed.

I'm at a dead end in that I've found something in UnitCommands.xml that relates to what I think is the unit UI elements (move, attack, sleep, etc.) and one of the commands listed is UNITCOMMAND_NAME_UNIT but I can't figure out what controls whether this command is available or not; I suppose worst case scenario is that it's hard coded into the game which makes life a lot more difficult.

Anyone able to help? :) Thanks in advance
 
Back
Top Bottom