My idea is not to “replace X unit with Y unit” but to change the icon and name of certain unit as a effect of a tech.
About names: Yes, look at upgrade techs, those all change the name of units.
<effect type="SetName" proto="Crossbowman" culture="none" newname="36180">
</effect>
In which newname=“stringnumber”
In this case: 36180 is
<string _locid="36180">Veteran Crossbowman</string>
Portraits: I’m not sure. I think those are hardcoded into each protounit
1 Like
You can check the way the US outlaws are done for an example on changing portraits, but I have a hunch it only works before you look at the portrait. If you look at the portrait before the tech is activated, it doesn’t seem to change.
Wouldn’t surprise me, if the game isn’t able to clear the art out if the ram °^°
1 Like