Changing Spouse's inventory

Users who are viewing this thread

I found a thread that shows how to get access to the wife's inventory https://forums.taleworlds.com/index.php?threads/remove-my-wifes-hat.153903/

It works--kinda. If I change her "armor/dress" it gets convoluted. Upon leaving my castle/town and coming back she is not wearing the armor/dress but wearing well nothing. If I go to the inventory the armor is there but not showing ingame. I can remove and replace it and it will show, but like I said upon leaving and returning she is wearing her unders. I think for boots and gloves its not a problem only for armor. Does anyone no why it does that or have a solution?
 
Solution
This is likely related to the item's property as 'civilian'. Clothes that are not 'civilian' cannot be worn in a castle (armors, helmets). You can change it with Morgh's editor if working on item_kinds1.txt, or by adding itp_civilian to the item in module_items.py if you use the module system :smile:
This is likely related to the item's property as 'civilian'. Clothes that are not 'civilian' cannot be worn in a castle (armors, helmets). You can change it with Morgh's editor if working on item_kinds1.txt, or by adding itp_civilian to the item in module_items.py if you use the module system :smile:
 
Upvote 0
Solution
Well that makes sense because I was trying to make her wear the nord fur armor (cant remember real name). Morgh's editor says it only works withv1.113 up to v1.168. Unless that doesnt matter and it works despite the recommendation. Unfortunately I havent much experience with the module system. Mostly I just edit the .txt files and have a few mods from Nexus.
 
Upvote 0
There is also a script called add_lady_items active. It replaces the clothes and headwear of the women depending on which faction they belong to. If I have seen it correctly this script is only getting called when a new game has been started. The civilian flag is however important too ^^
Python:
    (try_begin), #assign clothes
        (this_or_next|troop_slot_eq, ":lady_no", slot_lord_reputation_type, lrep_adventurous),
            (troop_slot_eq, ":lady_no", slot_lord_reputation_type, lrep_ambitious),
  
        (this_or_next|troop_slot_eq, ":lady_no", slot_lord_reputation_type, lrep_adventurous),
            (lt, ":random", 2),
          
        (neg|troop_slot_ge, ":lady_no", slot_troop_age, 40),
        (try_begin),
            (eq, ":faction_no", "fac_kingdom_2"),
            (lt, ":random", 4),
            (troop_add_item, ":lady_no", "itm_fur_coat", 0),
        (else_try),
            (eq, ":faction_no", "fac_kingdom_3"),
            (lt, ":random", 3),
            (troop_add_item, ":lady_no", "itm_nomad_robe", 0),
        (else_try), 
            (troop_add_item, ":lady_no", "itm_nomad_vest", 0),
        (try_end),
    (else_try),
        (eq, ":faction_no", "fac_kingdom_1"),
        (try_begin),
            (lt, ":random", 2),
            (troop_add_item, ":lady_no", "itm_lady_dress_ruby", 0),
        (else_try),
            (lt, ":random", 4),
            (troop_add_item, ":lady_no", "itm_lady_dress_green", 0),
        (else_try),
            (troop_add_item, ":lady_no", "itm_lady_dress_blue", 0),
        (try_end),
    (else_try),
        (eq, ":faction_no", "fac_kingdom_2"),
        (try_begin),
            (eq, ":random", 0),
            (troop_add_item, ":lady_no", "itm_blue_dress", 0),
        (else_try),
            (eq, ":random", 1),
            (troop_add_item, ":lady_no", "itm_lady_dress_green", 0),
        (else_try),
            (eq, ":random", 2),
            (troop_add_item, ":lady_no", "itm_lady_dress_blue", 0),
        (else_try),
            (lt, ":random", 5),
            (neg|troop_slot_eq, ":lady_no", slot_lord_reputation_type, lrep_conventional),
            (neg|troop_slot_eq, ":lady_no", slot_lord_reputation_type, lrep_ambitious),
            (troop_add_item, ":lady_no", "itm_peasant_dress", 0),
        (else_try),
            (lt, ":random", 5),
            (troop_add_item, ":lady_no", "itm_lady_dress_ruby", 0),
        (else_try),
            (troop_add_item, ":lady_no", "itm_court_dress", 0),
        (try_end),
  
    (else_try),
        (eq, ":faction_no", "fac_kingdom_3"),
        (troop_add_item, ":lady_no", "itm_khergit_lady_dress", 0),
  
    (else_try),
        (eq, ":faction_no", "fac_kingdom_4"),

    (else_try),
        (eq, ":faction_no", "fac_kingdom_5"),

      
    (try_end),
    (troop_equip_items, ":lady_no"),

    #also available:
    #itm_blue_dress
    #itm_court_dress 
  
    #to add for khergits -- salwar/shalvar?
    #western tang costume (p105, china's golden age)
    #kipchak woman from russia book
  
    (try_begin), #assign headguear matched to item
        (this_or_next|troop_has_item_equipped, ":lady_no", "itm_nomad_vest"),
        (this_or_next|troop_has_item_equipped, ":lady_no", "itm_fur_coat"),
            (troop_has_item_equipped, ":lady_no", "itm_nomad_robe"),
      
        #assign no headgear
    (else_try),
        (this_or_next|troop_slot_eq, ":lady_no", slot_lord_reputation_type, lrep_moralist),
        (this_or_next|troop_slot_eq, ":lady_no", slot_lord_reputation_type, lrep_conventional),
            (lt, ":random", 2),
          
      
        (try_begin),
            (troop_has_item_equipped, ":lady_no", "itm_khergit_lady_dress"),
            (troop_add_item, ":lady_no", "itm_khergit_lady_hat", 0),
      
        (else_try),
            (troop_has_item_equipped, ":lady_no", "itm_lady_dress_ruby"),
            (troop_add_item, ":lady_no", "itm_turret_hat_ruby", 0),

            (str_store_troop_name, s4, ":lady_no"),
