Defecting Lord have faction banner?

Users who are viewing this thread

Max2150

Regular
I've come back to playing with my Warband mod that I made a while ago, I changed quite a lot. One important change that I have implemented somehow is that the vassals for each faction have the faction banner instead of their own. This is great and works fine, however when a lord defects they carry the banner of the previous faction they were in.
This breaks my immersion a little  :oops:
I was wondering if anyone knew of where I could change the code in order to them to carry the new faction banner? :smile:

Thanks - Max
 
This is my code I believe:

Code:
   #faction banners
      (faction_set_slot, "fac_kingdom_1", slot_faction_banner, "mesh_banner_kingdom_f"),
      (faction_set_slot, "fac_kingdom_2", slot_faction_banner, "mesh_banner_kingdom_b"),
      (faction_set_slot, "fac_kingdom_3", slot_faction_banner, "mesh_banner_kingdom_c"),
      (faction_set_slot, "fac_kingdom_4", slot_faction_banner, "mesh_banner_kingdom_a"),
      (faction_set_slot, "fac_kingdom_5", slot_faction_banner, "mesh_banner_kingdom_d"),
      (faction_set_slot, "fac_kingdom_6", slot_faction_banner, "mesh_banner_kingdom_e"),
      (faction_set_slot, "fac_kingdom_8", slot_faction_banner, "mesh_banner_kingdom_g"),	  

      (try_for_range, ":cur_faction", npc_kingdoms_begin, npc_kingdoms_end),
        (faction_get_slot, ":cur_faction_king", ":cur_faction", slot_faction_leader),
        (faction_get_slot, ":cur_faction_banner", ":cur_faction", slot_faction_banner),
        (val_sub, ":cur_faction_banner", banner_meshes_begin),
        (val_add, ":cur_faction_banner", banner_scene_props_begin),
        (troop_set_slot, ":cur_faction_king", slot_troop_banner_scene_prop, ":cur_faction_banner"),
      (try_end),
      # (assign, ":num_khergit_lords_assigned", 0),
      # (assign, ":num_sarranid_lords_assigned", 0),
      # (assign, ":num_other_lords_assigned", 0),

      (try_for_range, ":kingdom_hero", active_npcs_begin, active_npcs_end),
        (this_or_next|troop_slot_eq, ":kingdom_hero", slot_troop_occupation, slto_kingdom_hero),
        (troop_slot_eq, ":kingdom_hero", slot_troop_occupation, slto_inactive_pretender),

        (store_troop_faction, ":kingdom_hero_faction", ":kingdom_hero"),
        (neg|faction_slot_eq, ":kingdom_hero_faction", slot_faction_leader, ":kingdom_hero"),
		
		(faction_get_slot, ":cur_kingdom_king", ":kingdom_hero_faction", slot_faction_leader), # get the leader of the faction
        (troop_get_slot, ":cur_kingdom_king_banner", ":cur_kingdom_king", slot_troop_banner_scene_prop), # Get the banner ID of the leader
        (troop_set_slot, ":kingdom_hero", slot_troop_banner_scene_prop, ":cur_kingdom_king_banner"), # assign to lord.
 
Back
Top Bottom