WHAT: none
WHERE: none
WHEN: 0 - 24
WHO: LL_Actor = getSpecific(PassedOn)
OTHER: none

    SceneStart()

    
    // LL_FT : LostLegends Family Tree Mod.
    //
    /////////////////////////////////////////////////////////////////
    //TO OTHER MODDERS WHO MAY WISH TO USE THIS FOR FAMILY GENERATION
    //DONOT USE FOR TEMPORARY NPC'S.
    //DONOT USE FOR PLAYER FAMILY NPC'S
    //USAGE:
    //set the options from '//Get options'
    //using the format from '//LL_FT: basic method'
    //E.G:
    //LL_FT_Ex.setGlobal(1)// This will generate an extended family//LL_FT_Ex.setGlobal(0)//Generates a basic family
    //LL_FT_PA.setGlobal(1)//This guarantees ParentA is generated and is female
    //LL_FT_PB.setGlobal(3)//This guarantees ParentB is generated but the sex is left to the family tree mod.
    //Actor.passOn() //This is the Actor you wish to give a family.
    //followUp(LL_Fam_Tree)
    //SceneEnd()
    /////////////////////////////////////////////////////////////////
    // A mod to generate Close or Extended NPC families.
    //Family Direct : ParentA : ParentB : Sibling : Sibling : Child : Child
    //Family Extended : GrandFather : GrandMother : Uncle : Aunt : Cousin : Cousin
    //LL_FT_Ex :0 = Basic Family : 1 = Extended Family
    //LL_FT: basic method : 0=Generator choice : 1=Must Exist Female:2=Must Exist Male:3=Must Exist Generate : 9=Cannot Exist.
    //LL_FT_So: basic method : 0=Generator choice : 1=Single : 2=Dating : 3=Married
    //Basic
    //LL_FT_PA:ParentA//LL_FT_PB:ParentB// basic method or 'ParentB sex is taken from ParentA attraction, If Bi or Asexul Use opposite sex'
    //LL_FT_SA:SiblingA//LL_FT_SB:Sibling// basic method
    //LL_FT_CA:ChildA//LL_FT_CB:ChildB// basic method
    //Extended
    //LL_FT_GF:GrandFather//LL_FT_GM:GrandMother//Not using alternate sex's for grandparents
    //LL_FT_UA:Uncle/Aunt A//LL_FT_UB:Uncle/Aunt B//Only using blood relatives so A and B are siblings rather than a couple.Leave game to gen spouses
    //LL_FT_CA:CousinA//LL_FT_CB:CousinB//CousinA is child of UncleA//CousinB is child of UncleB// So CousinA is Cousin of CousinB and Main NPC.
    
    //Get options

    LL_Age = LL_Actor:age
    AOC = LL_AOC.getGlobal()
    FitE = LL_Fit.getGlobal()
    FT_Ex = LL_FT_Ex.getGlobal()//Family Extended
    FT_So = LL_FT_So.getGlobal()//Partner
    FT_PA = LL_FT_PA.getGlobal()//ParentA   
    FT_PB = LL_FT_PB.getGlobal()//ParentB
    FT_SA = LL_FT_SA.getGlobal()//SiblingA
    FT_SB = LL_FT_SB.getGlobal()//SiblingB
    FT_CA = LL_FT_CA.getGlobal()//ChildA
    FT_CB = LL_FT_CB.getGlobal()//ChildB
    //Extended
    FT_GF = LL_FT_GF.getGlobal()//GrandFather
    FT_GM = LL_FT_GM.getGlobal()//GrandMother
    FT_UA = LL_FT_UA.getGlobal()//Uncle/Aunt A
    FT_UB = LL_FT_UB.getGlobal()//Uncle/Aunt B
    FT_CoA = LL_FT_CoA.getGlobal()//CousinA
    FT_CoB = LL_FT_CoB.getGlobal()//CousinB
    
    FT_Po = LL_FT_Po.getGlobal()//Return Program//Only for use within LL_Mods (or agreed mods)as this will need constant updates
    /////////////////////////
    //Basic Family
    //Significant other
    If FitE == 1
        LL_Actor:Fitness => 100
    Endif
    LL_So = 0
    If FT_So == 0
        If LL_Age < 16
            tmpModA = 0
            tmpModB = 10
        Elseif LL_Age < 18
            tmpModA = 2
            tmpModB = 30
        Elseif LL_Age < 21
            tmpModA = 10
            tmpModB = 50
        Elseif LL_Age < 25
            tmpModA = 40
            tmpModB = 60
        Else
            tmpModA = 70
            tmpModB = 80
        Endif
        tmp = Random(0,100)
        If tmp < tmpModA //chance of married
            FT_So = 3
        Elseif tmp < tmpModB //chance of Dating
            FT_So = 2
        Else
            FT_So = 1
        Endif
    Endif
    If FT_So > 1 //1 = single
        //Generate attracted partner
        Active_Actor = generatePersonTemporary()
        If LL_Actor.isAsexual()//main actor is asexual so only use partner preference
            While !Active_Actor.isInterestedIn(LL_Actor)
                Active_Actor = generatePersonTemporary()
            Endwhile            
        Else
            While !LL_Actor.isInterestedIn(Active_Actor) || !Active_Actor.isInterestedIn(LL_Actor)
                Active_Actor = generatePersonTemporary()
            Endwhile
        Endif
        //Generate SO age within 5 of actor
        tmpA = LL_Actor:age
        tmpA += Random (-5, 5)
        If tmpA < AOC
            tmpA = AOC
        Endif
        Active_Actor:age => tmpA
        Active_Actor.makePermanent()
        LL_So = Active_Actor.getID()
        
        If Active_Actor:age < 15
            Active_Actor.blendPreset(MF_Child)
        If Active_Actor:age < 16
            Active_Actor.blendPreset(MF_Teen)                   
        Elseif Active_Actor:age < 17
            Active_Actor.blendPreset(MF_Student)
        Elseif Active_Actor:age < 20
            Active_Actor.blendPreset(Teen)
        Elseif Active_Actor:age < 30
            Active_Actor.blendPreset(twenties)
        Elseif Active_Actor:age < 40
            Active_Actor.blendPreset(thirties)
        Elseif Active_Actor:age < 50
            Active_Actor.blendPreset(fourties)
        Elseif Active_Actor:age < 60
            Active_Actor.blendPreset(fifties)
        Elseif Active_Actor:age < 70
            Active_Actor.blendPreset(sixties)
        Else
            Active_Actor.blendPreset(seventies_plus)
        Endif
        If FitE == 1
            Active_Actor:Fitness => 100
        Endif
        
        Active_Actor.saveandDelete()
    Endif
    Active_Actor = null
    /////////////////////////
    //Basic Family
    //Maternal Actor
    LL_PA = 0
    If FT_PA == 0 // Generator choice
        tmp = Random(16,90)
        If tmp > LL_Actor:age
            FT_PA = 3//ParentA Exists
        Else
            FT_PA = 9//ParentA does not Exist
        Endif
    Endif
    If FT_PA < 9
        If FT_PA == 1 //Female
            Active_Actor = LL_Actor.generatePersonTemporaryMatchRace()
            While LL_ParentA.isMale()
                Active_Actor = LL_Actor.generatePersonTemporaryMatchRace()
            Endwhile
        Elseif FT_PA == 2 //Male
            Active_Actor = LL_Actor.generatePersonTemporaryMatchRace()
            While !LL_ParentA.isMale()
                Active_Actor = LL_Actor.generatePersonTemporaryMatchRace()
            Endwhile
        Else //Game Choice
            Active_Actor = LL_Actor.generatePersonTemporaryMatchRace()
        Endif
        Active_Actor:age => (LL_Actor:age + Random(20, 30))
        Active_Actor.makePermanent()
        LL_PA = Active_Actor.getID()
        
        If Active_Actor:age < 15
            Active_Actor.blendPreset(MF_Child)
        If Active_Actor:age < 16
            Active_Actor.blendPreset(MF_Teen)                   
        Elseif Active_Actor:age < 17
            Active_Actor.blendPreset(MF_Student)
        Elseif Active_Actor:age < 20
            Active_Actor.blendPreset(Teen)
        Elseif Active_Actor:age < 30
            Active_Actor.blendPreset(twenties)
        Elseif Active_Actor:age < 40
            Active_Actor.blendPreset(thirties)
        Elseif Active_Actor:age < 50
            Active_Actor.blendPreset(fourties)
        Elseif Active_Actor:age < 60
            Active_Actor.blendPreset(fifties)
        Elseif Active_Actor:age < 70
            Active_Actor.blendPreset(sixties)
        Else
            Active_Actor.blendPreset(seventies_plus)
        Endif
        If FitE == 1
            Active_Actor:Fitness => 100
        Endif
        
        //Active_Actor.saveandDelete()      
    Endif

    /////////////////////////
    //Basic Family
    //Paternal Actor
    LL_PB = 0
    If FT_PB == 0 // Generator choice
        tmp = Random(16,90)
        If tmp > LL_Actor:age
            FT_PB = 3//ParentB Exists
        Else
            FT_PB = 9//ParentB does not Exist
        Endif
    Endif
    If FT_PB < 9
        If FT_PB == 1 //Female
            Active_ActorB = LL_Actor.generatePersonTemporaryMatchRace()
            While Active_ActorB.isMale()
                Active_ActorB = LL_Actor.generatePersonTemporaryMatchRace()
            Endwhile
        Elseif FT_PB == 2 //Male
            Active_ActorB = LL_Actor.generatePersonTemporaryMatchRace()
            While !Active_ActorB.isMale()
                Active_ActorB = LL_Actor.generatePersonTemporaryMatchRace()
            Endwhile
        Else //Game Choice
            If !Active_Actor.isValid()// There is no Maternal NPC
                Active_ActorB = LL_Actor.generatePersonTemporaryMatchRace()
            Else
                If Active_Actor.isAsexual()//main actor is asexual so only use partner preference
                    While !Active_ActorB.isInterestedIn(Active_Actor)
                        Active_ActorB = generatePersonTemporaryMatchRace()
                    Endwhile            
                Else
                    While !Active_Actor.isInterestedIn(Active_ActorB) || !Active_ActorB.isInterestedIn(Active_Actor)
                        Active_ActorB = generatePersonTemporaryMatchRace()
                    Endwhile
                Endif           
            Endif
        Endif
        Active_ActorB:age => (LL_Actor:age + Random(20, 30))
        Active_ActorB.makePermanent()
        LL_PB = Active_ActorB.getID()
        
        If Active_ActorB:age < 15
            Active_ActorB.blendPreset(MF_Child)
        If Active_ActorB:age < 16
            Active_ActorB.blendPreset(MF_Teen)                   
        Elseif Active_ActorB:age < 17
            Active_ActorB.blendPreset(MF_Student)
        Elseif Active_ActorB:age < 20
            Active_ActorB.blendPreset(Teen)
        Elseif Active_ActorB:age < 30
            Active_ActorB.blendPreset(twenties)
        Elseif Active_ActorB:age < 40
            Active_ActorB.blendPreset(thirties)
        Elseif Active_ActorB:age < 50
            Active_ActorB.blendPreset(fourties)
        Elseif Active_ActorB:age < 60
            Active_ActorB.blendPreset(fifties)
        Elseif Active_ActorB:age < 70
            Active_ActorB.blendPreset(sixties)
        Else
            Active_ActorB.blendPreset(seventies_plus)
        Endif
        If FitE == 1
            Active_Actor:Fitness => 100
            Active_ActorB:Fitness => 100
        Endif
        
        Active_Actor.saveandDelete()
        Active_ActorB.saveandDelete()       
    Endif
    Active_Actor = null
    Active_ActorB = null
    /////////////////////////
    //Basic Family
    //Sibling A
    LL_SA = 0
    If FT_SA == 0 // Generator choice
        If Random(0,100) < 50
            FT_SA = 3//SiblingA Exists
        Else
            FT_SA = 9//SiblingA does not Exist
        Endif
    Endif
    If FT_SA < 9
        If FT_SA == 1 //Female
            Active_Actor = LL_Actor.generatePersonTemporaryMatchRace()
            While Active_Actor.isMale()
                Active_Actor = LL_Actor.generatePersonTemporaryMatchRace()
            Endwhile
        Elseif FT_SA == 2 //Male
            Active_Actor = LL_Actor.generatePersonTemporaryMatchRace()
            While !Active_Actor.isMale()
                Active_Actor = LL_Actor.generatePersonTemporaryMatchRace()
            Endwhile
        Else //Game Choice  
            Active_Actor = LL_Actor.generatePersonTemporaryMatchRace()
        Endif
        Active_Actor:age => (LL_Actor:age + Random(-5, 5))
        Active_Actor.makePermanent()
        LL_SA = Active_Actor.getID()
        
        If Active_Actor:age < 15
            Active_Actor.blendPreset(MF_Child)
        If Active_Actor:age < 16
            Active_Actor.blendPreset(MF_Teen)                   
        Elseif Active_Actor:age < 17
            Active_Actor.blendPreset(MF_Student)
        Elseif Active_Actor:age < 20
            Active_Actor.blendPreset(Teen)
        Elseif Active_Actor:age < 30
            Active_Actor.blendPreset(twenties)
        Elseif Active_Actor:age < 40
            Active_Actor.blendPreset(thirties)
        Elseif Active_Actor:age < 50
            Active_Actor.blendPreset(fourties)
        Elseif Active_Actor:age < 60
            Active_Actor.blendPreset(fifties)
        Elseif Active_Actor:age < 70
            Active_Actor.blendPreset(sixties)
        Else
            Active_Actor.blendPreset(seventies_plus)
        Endif
        If FitE == 1
            Active_Actor:Fitness => 100
        Endif
        
        Active_Actor.saveandDelete()
    Endif
    Active_Actor = null
    /////////////////////////
    //Basic Family
    //Sibling B
    LL_SB = 0
    If FT_SA == 0 // Generator choice
        If Random(0,100) < 50
            FT_SA = 3//SiblingA Exists
        Else
            FT_SA = 9//SiblingA does not Exist
        Endif
    Endif
    If FT_SB < 9
        If FT_SB == 1 //Female
            Active_Actor = LL_Actor.generatePersonTemporaryMatchRace()
            While Active_Actor.isMale()
                Active_Actor = LL_Actor.generatePersonTemporaryMatchRace()
            Endwhile
        Elseif FT_SB == 2 //Male
            Active_Actor = LL_Actor.generatePersonTemporaryMatchRace()
            While !Active_Actor.isMale()
                Active_Actor = LL_Actor.generatePersonTemporaryMatchRace()
            Endwhile
        Else //Game Choice  
            Active_Actor = LL_Actor.generatePersonTemporaryMatchRace()
        Endif
        Active_Actor:age => (LL_Actor:age + Random(-5, 5))
        Active_Actor.makePermanent()
        LL_SB = Active_Actor.getID()
        
        If Active_Actor:age < 15
            Active_Actor.blendPreset(MF_Child)
        If Active_Actor:age < 16
            Active_Actor.blendPreset(MF_Teen)                   
        Elseif Active_Actor:age < 17
            Active_Actor.blendPreset(MF_Student)
        Elseif Active_Actor:age < 20
            Active_Actor.blendPreset(Teen)
        Elseif Active_Actor:age < 30
            Active_Actor.blendPreset(twenties)
        Elseif Active_Actor:age < 40
            Active_Actor.blendPreset(thirties)
        Elseif Active_Actor:age < 50
            Active_Actor.blendPreset(fourties)
        Elseif Active_Actor:age < 60
            Active_Actor.blendPreset(fifties)
        Elseif Active_Actor:age < 70
            Active_Actor.blendPreset(sixties)
        Else
            Active_Actor.blendPreset(seventies_plus)
        Endif
        If FitE == 1
            Active_Actor:Fitness => 100
        Endif
        
        Active_Actor.saveandDelete()
    Endif
    Active_Actor = null 
    /////////////////////////
    //Basic Family
    //Child A
    LL_CA = 0
    If FT_CA == 0 // Generator choice
        tmp = Random(0,100)
        If LL_Age < 16
            tmpMod = 2
        Elseif LL_Age < 18
            tmpMod = 5
        Elseif LL_Age < 21
            tmpMod = 15
        Elseif LL_Age < 25
            tmpMod = 40
        Else
            tmpMod = 70
        Endif
        If tmp < tmpMod//ChildA Exists  
            FT_CA = 3
        Else    
            FT_CA = 9
        Endif
    Endif
    If FT_CA < 9
        If FT_CA == 1 //Female
            Active_Actor = LL_Actor.generatePersonTemporaryMatchRace()
            While Active_Actor.isMale()
                Active_Actor = LL_Actor.generatePersonTemporaryMatchRace()
            Endwhile
        Elseif FT_CA == 2 //Male
            Active_Actor = LL_Actor.generatePersonTemporaryMatchRace()
            While !Active_Actor.isMale()
                Active_Actor = LL_Actor.generatePersonTemporaryMatchRace()
            Endwhile
        Else //Game Choice  
            Active_Actor = LL_Actor.generatePersonTemporaryMatchRace()
        Endif
        Active_Actor:age => (LL_Actor:age - Random(18, 35))
        If Active_Actor:age < 1
            Active_Actor:age => 1
        Endif
        Active_Actor.makePermanent()
        LL_CA = Active_Actor.getID()
        
        If Active_Actor:age < 15
            Active_Actor.blendPreset(MF_Child)
        If Active_Actor:age < 16
            Active_Actor.blendPreset(MF_Teen)                   
        Elseif Active_Actor:age < 17
            Active_Actor.blendPreset(MF_Student)
        Elseif Active_Actor:age < 20
            Active_Actor.blendPreset(Teen)
        Elseif Active_Actor:age < 30
            Active_Actor.blendPreset(twenties)
        Elseif Active_Actor:age < 40
            Active_Actor.blendPreset(thirties)
        Elseif Active_Actor:age < 50
            Active_Actor.blendPreset(fourties)
        Elseif Active_Actor:age < 60
            Active_Actor.blendPreset(fifties)
        Elseif Active_Actor:age < 70
            Active_Actor.blendPreset(sixties)
        Else
            Active_Actor.blendPreset(seventies_plus)
        Endif
        If FitE == 1
            Active_Actor:Fitness => 100
        Endif
        
        Active_Actor.saveandDelete()    
    Endif
    Active_Actor = null
    /////////////////////////
    //Basic Family
    //Child B
    LL_CB = 0
    If FT_CB == 0 // Generator choice
        tmp = Random(0,100)
        If LL_Age < 16
            tmpMod = 2
        Elseif LL_Age < 18
            tmpMod = 5
        Elseif LL_Age < 21
            tmpMod = 15
        Elseif LL_Age < 25
            tmpMod = 40
        Else
            tmpMod = 70
        Endif
        If tmp < tmpMod//ChildB Exists  
            FT_CB = 3
        Else    
            FT_CB = 9
        Endif
    Endif
    If FT_CB < 9
        If FT_CB == 1 //Female
            Active_Actor = LL_Actor.generatePersonTemporaryMatchRace()
            While Active_Actor.isMale()
                Active_Actor = LL_Actor.generatePersonTemporaryMatchRace()
            Endwhile
        Elseif FT_CB == 2 //Male
            Active_Actor = LL_Actor.generatePersonTemporaryMatchRace()
            While !Active_Actor.isMale()
                Active_Actor = LL_Actor.generatePersonTemporaryMatchRace()
            Endwhile
        Else //Game Choice  
            Active_Actor = LL_Actor.generatePersonTemporaryMatchRace()
        Endif
        Active_Actor:age => (LL_Actor:age - Random(18, 35))
        If Active_Actor:age < 1
            Active_Actor:age => 1
        Endif
        Active_Actor.makePermanent()
        LL_CB = Active_Actor.getID()
        
        If Active_Actor:age < 15
            Active_Actor.blendPreset(MF_Child)
        If Active_Actor:age < 16
            Active_Actor.blendPreset(MF_Teen)                   
        Elseif Active_Actor:age < 17
            Active_Actor.blendPreset(MF_Student)
        Elseif Active_Actor:age < 20
            Active_Actor.blendPreset(Teen)
        Elseif Active_Actor:age < 30
            Active_Actor.blendPreset(twenties)
        Elseif Active_Actor:age < 40
            Active_Actor.blendPreset(thirties)
        Elseif Active_Actor:age < 50
            Active_Actor.blendPreset(fourties)
        Elseif Active_Actor:age < 60
            Active_Actor.blendPreset(fifties)
        Elseif Active_Actor:age < 70
            Active_Actor.blendPreset(sixties)
        Else
            Active_Actor.blendPreset(seventies_plus)
        Endif
        If FitE == 1
            Active_Actor:Fitness => 100
        Endif
        
        Active_Actor.saveandDelete()    
    Endif
    Active_Actor = null
    /////////////////////////
    //Basic Family
    //Set Relationships 
    //SO
    clearGetList()
    If LL_So > 0 //Significant other exist
        Active_Actor = getSpecific(LL_So)
        If FT_So == 2
            addNpcRelationship(Dating, Active_Actor, LL_Actor)
        Else
            Active_Actor.matchLastName(LL_Actor)
            addNpcRelationship(Spouses, Active_Actor, LL_Actor)
            If LL_CA > 0
                Active_ActorB = getSpecific(LL_CA)
                addNpcRelationship(ParentChild, Active_Actor, Active_ActorB)
                Active_ActorB.saveandDelete()
            Endif
            If LL_CB > 0
                Active_ActorB = getSpecific(LL_CB)
                addNpcRelationship(ParentChild, Active_Actor, Active_ActorB)
                Active_ActorB.saveandDelete()
            Endif   
        Endif
        Active_Actor.saveandDelete()
    Endif
    //Maternal Actor
    clearGetList()
    If LL_PA > 0 
        Active_Actor = getSpecific(LL_PA)
        Active_Actor.matchLastName(LL_Actor)
        addNpcRelationship(ParentChild, Active_Actor, LL_Actor)
        If LL_SA > 0
            Active_ActorB = getSpecific(LL_SA)
            addNpcRelationship(ParentChild, Active_Actor, Active_ActorB)
            Active_ActorB.saveandDelete()
        Endif
        If LL_SB > 0
            Active_ActorB = getSpecific(LL_SB)
            addNpcRelationship(ParentChild, Active_Actor, Active_ActorB)
            Active_ActorB.saveandDelete()
        Endif
        If LL_CA > 0
            Active_ActorB = getSpecific(LL_CA)
            addNpcRelationship(GrandParentChild, Active_Actor, Active_ActorB)
            Active_ActorB.saveandDelete()
        Endif
        If LL_CB > 0
            Active_ActorB = getSpecific(LL_CB)
            addNpcRelationship(GrandParentChild, Active_Actor, Active_ActorB)
            Active_ActorB.saveandDelete()
        Endif
        If LL_PB > 0
            Active_ActorB = getSpecific(LL_PB)
            addNpcRelationship(Spouses, Active_Actor, Active_ActorB)
            Active_ActorB.saveandDelete()
        Endif
    Endif
    //Maternal Actor
    clearGetList()
    If LL_PB > 0 
        Active_Actor = getSpecific(LL_PB)
        Active_Actor.matchLastName(LL_Actor)
        addNpcRelationship(ParentChild, Active_Actor, LL_Actor)
        If LL_SA > 0
            Active_ActorB = getSpecific(LL_SA)
            addNpcRelationship(ParentChild, Active_Actor, Active_ActorB)
            Active_ActorB.saveandDelete()
        Endif
        If LL_SB > 0
            Active_ActorB = getSpecific(LL_SB)
            addNpcRelationship(ParentChild, Active_Actor, Active_ActorB)
            Active_ActorB.saveandDelete()
        Endif
        If LL_CA > 0
            Active_ActorB = getSpecific(LL_CA)
            addNpcRelationship(GrandParentChild, Active_Actor, Active_ActorB)
            Active_ActorB.saveandDelete()
        Endif
        If LL_CB > 0
            Active_ActorB = getSpecific(LL_CB)
            addNpcRelationship(GrandParentChild, Active_Actor, Active_ActorB)
            Active_ActorB.saveandDelete()
        Endif
        Active_Actor.saveandDelete()
    Endif
    //Sibling A
    clearGetList()
    If LL_SA > 0 
        Active_Actor = getSpecific(LL_SA)
        Active_Actor.matchLastName(LL_Actor)
        addNpcRelationship(Siblings, Active_Actor, LL_Actor)
        If LL_SB > 0
            Active_ActorB = getSpecific(LL_SB)
            addNpcRelationship(Siblings, Active_Actor, Active_ActorB)
            Active_ActorB.saveandDelete()
        Endif
        Active_Actor.saveandDelete()
    Endif
    //Sibling B
    clearGetList()
    If LL_SB > 0 
        Active_Actor = getSpecific(LL_SB)
        Active_Actor.matchLastName(LL_Actor)
        addNpcRelationship(Siblings, Active_Actor, LL_Actor)
        Active_Actor.saveandDelete()
    Endif
    //ChildA
    clearGetList()
    If LL_CA > 0 
        Active_Actor = getSpecific(LL_CA)
        Active_Actor.matchLastName(LL_Actor)
        addNpcRelationship(ParentChild, LL_Actor, Active_Actor)
        If LL_CB > 0
            Active_ActorB = getSpecific(LL_CB)
            addNpcRelationship(Siblings, Active_Actor, Active_ActorB)
            Active_ActorB.saveandDelete()
        Endif
        Active_Actor.saveandDelete()
    Endif
    //Child B
    clearGetList()
    If LL_CB > 0 
        Active_Actor = getSpecific(LL_CB)
        Active_Actor.matchLastName(LL_Actor)
        addNpcRelationship(ParentChild, LL_Actor, Active_Actor)
        Active_Actor.saveandDelete()
    Endif
    SceneEnd()
