Yes - we did this in the Faerun mod. Here's the character block for Agrosh Tarrik 'the Scaled', usurper king of Impiltur.
Code:
24059 = {
name = Agrosh
dynasty = 3803 # Tarrik
father = 24058 # Duke Errendil Tarrik (possessed by Eltab)
mother = 24187 # Varlora Shimmercrag
trait = creature_human
trait = half_fiend
religion = abyssal_cult
culture = cambion
688.1.1 = {
birth = yes
culture = impilturan
effect_even_if_dead = {
set_real_father = 66230 # Eltab
c_66230 = {
any_owned_bloodline = {
add_bloodline_member = ROOT
}
}
}
}
708.1.1 = {
give_nickname = nick_the_scaled
}
726.1.1 = { add_spouse = 66229 } # Soneillon
729.1.1 = {
death = {
death_reason = death_battle
killer = 24227 # Belthar Garshin
}
}
}
The story here is that his ostensible father Errendil was possessed by Eltab, a demon. Eltab is a playable character with a bloodline, so we wanted this historical character to appear as having been part of that bloodline. The bit that does the magic is the
effect_even_if_dead clause, especially the bit that starts
c_66230 =. That scopes to the character with ID 66230 (which is Eltab), and then chooses all his bloodlines (he only has one) and then adds ROOT (which is Agrosh) to it.
One thing to note is that if a bloodline doesn't permit bastards to inherit it, then you can't add a bastard to it, even by this method. (We tried this with another historical character and a different bloodline, and it just didn't work. In the end we created a new, legitimate member of the bloodline to pass it on to the later generations.)
nd