#            (display_message, "@Giving ruby turret hat to {s4}"),
        (else_try),
            (troop_has_item_equipped, ":lady_no", "itm_lady_dress_blue"),
            (troop_add_item, ":lady_no", "itm_turret_hat_blue", 0),
      
            (str_store_troop_name, s4, ":lady_no"),
#            (display_message, "@Giving blue turret hat to {s4}"),
        (else_try),
            (troop_has_item_equipped, ":lady_no", "itm_lady_dress_green"),
            (troop_add_item, ":lady_no", "itm_turret_hat_green", 0),
      
            (str_store_troop_name, s4, ":lady_no"),
#            (display_message, "@Giving green turret hat to {s4}"),
        (else_try), 
            (troop_has_item_equipped, ":lady_no", "itm_green_dress"),
            (troop_add_item, ":lady_no", "itm_wimple_with_veil", 0),

            (str_store_troop_name, s4, ":lady_no"),
#            (display_message, "@Giving green-lined wimple to {s4}"),
        (else_try),
            (neq, ":faction_no", "fac_kingdom_3"),
            (neq, ":faction_no", "fac_kingdom_6"),
            (troop_add_item, ":lady_no", "itm_wimple_a", 0),

            (str_store_troop_name, s4, ":lady_no"),
#            (display_message, "@Giving red-lined wimple to {s4}"),
        (else_try),
            (eq, ":faction_no", "fac_kingdom_6"),
            (try_begin),
                (troop_has_item_equipped, ":lady_no", "itm_sarranid_lady_dress"),
                (troop_add_item, ":lady_no", "itm_sarranid_head_cloth", 0),
            (else_try),
                (troop_add_item, ":lady_no", "itm_sarranid_head_cloth_b", 0),
            (try_end),
        (try_end),
    (try_end),
    (troop_equip_items, ":lady_no"),

You can also test the Warband Modding Guide at my signatures, perhaps you find a good start into using the Module System :grin:
 
Upvote 0
Back
Top Bottom