This is a pretty easy and quick thing, but I did not find it in the workshop (too obvious?), so I wrote this.
I assume you know Gigantus' guide of "Custom portraits: Creation and use" yet and "Advanced family tree" guide by GrnEyedDvl.
Here you can find them: http://www.twcenter.net/forums/showthread.php?t=92488#CODING
What you need:
- a portrait of the caracheter you wanna put in the tree; -> data\ui\custom_portraits\Newone\portrait_dead.tga
- data\world\maps\campaign\imperial_campaign\descr_strat,txt
- data\world\maps\campaign\imperial_campaign\campaign_script.txt
Let's start:
1 In the descr_strat
-> Remove eventual character_record's
-> Add the general in the strat map: just copy an existing general, then change his name and location, add at the end this: ", portrait newone, label newone1"
(Be sure you have the name in the data\descr_names.txt and, consequently, in the data\text\names.txt)
EXAMPLE:
Code:
character Newone, named character, male, age 49, x 60, y 15, portrait newone, label newone1
traits Generous 1 , CrusaderHistory 1 , BattleChivalry 1 , GoodAdministrator 2 , LoyaltyStarter 1, ManagementStarter 1
ancillaries knight_crusader
army
unit NE Bodyguard exp 0 armour 0 weapon_lvl 0
Don't mind the traits neither the units
Note: if you want to replace a past_leader, just put this after male: ", leader," since the game does not crash if there are multiple leaders or heirs... at least at beginning. But this could lead to an error whit the heir succession, so the "real" leader must be marked, in the descr_strat, as heir
-> Put him in the family tree
2 In the campaign_script
-> Kill the general. Qick , dirty and simlple.
Code:
monitor_event FactionTurnStart I_TurnNumber >= 0
kill_character newone1
terminate_monitor
end_monitor
And, ta daa! check your family tree
NOTES: In the tree, the year those characters die is the same as turn 1 (of course)