Idibil said:
Mm, what have you in mind?
Caba`drin said:
Might be worth looking into how this operation works: (troop_set_face_key_from_current_profile, <troop_id>),
First off, Somebody pointed out to me that this is a multiplayer command to set your multiplayer character to your profile's face, I believe. In any case, this wouldn't be a useful command.
For changing appearances, two options emerge, the first very complicated/likely not worth the effort, the second not wholly satisfying. 1) Grab another troop's facecode/DNA...or randomize one perhaps...and store it in a troop slot for the dead lord. Then, EVERY place in the code that lord could be spawned (from dialogs, menus/encounters, etc) capture that lord's spawn and re-set the DNA of the (set_visitor) command to the DNA stored in the troop slot.
2) Simply use troop_set_age to
drastically change the age of the replacement for the dead lord. If the lord was older, make the replacement quite young--a son perhaps. If the lord was young, make the replacement as old as possible--an uncle taking over or some such. The face code would be the same, but with a drastic enough age change, the appearance of wrinkles (or disappearance) and the changing color of hair to/from white might make it not so obvious...
Depending on the direction of the age change the troop's name could be changed to "the Elder" or "the Younger" to differentiate this new lord. OR a number could be added to the end of their name. Lord Beowulf gets killed and replaced by Lord Beowulf II...would would be replaced by Beowulf III, etc. Not fully dynamic, but something.
Attributes/skills could be randomly assigned to each new lord...or based off of their predecessors. One could change their personalities, etc.