Ladies de nuevos reinos sin reino..

    Comparte
    avatar
    Rafalongo
    Modder
    Modder

    Mensajes : 471
    Edad : 27
    Facción : Reino de Swadia

    Ladies de nuevos reinos sin reino..

    Mensaje por Rafalongo el Sáb Sep 26, 2015 1:13 am

    Buenasss Calradianos y calradianas, a ver si algunos scriptero me puede ayudar con esta cuestion, sustituí en module_script el codigo original de debajo de "initialize_aristocracy" (el segundo que aparece al buscar) por este codigo en dos partes, la primera que hice yo donde defino edades y parentescos entre señores y ladies de forma manual, la segunda la copie como estaba y es para que haya compatibilidad entre los parentescos puestos de forma manual y los antigüos scripts que definian eso de forma "automatica"... el problema es que de los 6 reinos principales quedaron todos los parentescos y edades como yo los definí, pero las ladies de los nuevos reinos no tienen los parentescos que yo les puse, ni las edades, y tampoco los reyes y señores de los nuevos reinos, no tienen edades tampoco... ademas, la primer lady nueva que coloque, la trp_kingdom_7_lady_1 no tiene sus parentescos ni edad y ademas aparece como vasallo del reino 1 !! a otras mas tambien les pasa lo mismo, y otras dice "lady peperina ha abandonado el reino"

    este es el codigo que uso, quizas le falte algo, o haya algo en alguna parte que valide solo las tropas que van del reino 1 al 6 y debo cambiarlo...

    script:

    Código:
    ("initialize_aristocracy",
     [
         #LORD OCCUPATIONS, BLOOD RELATIONSHIPS, RENOWN AND REPUTATIONS

    #chief cambia arbol familiar    
         #King ages
    #     (try_for_range, ":cur_troop", kings_begin, kings_end),
    #      (troop_set_slot, ":cur_troop", slot_troop_occupation, slto_kingdom_hero),
    #      (store_random_in_range, ":age", 50, 60),
    #      (troop_set_slot, ":cur_troop", slot_troop_age, ":age"),
    #      (eq, ":cur_troop", "trp_kingdom_5_lord"),
    #      (troop_set_slot, ":cur_troop", slot_troop_age, 47),  
    #     (try_end),
            
         (troop_set_slot, "trp_kingdom_1_lord", slot_troop_age, 51),  
         (troop_set_slot, "trp_kingdom_2_lord", slot_troop_age, 44),  
         (troop_set_slot, "trp_kingdom_3_lord", slot_troop_age, 22),  
         (troop_set_slot, "trp_kingdom_4_lord", slot_troop_age, 43),  
         (troop_set_slot, "trp_kingdom_5_lord", slot_troop_age, 36),  
         (troop_set_slot, "trp_kingdom_6_lord", slot_troop_age, 27),  
         (troop_set_slot, "trp_kingdom_7_lord", slot_troop_age, 46),  
         (troop_set_slot, "trp_kingdom_8_lord", slot_troop_age, 33),  
         (troop_set_slot, "trp_kingdom_9_lord", slot_troop_age, 53),  
         (troop_set_slot, "trp_kingdom_10_lord", slot_troop_age, 40),  
         (troop_set_slot, "trp_kingdom_11_lord", slot_troop_age, 63),  
         (troop_set_slot, "trp_kingdom_12_lord", slot_troop_age, 31),  
         (troop_set_slot, "trp_kingdom_13_lord", slot_troop_age, 18),  
         (troop_set_slot, "trp_kingdom_14_lord", slot_troop_age, 44),  
         (troop_set_slot, "trp_kingdom_15_lord", slot_troop_age, 69),  
         (troop_set_slot, "trp_kingdom_16_lord", slot_troop_age, 33),  
         (troop_set_slot, "trp_kingdom_17_lord", slot_troop_age, 40),  
         (troop_set_slot, "trp_kingdom_18_lord", slot_troop_age, 58),  

        (troop_set_slot, "trp_knight_1_1", slot_troop_age, 40),  
        (troop_set_slot, "trp_knight_1_2", slot_troop_age, 38),
        (troop_set_slot, "trp_knight_1_3", slot_troop_age, 63),  
        (troop_set_slot, "trp_knight_1_4", slot_troop_age, 48),  
        (troop_set_slot, "trp_knight_1_9", slot_troop_age, 21),  
        (troop_set_slot, "trp_knight_1_10", slot_troop_age, 20),  
        (troop_set_slot, "trp_knight_1_11", slot_troop_age, 15),  
        (troop_set_slot, "trp_knight_1_12", slot_troop_age, 24),  
        (troop_set_slot, "trp_kingdom_1_lady_9", slot_troop_age, 14),  
        (troop_set_slot, "trp_kingdom_1_lady_10", slot_troop_age, 12),  
        (troop_set_slot, "trp_kingdom_1_lady_5", slot_troop_age, 15),  
        (troop_set_slot, "trp_kingdom_1_lady_8", slot_troop_age, 16),  
        (troop_set_slot, "trp_kingdom_1_lady_12", slot_troop_age, 21),  
        (troop_set_slot, "trp_kingdom_1_lady_13", slot_troop_age, 17),  
        (troop_set_slot, "trp_kingdom_1_lady_14", slot_troop_age, 18),  
        (troop_set_slot, "trp_kingdom_1_lady_15", slot_troop_age, 20),  
        (troop_set_slot, "trp_kingdom_1_lady_16", slot_troop_age, 18),  
        (troop_set_slot, "trp_kingdom_1_lady_17", slot_troop_age, 16),  
        (troop_set_slot, "trp_kingdom_1_lady_18", slot_troop_age, 17),  
        (troop_set_slot, "trp_kingdom_1_lady_19", slot_troop_age, 21),  
        (troop_set_slot, "trp_kingdom_1_lady_20", slot_troop_age, 15),  

         (troop_set_slot, "trp_knight_1_9", slot_troop_mother, "trp_kingdom_1_lady_11"),
         (troop_set_slot, "trp_knight_1_10", slot_troop_mother, "trp_kingdom_1_lady_11"),
         (troop_set_slot, "trp_knight_1_11", slot_troop_mother, "trp_kingdom_1_lady_11"),
         (troop_set_slot, "trp_kingdom_1_lady_9", slot_troop_mother, "trp_kingdom_1_lady_11"),
         (troop_set_slot, "trp_kingdom_1_lady_10", slot_troop_mother, "trp_kingdom_1_lady_11"),
         (troop_set_slot, "trp_kingdom_1_lady_11", slot_troop_father, "trp_knight_1_3"),
         (troop_set_slot, "trp_knight_1_12", slot_troop_father, "trp_kingdom_1_lady_7"),
         (troop_set_slot, "trp_knight_1_1", slot_troop_spouse, "trp_kingdom_1_lady_2"),
         (troop_set_slot, "trp_knight_1_1", slot_troop_father, "trp_knight_1_3"),
         (troop_set_slot, "trp_knight_1_3", slot_troop_spouse, "trp_kingdom_1_lady_1"),
         (troop_set_slot, "trp_knight_1_2", slot_troop_spouse, "trp_kingdom_1_lady_3"),
         (troop_set_slot, "trp_knight_1_4", slot_troop_spouse, "trp_kingdom_1_lady_4"),
         (troop_set_slot, "trp_knight_1_5", slot_troop_spouse, "trp_kingdom_1_lady_6"),
         (troop_set_slot, "trp_kingdom_1_lady_5", slot_troop_father, "trp_knight_1_1"),
         (troop_set_slot, "trp_kingdom_1_lady_8", slot_troop_father, "trp_knight_1_1"),
         (troop_set_slot, "trp_kingdom_1_lady_12", slot_troop_father, "trp_knight_1_3"),
         (troop_set_slot, "trp_kingdom_1_lady_13", slot_troop_father, "trp_knight_1_4"),
         (troop_set_slot, "trp_kingdom_1_lady_14", slot_troop_father, "trp_knight_1_4"),
         (troop_set_slot, "trp_kingdom_1_lady_15", slot_troop_father, "trp_knight_1_5"),
         (troop_set_slot, "trp_kingdom_1_lady_16", slot_troop_father, "trp_knight_1_6"),
         (troop_set_slot, "trp_kingdom_1_lady_17", slot_troop_father, "trp_knight_1_7"),
         (troop_set_slot, "trp_kingdom_1_lady_18", slot_troop_guardian, "trp_knight_1_8"),
         (troop_set_slot, "trp_kingdom_1_lady_19", slot_troop_guardian, "trp_knight_1_13"),
         (troop_set_slot, "trp_kingdom_1_lady_20", slot_troop_guardian, "trp_knight_1_14"),

         (troop_set_slot, "trp_knight_3_1", slot_troop_age, 41),  

     (try_for_range, ":cur_troop", lords_begin, lords_end),
     (troop_set_slot, ":cur_troop", slot_troop_occupation, slto_kingdom_hero),
     
     (store_random_in_range, ":lord_renown", 200, 350),
     (troop_set_slot, ":cur_troop", slot_troop_renown, ":lord_renown"),
     
     (store_random_in_range, ":lord_reputation", 20, 26),
     (try_begin),
     (eq, ":lord_reputation", 20),
     (assign, ":lord_reputation", lrep_martial),
     (else_try),
        (eq, ":lord_reputation", 21),
     (assign, ":lord_reputation", lrep_quarrelsome),
     (else_try),
        (eq, ":lord_reputation", 22),
     (assign, ":lord_reputation", lrep_selfrighteous),
     (else_try),
        (eq, ":lord_reputation", 23),
     (assign, ":lord_reputation", lrep_cunning),
     (else_try),
        (eq, ":lord_reputation", 24),
     (assign, ":lord_reputation", lrep_upstanding),
     (else_try),
     
     (assign, ":lord_reputation", lrep_debauched),
     
     (try_end),
     
     
     (troop_set_slot, ":cur_troop", slot_lord_reputation_type, ":lord_reputation"),
     
     
     
        (try_end),
     
     
     (try_for_range, ":cur_troop", lords_begin, lords_end),
     
     (else_try),
     
        (is_between, ":cur_troop", "trp_knight_2_1", "trp_knight_2_6"),
     (store_random_in_range, ":age", 49, 65),
     (troop_set_slot, ":cur_troop", slot_troop_age, ":age"),
     
     (else_try),
     (is_between, ":cur_troop", "trp_knight_2_6", "trp_knight_3_1"),
     (store_random_in_range, ":age", 20, 35),
     (troop_set_slot, ":cur_troop", slot_troop_age, ":age"),

     (else_try),
     
     (is_between, ":cur_troop", "trp_knight_3_2", "trp_knight_3_6"),
     (store_random_in_range, ":age", 49, 65),
     (troop_set_slot, ":cur_troop", slot_troop_age, ":age"),
     
     (else_try),
     (is_between, ":cur_troop", "trp_knight_3_6", "trp_knight_4_1"),
     (store_random_in_range, ":age", 20, 35),
     (troop_set_slot, ":cur_troop", slot_troop_age, ":age"),
     
     (else_try),
     (is_between, ":cur_troop", "trp_knight_4_5", "trp_knight_5_1"),
     (store_random_in_range, ":age", 20, 35),
     (troop_set_slot, ":cur_troop", slot_troop_age, ":age"),

     (else_try),
     
     (is_between, ":cur_troop", "trp_knight_5_1", "trp_knight_5_6"),
     (store_random_in_range, ":age", 49, 65),
     (troop_set_slot, ":cur_troop", slot_troop_age, ":age"),
     
     (else_try),
     (is_between, ":cur_troop", "trp_knight_5_6", "trp_knight_6_1"),
     (store_random_in_range, ":age", 20, 35),
     (troop_set_slot, ":cur_troop", slot_troop_age, ":age"),

     (else_try),
     
     (is_between, ":cur_troop", "trp_knight_6_1", "trp_knight_6_6"),
     (store_random_in_range, ":age", 49, 65),
     (troop_set_slot, ":cur_troop", slot_troop_age, ":age"),
     
     (else_try),
     (is_between, ":cur_troop", "trp_knight_6_6", "trp_knight_7_1"),
     (store_random_in_range, ":age", 20, 35),
     (troop_set_slot, ":cur_troop", slot_troop_age, ":age"),

     (else_try),
     
     (is_between, ":cur_troop", "trp_knight_7_1", "trp_knight_7_6"),
     (store_random_in_range, ":age", 49, 65),
     (troop_set_slot, ":cur_troop", slot_troop_age, ":age"),
     
     (else_try),
     (is_between, ":cur_troop", "trp_knight_7_6", "trp_knight_8_1"),
     (store_random_in_range, ":age", 20, 35),
     (troop_set_slot, ":cur_troop", slot_troop_age, ":age"),

     (else_try),
     
     (is_between, ":cur_troop", "trp_knight_8_1", "trp_knight_8_6"),
     (store_random_in_range, ":age", 49, 65),
     (troop_set_slot, ":cur_troop", slot_troop_age, ":age"),
     
     (else_try),
     (is_between, ":cur_troop", "trp_knight_8_6", "trp_knight_9_1"),
     (store_random_in_range, ":age", 20, 35),
     (troop_set_slot, ":cur_troop", slot_troop_age, ":age"),

     (else_try),
     
     (is_between, ":cur_troop", "trp_knight_9_1", "trp_knight_9_6"),
     (store_random_in_range, ":age", 49, 65),
     (troop_set_slot, ":cur_troop", slot_troop_age, ":age"),
     
     (else_try),
     (is_between, ":cur_troop", "trp_knight_9_6", "trp_knight_10_1"),
     (store_random_in_range, ":age", 20, 35),
     (troop_set_slot, ":cur_troop", slot_troop_age, ":age"),

     (else_try),
     
     (is_between, ":cur_troop", "trp_knight_10_1", "trp_knight_10_6"),
     (store_random_in_range, ":age", 49, 65),
     (troop_set_slot, ":cur_troop", slot_troop_age, ":age"),
     
     (else_try),
     (is_between, ":cur_troop", "trp_knight_10_6", "trp_knight_11_1"),
     (store_random_in_range, ":age", 20, 35),
     (troop_set_slot, ":cur_troop", slot_troop_age, ":age"),

     (else_try),
     
     (is_between, ":cur_troop", "trp_knight_11_1", "trp_knight_11_6"),
     (store_random_in_range, ":age", 49, 65),
     (troop_set_slot, ":cur_troop", slot_troop_age, ":age"),
     
     (else_try),
     (is_between, ":cur_troop", "trp_knight_11_6", "trp_knight_12_1"),
     (store_random_in_range, ":age", 20, 35),
     (troop_set_slot, ":cur_troop", slot_troop_age, ":age"),

     (else_try),
     
     (is_between, ":cur_troop", "trp_knight_12_1", "trp_knight_12_6"),
     (store_random_in_range, ":age", 49, 65),
     (troop_set_slot, ":cur_troop", slot_troop_age, ":age"),
     
     (else_try),
     (is_between, ":cur_troop", "trp_knight_12_6", "trp_knight_13_1"),
     (store_random_in_range, ":age", 20, 35),
     (troop_set_slot, ":cur_troop", slot_troop_age, ":age"),

     (else_try),
     
     (is_between, ":cur_troop", "trp_knight_13_1", "trp_knight_13_6"),
     (store_random_in_range, ":age", 49, 65),
     (troop_set_slot, ":cur_troop", slot_troop_age, ":age"),

     (else_try),
     
     (is_between, ":cur_troop", "trp_knight_13_6", "trp_knight_14_1"),
     (store_random_in_range, ":age", 49, 65),
     (troop_set_slot, ":cur_troop", slot_troop_age, ":age"),
     
     (else_try),
     
     (is_between, ":cur_troop", "trp_knight_14_1", "trp_knight_14_6"),
     (store_random_in_range, ":age", 49, 65),
     (troop_set_slot, ":cur_troop", slot_troop_age, ":age"),
     
     (else_try),
     (is_between, ":cur_troop", "trp_knight_14_6", "trp_knight_15_1"),
     (store_random_in_range, ":age", 20, 35),
     (troop_set_slot, ":cur_troop", slot_troop_age, ":age"),

     (else_try),
     
     (is_between, ":cur_troop", "trp_knight_15_1", "trp_knight_16_1"),
     (store_random_in_range, ":age", 35, 65),
     (troop_set_slot, ":cur_troop", slot_troop_age, ":age"),

     (else_try),
     
     (is_between, ":cur_troop", "trp_knight_16_1", "trp_knight_17_1"),
     (store_random_in_range, ":age", 30, 65),
     (troop_set_slot, ":cur_troop", slot_troop_age, ":age"),
     
     (else_try),
     
     (is_between, ":cur_troop", "trp_knight_17_1", "trp_knight_18_1"),
     (store_random_in_range, ":age", 45, 65),
     (troop_set_slot, ":cur_troop", slot_troop_age, ":age"),

     (else_try),
     
     (is_between, ":cur_troop", "trp_knight_18_1", "trp_knight_18_6"),
     (store_random_in_range, ":age", 49, 65),
     (troop_set_slot, ":cur_troop", slot_troop_age, ":age"),
     
     
     (else_try),
     (is_between, ":cur_troop", "trp_knight_18_6", "trp_kingdom_1_pretender"),
     (store_random_in_range, ":age", 20, 45),
     (troop_set_slot, ":cur_troop", slot_troop_age, ":age"),
             (try_end),


         (try_for_range, ":cur_troop", kingdom_ladies_begin, kingdom_ladies_end),

     (else_try),
     
            (is_between, ":cur_troop", "trp_kingdom_2_lady_1", "trp_kingdom_2_lady_6"),
     (store_random_in_range, ":age", 32, 55),
     (troop_set_slot, ":cur_troop", slot_troop_age, ":age"),
     
     (else_try),
     (is_between, ":cur_troop", "trp_kingdom_2_lady_6", "trp_kingdom_3_lady_1"),
     (store_random_in_range, ":age", 12, 21),
     (troop_set_slot, ":cur_troop", slot_troop_age, ":age"),

     (else_try),
     
            (is_between, ":cur_troop", "trp_kingdom_3_lady_1", "trp_kingdom_3_lady_6"),
     (store_random_in_range, ":age", 32, 55),
     (troop_set_slot, ":cur_troop", slot_troop_age, ":age"),
     
     (else_try),
     (is_between, ":cur_troop", "trp_kingdom_3_lady_6", "trp_kingdom_4_lady_1"),
     (store_random_in_range, ":age", 12, 21),
     (troop_set_slot, ":cur_troop", slot_troop_age, ":age"),
     
     (else_try),
     (is_between, ":cur_troop", "trp_kingdom_4_lady_5", "trp_kingdom_5_lady_1"),
     (store_random_in_range, ":age", 12, 21),
     (troop_set_slot, ":cur_troop", slot_troop_age, ":age"),

     (else_try),
     
            (is_between, ":cur_troop", "trp_kingdom_5_lady_1", "trp_kingdom_5_lady_6"),
     (store_random_in_range, ":age", 32, 55),
     (troop_set_slot, ":cur_troop", slot_troop_age, ":age"),
     
     (else_try),
     (is_between, ":cur_troop", "trp_kingdom_5_lady_6", "trp_kingdom_6_lady_1"),
     (store_random_in_range, ":age", 12, 21),
     (troop_set_slot, ":cur_troop", slot_troop_age, ":age"),

     (else_try),
     
            (is_between, ":cur_troop", "trp_kingdom_6_lady_1", "trp_kingdom_6_lady_6"),
     (store_random_in_range, ":age", 32, 55),
     (troop_set_slot, ":cur_troop", slot_troop_age, ":age"),
     
     (else_try),
     (is_between, ":cur_troop", "trp_kingdom_6_lady_6", "trp_kingdom_7_lady_1"),
     (store_random_in_range, ":age", 12, 21),
     (troop_set_slot, ":cur_troop", slot_troop_age, ":age"),

     (else_try),
     
            (is_between, ":cur_troop", "trp_kingdom_7_lady_1", "trp_kingdom_7_lady_4"),
     (store_random_in_range, ":age", 32, 55),
     (troop_set_slot, ":cur_troop", slot_troop_age, ":age"),
     
     (else_try),
     (is_between, ":cur_troop", "trp_kingdom_7_lady_4", "trp_kingdom_8_lady_1"),
     (store_random_in_range, ":age", 12, 21),
     (troop_set_slot, ":cur_troop", slot_troop_age, ":age"),

     (else_try),
     
            (is_between, ":cur_troop", "trp_kingdom_8_lady_1", "trp_kingdom_8_lady_6"),
     (store_random_in_range, ":age", 32, 55),
     (troop_set_slot, ":cur_troop", slot_troop_age, ":age"),
     
     (else_try),
     (is_between, ":cur_troop", "trp_kingdom_8_lady_6", "trp_kingdom_9_lady_1"),
     (store_random_in_range, ":age", 12, 21),
     (troop_set_slot, ":cur_troop", slot_troop_age, ":age"),

     (else_try),
     
            (is_between, ":cur_troop", "trp_kingdom_9_lady_1", "trp_kingdom_9_lady_4"),
     (store_random_in_range, ":age", 32, 55),
     (troop_set_slot, ":cur_troop", slot_troop_age, ":age"),
     
     (else_try),
     (is_between, ":cur_troop", "trp_kingdom_9_lady_4", "trp_kingdom_10_lady_1"),
     (store_random_in_range, ":age", 12, 21),
     (troop_set_slot, ":cur_troop", slot_troop_age, ":age"),

     (else_try),
     
            (is_between, ":cur_troop", "trp_kingdom_10_lady_1", "trp_kingdom_10_lady_4"),
     (store_random_in_range, ":age", 32, 55),
     (troop_set_slot, ":cur_troop", slot_troop_age, ":age"),
     
     (else_try),
     (is_between, ":cur_troop", "trp_kingdom_10_lady_4", "trp_kingdom_11_lady_1"),
     (store_random_in_range, ":age", 12, 21),
     (troop_set_slot, ":cur_troop", slot_troop_age, ":age"),

     (else_try),
     
            (is_between, ":cur_troop", "trp_kingdom_11_lady_1", "trp_kingdom_11_lady_4"),
     (store_random_in_range, ":age", 32, 55),
     (troop_set_slot, ":cur_troop", slot_troop_age, ":age"),
     
     (else_try),
     (is_between, ":cur_troop", "trp_kingdom_11_lady_4", "trp_kingdom_12_lady_1"),
     (store_random_in_range, ":age", 12, 21),
     (troop_set_slot, ":cur_troop", slot_troop_age, ":age"),

     (else_try),
     
            (is_between, ":cur_troop", "trp_kingdom_12_lady_1", "trp_kingdom_12_lady_4"),
     (store_random_in_range, ":age", 32, 55),
     (troop_set_slot, ":cur_troop", slot_troop_age, ":age"),
     
     (else_try),
     (is_between, ":cur_troop", "trp_kingdom_12_lady_4", "trp_kingdom_13_lady_1"),
     (store_random_in_range, ":age", 12, 21),
     (troop_set_slot, ":cur_troop", slot_troop_age, ":age"),

     (else_try),
     
            (is_between, ":cur_troop", "trp_kingdom_13_lady_1", "trp_kingdom_13_lady_4"),
     (store_random_in_range, ":age", 32, 55),
     (troop_set_slot, ":cur_troop", slot_troop_age, ":age"),
     
     (else_try),
     (is_between, ":cur_troop", "trp_kingdom_13_lady_4", "trp_kingdom_14_lady_1"),
     (store_random_in_range, ":age", 12, 21),
     (troop_set_slot, ":cur_troop", slot_troop_age, ":age"),

     (else_try),
     
            (is_between, ":cur_troop", "trp_kingdom_14_lady_1", "trp_kingdom_14_lady_4"),
     (store_random_in_range, ":age", 32, 55),
     (troop_set_slot, ":cur_troop", slot_troop_age, ":age"),
     
     (else_try),
     (is_between, ":cur_troop", "trp_kingdom_14_lady_4", "trp_kingdom_16_lady_1"),
     (store_random_in_range, ":age", 12, 21),
     (troop_set_slot, ":cur_troop", slot_troop_age, ":age"),

     (else_try),
     
            (is_between, ":cur_troop", "trp_kingdom_16_lady_1", "trp_kingdom_16_lady_4"),
     (store_random_in_range, ":age", 32, 55),
     (troop_set_slot, ":cur_troop", slot_troop_age, ":age"),
     
     (else_try),
     (is_between, ":cur_troop", "trp_kingdom_16_lady_4", "trp_kingdom_17_lady_1"),
     (store_random_in_range, ":age", 12, 21),
     (troop_set_slot, ":cur_troop", slot_troop_age, ":age"),

     (else_try),
     
            (is_between, ":cur_troop", "trp_kingdom_17_lady_1", "trp_kingdom_17_lady_4"),
     (store_random_in_range, ":age", 32, 55),
     (troop_set_slot, ":cur_troop", slot_troop_age, ":age"),
     
     (else_try),
     (is_between, ":cur_troop", "trp_kingdom_17_lady_4", "trp_kingdom_18_lady_1"),
     (store_random_in_range, ":age", 12, 21),
     (troop_set_slot, ":cur_troop", slot_troop_age, ":age"),

     (else_try),
     
            (is_between, ":cur_troop", "trp_kingdom_18_lady_1", "trp_kingdom_18_lady_4"),
     (store_random_in_range, ":age", 32, 55),
     (troop_set_slot, ":cur_troop", slot_troop_age, ":age"),
     
     (else_try),
     (is_between, ":cur_troop", "trp_kingdom_18_lady_4", "trp_heroes_end"),
     (store_random_in_range, ":age", 12, 21),
     (troop_set_slot, ":cur_troop", slot_troop_age, ":age"),

         (troop_set_slot, "trp_knight_2_1", slot_troop_spouse, "trp_kingdom_2_lady_1"),
         (troop_set_slot, "trp_knight_2_2", slot_troop_spouse, "trp_kingdom_2_lady_2"),
         (troop_set_slot, "trp_knight_2_3", slot_troop_spouse, "trp_kingdom_2_lady_3"),
         (troop_set_slot, "trp_knight_2_4", slot_troop_spouse, "trp_kingdom_2_lady_4"),
         (troop_set_slot, "trp_knight_2_5", slot_troop_spouse, "trp_kingdom_2_lady_5"),
         (troop_set_slot, "trp_kingdom_2_lady_6", slot_troop_father, "trp_knight_2_1"),    
         (troop_set_slot, "trp_kingdom_2_lady_7", slot_troop_father, "trp_knight_2_1"),    
         (troop_set_slot, "trp_kingdom_2_lady_8", slot_troop_father, "trp_knight_2_1"),    
         (troop_set_slot, "trp_kingdom_2_lady_9", slot_troop_father, "trp_knight_2_2"),    
         (troop_set_slot, "trp_kingdom_2_lady_10", slot_troop_father, "trp_knight_2_2"),    
         (troop_set_slot, "trp_kingdom_2_lady_11", slot_troop_father, "trp_knight_2_3"),    
         (troop_set_slot, "trp_kingdom_2_lady_12", slot_troop_father, "trp_knight_2_3"),    
         (troop_set_slot, "trp_kingdom_2_lady_13", slot_troop_father, "trp_knight_2_4"),    
         (troop_set_slot, "trp_kingdom_2_lady_14", slot_troop_father, "trp_knight_2_4"),    
         (troop_set_slot, "trp_kingdom_2_lady_15", slot_troop_father, "trp_knight_2_5"),    
         (troop_set_slot, "trp_kingdom_2_lady_16", slot_troop_father, "trp_knight_2_5"),    
         (troop_set_slot, "trp_knight_2_6", slot_troop_father, "trp_knight_2_1"),    
         (troop_set_slot, "trp_knight_2_7", slot_troop_father, "trp_knight_2_2"),    
         (troop_set_slot, "trp_knight_2_8", slot_troop_father, "trp_knight_2_3"),    
         (troop_set_slot, "trp_kingdom_2_lady_18", slot_troop_guardian, "trp_knight_2_9"),
         (troop_set_slot, "trp_kingdom_2_lady_19", slot_troop_guardian, "trp_knight_2_10"),
         (troop_set_slot, "trp_kingdom_2_lady_20", slot_troop_guardian, "trp_knight_2_11"),
        
         (troop_set_slot, "trp_knight_3_2", slot_troop_spouse, "trp_kingdom_3_lady_1"),
         (troop_set_slot, "trp_knight_3_3", slot_troop_spouse, "trp_kingdom_3_lady_2"),
         (troop_set_slot, "trp_knight_3_4", slot_troop_spouse, "trp_kingdom_3_lady_3"),
         (troop_set_slot, "trp_knight_3_5", slot_troop_spouse, "trp_kingdom_3_lady_4"),
         (troop_set_slot, "trp_kingdom_3_lady_5", slot_troop_guardian, "trp_knight_3_2"),
         (troop_set_slot, "trp_kingdom_3_lady_6", slot_troop_father, "trp_knight_3_2"),    
         (troop_set_slot, "trp_kingdom_3_lady_7", slot_troop_father, "trp_knight_3_2"),    
         (troop_set_slot, "trp_kingdom_3_lady_8", slot_troop_father, "trp_knight_3_2"),    
         (troop_set_slot, "trp_kingdom_3_lady_9", slot_troop_father, "trp_knight_3_3"),    
         (troop_set_slot, "trp_kingdom_3_lady_10", slot_troop_father, "trp_knight_3_3"),    
         (troop_set_slot, "trp_kingdom_3_lady_11", slot_troop_father, "trp_knight_3_4"),    
         (troop_set_slot, "trp_kingdom_3_lady_12", slot_troop_father, "trp_knight_3_4"),    
         (troop_set_slot, "trp_kingdom_3_lady_13", slot_troop_father, "trp_knight_3_5"),    
         (troop_set_slot, "trp_kingdom_3_lady_14", slot_troop_father, "trp_knight_3_5"),    
         (troop_set_slot, "trp_kingdom_3_lady_15", slot_troop_father, "trp_knight_3_3"),    
         (troop_set_slot, "trp_kingdom_3_lady_16", slot_troop_father, "trp_knight_3_4"),    
         (troop_set_slot, "trp_knight_3_6", slot_troop_father, "trp_knight_3_4"),    
         (troop_set_slot, "trp_knight_3_7", slot_troop_father, "trp_knight_3_2"),    
         (troop_set_slot, "trp_knight_3_8", slot_troop_father, "trp_knight_3_3"),    
         (troop_set_slot, "trp_kingdom_3_lady_18", slot_troop_guardian, "trp_knight_3_9"),
         (troop_set_slot, "trp_kingdom_3_lady_19", slot_troop_guardian, "trp_knight_3_10"),
         (troop_set_slot, "trp_kingdom_3_lady_20", slot_troop_guardian, "trp_knight_3_11"),


         (troop_set_slot, "trp_knight_4_1", slot_troop_age, 45),  
         (troop_set_slot, "trp_knight_4_2", slot_troop_age, 24),  
         (troop_set_slot, "trp_knight_4_3", slot_troop_age, 20),  
         (troop_set_slot, "trp_knight_4_4", slot_troop_age, 65),      
         (troop_set_slot, "trp_kingdom_4_lady_1", slot_troop_age, 39),  
         (troop_set_slot, "trp_kingdom_4_lady_2", slot_troop_age, 18),  
         (troop_set_slot, "trp_kingdom_4_lady_3", slot_troop_age, 15),  
         (troop_set_slot, "trp_kingdom_4_lady_4", slot_troop_age, 55),      
         (troop_set_slot, "trp_knight_4_1", slot_troop_spouse, "trp_kingdom_4_lady_1"),
         (troop_set_slot, "trp_knight_4_2", slot_troop_spouse, "trp_kingdom_4_lady_2"),
         (troop_set_slot, "trp_knight_4_3", slot_troop_spouse, "trp_kingdom_4_lady_3"),
         (troop_set_slot, "trp_knight_4_4", slot_troop_spouse, "trp_kingdom_4_lady_4"),
         (troop_set_slot, "trp_knight_4_5", slot_troop_spouse, "trp_kingdom_4_lady_5"),
         (troop_set_slot, "trp_kingdom_4_lady_6", slot_troop_father, "trp_knight_4_1"),    
         (troop_set_slot, "trp_kingdom_4_lady_7", slot_troop_father, "trp_knight_4_1"),    
         (troop_set_slot, "trp_kingdom_4_lady_8", slot_troop_father, "trp_knight_4_1"),    
         (troop_set_slot, "trp_kingdom_4_lady_9", slot_troop_father, "trp_knight_4_2"),    
         (troop_set_slot, "trp_kingdom_4_lady_10", slot_troop_father, "trp_knight_4_2"),    
         (troop_set_slot, "trp_kingdom_4_lady_11", slot_troop_father, "trp_knight_4_3"),    
         (troop_set_slot, "trp_kingdom_4_lady_12", slot_troop_father, "trp_knight_4_3"),    
         (troop_set_slot, "trp_kingdom_4_lady_13", slot_troop_father, "trp_knight_4_4"),    
         (troop_set_slot, "trp_kingdom_4_lady_14", slot_troop_father, "trp_knight_4_4"),    
         (troop_set_slot, "trp_kingdom_4_lady_15", slot_troop_father, "trp_knight_4_5"),    
         (troop_set_slot, "trp_kingdom_4_lady_16", slot_troop_father, "trp_knight_4_5"),    
         (troop_set_slot, "trp_knight_4_3", slot_troop_father, "trp_knight_4_1"),    
         (troop_set_slot, "trp_knight_4_2", slot_troop_father, "trp_knight_4_1"),    
         (troop_set_slot, "trp_knight_4_8", slot_troop_father, "trp_knight_4_3"),    
         (troop_set_slot, "trp_kingdom_4_lady_18", slot_troop_guardian, "trp_knight_4_9"),
         (troop_set_slot, "trp_kingdom_4_lady_19", slot_troop_guardian, "trp_knight_4_10"),
         (troop_set_slot, "trp_kingdom_4_lady_20", slot_troop_guardian, "trp_knight_4_11"),

         (troop_set_slot, "trp_knight_5_1", slot_troop_spouse, "trp_kingdom_5_lady_1"),
         (troop_set_slot, "trp_knight_5_2", slot_troop_spouse, "trp_kingdom_5_lady_2"),
         (troop_set_slot, "trp_knight_5_3", slot_troop_spouse, "trp_kingdom_5_lady_3"),
         (troop_set_slot, "trp_knight_5_4", slot_troop_spouse, "trp_kingdom_5_lady_4"),
         (troop_set_slot, "trp_knight_5_5", slot_troop_spouse, "trp_kingdom_5_lady_5"),
         (troop_set_slot, "trp_kingdom_5_lady_6", slot_troop_father, "trp_knight_5_1"),    
         (troop_set_slot, "trp_kingdom_5_lady_7", slot_troop_father, "trp_knight_5_1"),    
         (troop_set_slot, "trp_kingdom_5_lady_8", slot_troop_father, "trp_knight_5_1"),    
         (troop_set_slot, "trp_kingdom_5_lady_9", slot_troop_father, "trp_knight_5_2"),    
         (troop_set_slot, "trp_kingdom_5_lady_10", slot_troop_father, "trp_knight_5_2"),    
         (troop_set_slot, "trp_kingdom_5_lady_11", slot_troop_father, "trp_knight_5_3"),    
         (troop_set_slot, "trp_kingdom_5_lady_12", slot_troop_father, "trp_knight_5_3"),    
         (troop_set_slot, "trp_kingdom_5_lady_13", slot_troop_father, "trp_knight_5_4"),    
         (troop_set_slot, "trp_kingdom_5_lady_14", slot_troop_father, "trp_knight_5_4"),    
         (troop_set_slot, "trp_kingdom_5_lady_15", slot_troop_father, "trp_knight_5_5"),    
         (troop_set_slot, "trp_kingdom_5_lady_16", slot_troop_father, "trp_knight_5_5"),    
         (troop_set_slot, "trp_knight_5_6", slot_troop_father, "trp_knight_5_1"),    
         (troop_set_slot, "trp_knight_5_7", slot_troop_father, "trp_knight_5_2"),    
         (troop_set_slot, "trp_knight_5_8", slot_troop_father, "trp_knight_5_3"),    
         (troop_set_slot, "trp_kingdom_5_lady_18", slot_troop_guardian, "trp_knight_5_9"),
         (troop_set_slot, "trp_kingdom_5_lady_19", slot_troop_guardian, "trp_knight_5_10"),
         (troop_set_slot, "trp_kingdom_5_lady_20", slot_troop_guardian, "trp_knight_5_11"),

         (troop_set_slot, "trp_knight_6_1", slot_troop_spouse, "trp_kingdom_6_lady_1"),
         (troop_set_slot, "trp_knight_6_2", slot_troop_spouse, "trp_kingdom_6_lady_2"),
         (troop_set_slot, "trp_knight_6_3", slot_troop_spouse, "trp_kingdom_6_lady_3"),
         (troop_set_slot, "trp_knight_6_4", slot_troop_spouse, "trp_kingdom_6_lady_4"),
         (troop_set_slot, "trp_knight_6_5", slot_troop_spouse, "trp_kingdom_6_lady_5"),
         (troop_set_slot, "trp_kingdom_6_lady_6", slot_troop_father, "trp_knight_6_1"),    
         (troop_set_slot, "trp_kingdom_6_lady_7", slot_troop_father, "trp_knight_6_1"),    
         (troop_set_slot, "trp_kingdom_6_lady_8", slot_troop_father, "trp_knight_6_1"),    
         (troop_set_slot, "trp_kingdom_6_lady_9", slot_troop_father, "trp_knight_6_2"),    
         (troop_set_slot, "trp_kingdom_6_lady_10", slot_troop_father, "trp_knight_6_2"),    
         (troop_set_slot, "trp_kingdom_6_lady_11", slot_troop_father, "trp_knight_6_3"),    
         (troop_set_slot, "trp_kingdom_6_lady_12", slot_troop_father, "trp_knight_6_3"),    
         (troop_set_slot, "trp_kingdom_6_lady_13", slot_troop_father, "trp_knight_6_4"),    
         (troop_set_slot, "trp_kingdom_6_lady_14", slot_troop_father, "trp_knight_6_4"),    
         (troop_set_slot, "trp_kingdom_6_lady_15", slot_troop_father, "trp_knight_6_5"),    
         (troop_set_slot, "trp_kingdom_6_lady_16", slot_troop_father, "trp_knight_6_5"),    
         (troop_set_slot, "trp_knight_6_6", slot_troop_father, "trp_knight_6_1"),    
         (troop_set_slot, "trp_knight_6_7", slot_troop_father, "trp_knight_6_2"),    
         (troop_set_slot, "trp_knight_6_8", slot_troop_father, "trp_knight_6_3"),    
         (troop_set_slot, "trp_kingdom_6_lady_18", slot_troop_guardian, "trp_knight_6_9"),
         (troop_set_slot, "trp_kingdom_6_lady_19", slot_troop_guardian, "trp_knight_6_10"),
         (troop_set_slot, "trp_kingdom_6_lady_20", slot_troop_guardian, "trp_knight_6_11"),

         (troop_set_slot, "trp_knight_7_1", slot_troop_spouse, "trp_kingdom_7_lady_4"),
         (troop_set_slot, "trp_knight_7_2", slot_troop_spouse, "trp_kingdom_7_lady_2"),
         (troop_set_slot, "trp_knight_7_3", slot_troop_spouse, "trp_kingdom_7_lady_3"),
         (troop_set_slot, "trp_kingdom_7_lady_1", slot_troop_father, "trp_knight_7_1"),    
         (troop_set_slot, "trp_kingdom_7_lady_5", slot_troop_father, "trp_knight_7_1"),
         (troop_set_slot, "trp_kingdom_7_lady_6", slot_troop_father, "trp_knight_7_2"),    
         (troop_set_slot, "trp_kingdom_7_lady_7", slot_troop_father, "trp_knight_7_2"),    
         (troop_set_slot, "trp_kingdom_7_lady_8", slot_troop_father, "trp_knight_7_3"),      
         (troop_set_slot, "trp_knight_7_6", slot_troop_father, "trp_knight_7_1"),        
         (troop_set_slot, "trp_kingdom_7_lady_9", slot_troop_guardian, "trp_knight_7_4"),
         (troop_set_slot, "trp_kingdom_7_lady_10", slot_troop_guardian, "trp_knight_7_5"),

         (troop_set_slot, "trp_knight_8_1", slot_troop_spouse, "trp_kingdom_8_lady_1"),
         (troop_set_slot, "trp_knight_8_2", slot_troop_spouse, "trp_kingdom_8_lady_2"),
         (troop_set_slot, "trp_knight_8_3", slot_troop_spouse, "trp_kingdom_8_lady_3"),
         (troop_set_slot, "trp_knight_8_4", slot_troop_spouse, "trp_kingdom_8_lady_4"),
         (troop_set_slot, "trp_knight_8_5", slot_troop_spouse, "trp_kingdom_8_lady_5"),
         (troop_set_slot, "trp_kingdom_8_lady_6", slot_troop_father, "trp_knight_8_1"),    
         (troop_set_slot, "trp_kingdom_8_lady_7", slot_troop_father, "trp_knight_8_1"),    
         (troop_set_slot, "trp_kingdom_8_lady_8", slot_troop_father, "trp_knight_8_1"),    
         (troop_set_slot, "trp_kingdom_8_lady_9", slot_troop_father, "trp_knight_8_2"),    
         (troop_set_slot, "trp_kingdom_8_lady_10", slot_troop_father, "trp_knight_8_2"),    
         (troop_set_slot, "trp_kingdom_8_lady_11", slot_troop_father, "trp_knight_8_3"),    
         (troop_set_slot, "trp_kingdom_8_lady_12", slot_troop_father, "trp_knight_8_3"),    
         (troop_set_slot, "trp_kingdom_8_lady_13", slot_troop_father, "trp_knight_8_4"),    
         (troop_set_slot, "trp_kingdom_8_lady_14", slot_troop_father, "trp_knight_8_4"),    
         (troop_set_slot, "trp_kingdom_8_lady_15", slot_troop_father, "trp_knight_8_5"),    
         (troop_set_slot, "trp_kingdom_8_lady_16", slot_troop_father, "trp_knight_8_5"),    
         (troop_set_slot, "trp_knight_8_6", slot_troop_father, "trp_knight_8_1"),    
         (troop_set_slot, "trp_knight_8_7", slot_troop_father, "trp_knight_8_2"),    
         (troop_set_slot, "trp_knight_8_8", slot_troop_father, "trp_knight_8_3"),    
         (troop_set_slot, "trp_kingdom_8_lady_18", slot_troop_guardian, "trp_knight_8_9"),
         (troop_set_slot, "trp_kingdom_8_lady_19", slot_troop_guardian, "trp_knight_8_10"),
         (troop_set_slot, "trp_kingdom_8_lady_20", slot_troop_guardian, "trp_knight_8_11"),

         (troop_set_slot, "trp_knight_9_1", slot_troop_spouse, "trp_kingdom_9_lady_1"),
         (troop_set_slot, "trp_knight_9_2", slot_troop_spouse, "trp_kingdom_9_lady_2"),
         (troop_set_slot, "trp_knight_9_3", slot_troop_spouse, "trp_kingdom_9_lady_3"),
         (troop_set_slot, "trp_kingdom_9_lady_4", slot_troop_father, "trp_knight_9_1"),    
         (troop_set_slot, "trp_kingdom_9_lady_5", slot_troop_father, "trp_knight_9_1"),
         (troop_set_slot, "trp_kingdom_9_lady_6", slot_troop_father, "trp_knight_9_2"),    
         (troop_set_slot, "trp_kingdom_9_lady_7", slot_troop_father, "trp_knight_9_2"),    
         (troop_set_slot, "trp_kingdom_9_lady_8", slot_troop_father, "trp_knight_9_3"),      
         (troop_set_slot, "trp_kingdom_9_lady_12", slot_troop_father, "trp_knight_9_3"),      
         (troop_set_slot, "trp_knight_9_6", slot_troop_father, "trp_knight_9_1"),        
         (troop_set_slot, "trp_knight_9_7", slot_troop_father, "trp_knight_9_2"),        
         (troop_set_slot, "trp_kingdom_9_lady_9", slot_troop_guardian, "trp_knight_9_4"),
         (troop_set_slot, "trp_kingdom_9_lady_10", slot_troop_guardian, "trp_knight_9_5"),
         (troop_set_slot, "trp_kingdom_9_lady_11", slot_troop_guardian, "trp_knight_9_8"),

         (troop_set_slot, "trp_knight_10_1", slot_troop_spouse, "trp_kingdom_10_lady_1"),
         (troop_set_slot, "trp_knight_10_2", slot_troop_spouse, "trp_kingdom_10_lady_2"),
         (troop_set_slot, "trp_knight_10_3", slot_troop_spouse, "trp_kingdom_10_lady_3"),
         (troop_set_slot, "trp_kingdom_10_lady_4", slot_troop_father, "trp_knight_10_1"),    
         (troop_set_slot, "trp_kingdom_10_lady_5", slot_troop_father, "trp_knight_10_1"),
         (troop_set_slot, "trp_kingdom_10_lady_6", slot_troop_father, "trp_knight_10_2"),    
         (troop_set_slot, "trp_kingdom_10_lady_7", slot_troop_father, "trp_knight_10_2"),    
         (troop_set_slot, "trp_kingdom_10_lady_8", slot_troop_father, "trp_knight_10_3"),      
         (troop_set_slot, "trp_knight_10_6", slot_troop_father, "trp_knight_10_1"),        
         (troop_set_slot, "trp_kingdom_10_lady_9", slot_troop_guardian, "trp_knight_10_4"),
         (troop_set_slot, "trp_kingdom_10_lady_10", slot_troop_guardian, "trp_knight_10_5"),

         (troop_set_slot, "trp_knight_11_1", slot_troop_spouse, "trp_kingdom_11_lady_1"),
         (troop_set_slot, "trp_knight_11_2", slot_troop_spouse, "trp_kingdom_11_lady_2"),
         (troop_set_slot, "trp_knight_11_3", slot_troop_spouse, "trp_kingdom_11_lady_3"),
         (troop_set_slot, "trp_kingdom_11_lady_4", slot_troop_father, "trp_knight_11_1"),    
         (troop_set_slot, "trp_kingdom_11_lady_5", slot_troop_father, "trp_knight_11_1"),
         (troop_set_slot, "trp_kingdom_11_lady_6", slot_troop_father, "trp_knight_11_2"),    
         (troop_set_slot, "trp_kingdom_11_lady_7", slot_troop_father, "trp_knight_11_2"),    
         (troop_set_slot, "trp_kingdom_11_lady_8", slot_troop_father, "trp_knight_11_3"),      
         (troop_set_slot, "trp_knight_11_6", slot_troop_father, "trp_knight_11_1"),        
         (troop_set_slot, "trp_kingdom_11_lady_9", slot_troop_guardian, "trp_knight_11_4"),
         (troop_set_slot, "trp_kingdom_11_lady_10", slot_troop_guardian, "trp_knight_11_5"),
         (troop_set_slot, "trp_kingdom_11_lady_11", slot_troop_father, "trp_knight_11_1"),      
         (troop_set_slot, "trp_kingdom_11_lady_12", slot_troop_father, "trp_knight_11_3"),      
         (troop_set_slot, "trp_kingdom_11_lady_13", slot_troop_guardian, "trp_knight_11_8"),
         (troop_set_slot, "trp_kingdom_11_lady_14", slot_troop_guardian, "trp_knight_11_7"),

         (troop_set_slot, "trp_knight_12_1", slot_troop_spouse, "trp_kingdom_12_lady_1"),
         (troop_set_slot, "trp_knight_12_2", slot_troop_spouse, "trp_kingdom_12_lady_2"),
         (troop_set_slot, "trp_knight_12_3", slot_troop_spouse, "trp_kingdom_12_lady_3"),
         (troop_set_slot, "trp_kingdom_12_lady_4", slot_troop_father, "trp_knight_12_1"),    
         (troop_set_slot, "trp_kingdom_12_lady_5", slot_troop_father, "trp_knight_12_1"),
         (troop_set_slot, "trp_kingdom_12_lady_6", slot_troop_father, "trp_knight_12_2"),    
         (troop_set_slot, "trp_kingdom_12_lady_7", slot_troop_father, "trp_knight_12_2"),    
         (troop_set_slot, "trp_kingdom_12_lady_8", slot_troop_father, "trp_knight_12_3"),      
         (troop_set_slot, "trp_knight_12_6", slot_troop_father, "trp_knight_12_1"),        
         (troop_set_slot, "trp_kingdom_12_lady_9", slot_troop_guardian, "trp_knight_12_4"),
         (troop_set_slot, "trp_kingdom_12_lady_10", slot_troop_guardian, "trp_knight_12_5"),

         (troop_set_slot, "trp_knight_13_1", slot_troop_spouse, "trp_kingdom_13_lady_1"),
         (troop_set_slot, "trp_knight_13_2", slot_troop_spouse, "trp_kingdom_13_lady_2"),
         (troop_set_slot, "trp_knight_13_3", slot_troop_spouse, "trp_kingdom_13_lady_3"),
         (troop_set_slot, "trp_kingdom_13_lady_4", slot_troop_father, "trp_knight_13_1"),    
         (troop_set_slot, "trp_kingdom_13_lady_5", slot_troop_father, "trp_knight_13_1"),
         (troop_set_slot, "trp_kingdom_13_lady_6", slot_troop_father, "trp_knight_13_2"),    
         (troop_set_slot, "trp_kingdom_13_lady_7", slot_troop_father, "trp_knight_13_2"),    
         (troop_set_slot, "trp_kingdom_13_lady_8", slot_troop_father, "trp_knight_13_3"),      
         (troop_set_slot, "trp_knight_13_6", slot_troop_father, "trp_knight_13_1"),        
         (troop_set_slot, "trp_kingdom_13_lady_9", slot_troop_guardian, "trp_knight_13_4"),
         (troop_set_slot, "trp_kingdom_13_lady_10", slot_troop_guardian, "trp_knight_13_5"),

         (troop_set_slot, "trp_knight_14_1", slot_troop_spouse, "trp_kingdom_14_lady_1"),
         (troop_set_slot, "trp_knight_14_2", slot_troop_spouse, "trp_kingdom_14_lady_2"),
         (troop_set_slot, "trp_knight_14_3", slot_troop_spouse, "trp_kingdom_14_lady_3"),
         (troop_set_slot, "trp_kingdom_14_lady_4", slot_troop_father, "trp_knight_14_1"),    
         (troop_set_slot, "trp_kingdom_14_lady_5", slot_troop_father, "trp_knight_14_1"),
         (troop_set_slot, "trp_kingdom_14_lady_6", slot_troop_father, "trp_knight_14_2"),    
         (troop_set_slot, "trp_kingdom_14_lady_7", slot_troop_father, "trp_knight_14_2"),    
         (troop_set_slot, "trp_kingdom_14_lady_8", slot_troop_father, "trp_knight_14_3"),      
         (troop_set_slot, "trp_knight_14_6", slot_troop_father, "trp_knight_14_1"),        
         (troop_set_slot, "trp_kingdom_14_lady_9", slot_troop_guardian, "trp_knight_14_4"),
         (troop_set_slot, "trp_kingdom_14_lady_10", slot_troop_guardian, "trp_knight_14_5"),      
         (troop_set_slot, "trp_kingdom_14_lady_11", slot_troop_father, "trp_knight_14_3"),      
         (troop_set_slot, "trp_kingdom_14_lady_12", slot_troop_guardian, "trp_knight_14_7"),

         (troop_set_slot, "trp_knight_16_1", slot_troop_spouse, "trp_kingdom_16_lady_1"),
         (troop_set_slot, "trp_knight_16_2", slot_troop_spouse, "trp_kingdom_16_lady_2"),
         (troop_set_slot, "trp_knight_16_3", slot_troop_spouse, "trp_kingdom_16_lady_3"),
         (troop_set_slot, "trp_kingdom_16_lady_4", slot_troop_father, "trp_knight_16_1"),    
         (troop_set_slot, "trp_kingdom_16_lady_5", slot_troop_father, "trp_knight_16_1"),
         (troop_set_slot, "trp_kingdom_16_lady_6", slot_troop_father, "trp_knight_16_2"),    
         (troop_set_slot, "trp_kingdom_16_lady_7", slot_troop_father, "trp_knight_16_2"),    
         (troop_set_slot, "trp_kingdom_16_lady_8", slot_troop_father, "trp_knight_16_3"),        
         (troop_set_slot, "trp_kingdom_16_lady_9", slot_troop_guardian, "trp_knight_16_4"),
         (troop_set_slot, "trp_kingdom_16_lady_10", slot_troop_guardian, "trp_knight_16_5"),

         (troop_set_slot, "trp_knight_17_1", slot_troop_spouse, "trp_kingdom_17_lady_1"),
         (troop_set_slot, "trp_knight_17_2", slot_troop_spouse, "trp_kingdom_17_lady_2"),
         (troop_set_slot, "trp_knight_17_3", slot_troop_spouse, "trp_kingdom_17_lady_3"),
         (troop_set_slot, "trp_kingdom_17_lady_4", slot_troop_father, "trp_knight_17_1"),    
         (troop_set_slot, "trp_kingdom_17_lady_5", slot_troop_father, "trp_knight_17_1"),
         (troop_set_slot, "trp_kingdom_17_lady_6", slot_troop_father, "trp_knight_17_2"),    
         (troop_set_slot, "trp_kingdom_17_lady_7", slot_troop_father, "trp_knight_17_2"),    
         (troop_set_slot, "trp_kingdom_17_lady_8", slot_troop_father, "trp_knight_17_3"),        
         (troop_set_slot, "trp_kingdom_17_lady_9", slot_troop_guardian, "trp_knight_17_4"),
         (troop_set_slot, "trp_kingdom_17_lady_10", slot_troop_guardian, "trp_knight_17_5"),
         (troop_set_slot, "trp_knight_17_4", slot_troop_spouse, "trp_kingdom_17_lady_4"),

         (troop_set_slot, "trp_knight_18_1", slot_troop_spouse, "trp_kingdom_18_lady_1"),
         (troop_set_slot, "trp_knight_18_2", slot_troop_spouse, "trp_kingdom_18_lady_2"),
         (troop_set_slot, "trp_knight_18_3", slot_troop_spouse, "trp_kingdom_18_lady_3"),
         (troop_set_slot, "trp_knight_18_4", slot_troop_spouse, "trp_kingdom_18_lady_4"),
         (troop_set_slot, "trp_knight_18_5", slot_troop_spouse, "trp_kingdom_18_lady_5"),
         (troop_set_slot, "trp_kingdom_18_lady_6", slot_troop_father, "trp_knight_18_1"),    
         (troop_set_slot, "trp_kingdom_18_lady_7", slot_troop_father, "trp_knight_18_1"),      
         (troop_set_slot, "trp_kingdom_18_lady_8", slot_troop_father, "trp_knight_18_2"),    
         (troop_set_slot, "trp_kingdom_18_lady_9", slot_troop_father, "trp_knight_18_2"),    
         (troop_set_slot, "trp_kingdom_18_lady_10", slot_troop_father, "trp_knight_18_3"),      
         (troop_set_slot, "trp_kingdom_18_lady_11", slot_troop_father, "trp_knight_18_4"),      
         (troop_set_slot, "trp_kingdom_18_lady_12", slot_troop_father, "trp_knight_18_5"),        
         (troop_set_slot, "trp_knight_18_6", slot_troop_father, "trp_knight_18_1"),    
         (troop_set_slot, "trp_knight_18_7", slot_troop_father, "trp_knight_18_2"),    
         (troop_set_slot, "trp_kingdom_18_lady_13", slot_troop_guardian, "trp_knight_18_9"),
         (troop_set_slot, "trp_kingdom_18_lady_14", slot_troop_guardian, "trp_knight_18_10"),
         (troop_set_slot, "trp_kingdom_18_lady_15", slot_troop_guardian, "trp_knight_18_11"),



    Alguna idea del porque??!! bounce
    avatar
    Rafalongo
    Modder
    Modder

    Mensajes : 471
    Edad : 27
    Facción : Reino de Swadia

    Re: Ladies de nuevos reinos sin reino..

    Mensaje por Rafalongo el Sáb Sep 26, 2015 1:14 am

    segunda parte del codigo (no me deja todo junto):

    script parte 2:
    Código:
        #The first thing - family structure
      #lords 1 to 8 are patriarchs with one live-at-home son and one daughter. They come from one of six possible ancestors, thus making it likely that there will be two sets of siblings
      #lords 9 to 12 are unmarried landowners with sisters
      #lords 13 to 20 are sons who still live in their fathers' houses
      #For the sake of simplicity, we can assume that all male aristocrats in prior generations either married commoners or procured their brides from the Old Country, thus discounting intermarriage

    (try_for_range, ":cur_troop", kingdom_ladies_begin, kingdom_ladies_end),
          (troop_set_slot, ":cur_troop", slot_troop_occupation, slto_kingdom_lady),
        (try_end),
     
        (assign, ":cur_lady", "trp_kingdom_1_lady_1"),

        (try_for_range, ":cur_troop", lords_begin, lords_end),
          (troop_set_slot, ":cur_troop", slot_troop_occupation, slto_kingdom_hero),
       
    #      (store_random_in_range, ":father_age_at_birth", 23, 26),
    #      (store_random_in_range, ":mother_age_at_birth", 19, 22),
       
    #      (try_begin),
    #        (is_between, ":cur_troop", "trp_knight_1_1", "trp_knight_2_1"),
    #        (store_sub, ":npc_seed", ":cur_troop", "trp_knight_1_1"),
    #        (assign, ":ancestor_seed", 1),
    #
    #      (else_try),
    #        (is_between, ":cur_troop", "trp_knight_2_1", "trp_knight_3_1"),
    #        (store_sub, ":npc_seed", ":cur_troop", "trp_knight_2_1"),
    #        (assign, ":ancestor_seed", 7),
    ##       
    #      (else_try),
    #        (is_between, ":cur_troop", "trp_knight_3_1", "trp_knight_4_1"),
    #        (store_sub, ":npc_seed", ":cur_troop", "trp_knight_3_1"),
    #        (assign, ":ancestor_seed", 13),
    #       
    #      (else_try),
    #        (is_between, ":cur_troop", "trp_knight_4_1", "trp_knight_5_1"),
    #        (store_sub, ":npc_seed", ":cur_troop", "trp_knight_4_1"),
    #        (assign, ":ancestor_seed", 19),
    #
    #      (else_try),
    #        (is_between, ":cur_troop", "trp_knight_5_1", "trp_knight_6_1"),
    #        (store_sub, ":npc_seed", ":cur_troop", "trp_knight_5_1"),
    #        (assign, ":ancestor_seed", 25),
           
    #      (else_try),
    #        (is_between, ":cur_troop", "trp_knight_6_1", "trp_kingdom_1_pretender"),
    ##        (store_sub, ":npc_seed", ":cur_troop", "trp_knight_6_1"),
    #        (assign, ":ancestor_seed", 31),
    #       
    #      (try_end),
       
       
          (try_begin),
    #        (lt, ":npc_seed", 8), #NPC seed is the order in the faction
            (assign, ":reputation", 1),
    #        (store_random_in_range, ":age", 45, 64),
           
    #        (store_random_in_range, ":father", 0, 6), #six possible fathers
    #        (val_add, ":father", ":ancestor_seed"),
    #        (troop_set_slot, ":cur_troop", slot_troop_father, ":father"),
           
            #wife
    #        (troop_set_slot, ":cur_troop", slot_troop_spouse, ":cur_lady"),
    #        (troop_set_slot, ":cur_lady", slot_troop_spouse, ":cur_troop"),
            (store_random_in_range, ":wife_reputation", 20, 26),
            (try_begin),
                (eq, ":wife_reputation", 20),
                (assign, ":wife_reputation", lrep_conventional),
            (try_end),
            (troop_set_slot, ":cur_lady", slot_lord_reputation_type, ":wife_reputation"),
           
           
    #        (call_script, "script_init_troop_age", ":cur_lady", 49),
            (call_script, "script_add_lady_items", ":cur_lady"),
           
            (val_add, ":cur_lady", 1),

            #daughter
    #        (troop_set_slot, ":cur_lady", slot_troop_father, ":cur_troop"),
            (store_sub, ":mother", ":cur_lady", 1),
    #        (call_script, "script_init_troop_age", ":cur_lady", 19),
            (troop_set_slot, ":cur_lady", slot_troop_mother, ":cur_lady"),
            (store_random_in_range, ":lady_reputation", lrep_conventional, 34), #33% chance of father-derived
            (try_begin),
                (le, ":lady_reputation", 25),
                (troop_set_slot, ":cur_lady", slot_lord_reputation_type, ":lady_reputation"),
            (else_try), 
                (eq, ":lady_reputation", 26),
                (troop_set_slot, ":cur_lady", slot_lord_reputation_type, lrep_conventional),
            (else_try), 
                (eq, ":lady_reputation", 27),
                (troop_set_slot, ":cur_lady", slot_lord_reputation_type, lrep_moralist),
            (else_try),
                (assign, ":guardian_reputation", ":reputation"),
                (try_begin),
                  (this_or_next|eq, ":guardian_reputation", lrep_martial),
                      (eq, ":guardian_reputation", 0),
                  (troop_set_slot, ":cur_lady", slot_lord_reputation_type, lrep_conventional),
                (else_try),   
                  (eq, ":guardian_reputation", lrep_quarrelsome),
                  (troop_set_slot, ":cur_lady", slot_lord_reputation_type, lrep_otherworldly),
                (else_try),   
                  (eq, ":guardian_reputation", lrep_selfrighteous),
                  (troop_set_slot, ":cur_lady", slot_lord_reputation_type, lrep_ambitious),
                (else_try),   
                  (eq, ":guardian_reputation", lrep_cunning),
                  (troop_set_slot, ":cur_lady", slot_lord_reputation_type, lrep_adventurous),
                (else_try),   
                  (eq, ":guardian_reputation", lrep_goodnatured),
                  (troop_set_slot, ":cur_lady", slot_lord_reputation_type, lrep_adventurous),
                (else_try),   
                  (eq, ":guardian_reputation", lrep_debauched),
                  (troop_set_slot, ":cur_lady", slot_lord_reputation_type, lrep_ambitious),
                (else_try),   
                  (eq, ":guardian_reputation", lrep_upstanding),
                  (troop_set_slot, ":cur_lady", slot_lord_reputation_type, lrep_moralist),
                (try_end),
            (try_end),
           
            (call_script, "script_add_lady_items", ":cur_lady"),
            (val_add, ":cur_lady", 1),
            #high renown

          (else_try),  #Older unmarried lords
    #        (is_between, ":npc_seed", 8, 12),
           
    #        (store_random_in_range, ":age", 25, 36),       
            (store_random_in_range, ":reputation", 0, 8),       
           
            (store_random_in_range, ":sister_reputation", 20, 26),
            (try_begin),
                (eq, ":sister_reputation", 20),
                (assign, ":sister_reputation", lrep_conventional),
            (try_end),
            (troop_set_slot, ":cur_lady", slot_lord_reputation_type, ":sister_reputation"),
           
            (troop_set_slot, ":cur_lady", slot_troop_guardian, ":cur_troop"),

            (call_script, "script_init_troop_age", ":cur_lady", 21),
            (call_script, "script_add_lady_items", ":cur_lady"),
           
            (val_add, ":cur_lady", 1),
           
          (else_try),  #Younger unmarried lords
    #        #age is father's minus 20 to 25
            (store_sub, ":father", ":cur_troop", 12),
    #        (troop_set_slot, ":cur_troop", slot_troop_father, ":father"),
    #        (troop_get_slot, ":mother", ":father", slot_troop_spouse),
    #        (troop_set_slot, ":cur_troop", slot_troop_mother, ":mother"),
    #       
    #        (troop_get_slot, ":father_age", ":father", slot_troop_age),
    #        (store_sub, ":age", ":father_age", ":father_age_at_birth"),

            (try_begin), #50% chance of having father's rep
                (store_random_in_range, ":reputation", 0, 16),

                (gt, ":reputation", 7),
                (troop_get_slot, ":reputation", ":father", slot_lord_reputation_type),
            (try_end),
          (try_end),
       
          (try_begin),
            (eq, ":reputation", 0),
            (assign, ":reputation", 1),
          (try_end),
       
            (troop_set_slot, ":cur_troop", slot_lord_reputation_type, ":reputation"),

    #      (call_script, "script_init_troop_age", ":cur_troop", ":age"),
        (try_end),
     
        (try_begin),
          (eq, "$cheat_mode", 1),
          (assign, reg3, "$cheat_mode"),
          (display_message, "@{!}DEBUG -- Assigned lord reputation and relations"),
       
    #      (display_message, "str_assigned_lord_reputation_and_relations_cheat_mode_reg3"), #This string can be removed
        (try_end),
     
        (try_for_range, ":cur_troop", pretenders_begin, pretenders_end),
          (troop_set_slot, ":cur_troop", slot_troop_occupation, slto_inactive_pretender),
          (store_random_in_range, ":age", 25, 30),
          (troop_set_slot, ":cur_troop", slot_troop_age, ":age"),
          (eq, ":cur_troop", "trp_kingdom_1_pretender"),#Charles of Navarre
          (troop_set_slot, ":cur_troop", slot_troop_age, 39),
          (eq, ":cur_troop", "trp_kingdom_1_pretender"),
          (troop_set_slot, ":cur_troop", slot_troop_age, 41), #Owain Lawgoch     
        (try_end),
      ]),



     ("initialize_trade_routes",

      Fecha y hora actual: Jue Sep 21, 2017 2:18 pm