party_banner_icon

Users who are viewing this thread

saxondragon

Sergeant Knight at Arms
Hello folks,

Maybe I have been  looking at this too long, but I cannot seem to figure out what the problem is here.

My goal is to provide banners for the various villages to show who owns them.  It works.. with a single mind numbing caveat.  When the player selects the banner.. the village banner icon does not update.

Lords banner Update
Towns banner icon update
Castles icon Update

Villages fail to update.

Here is the routine that supposedly handles this... I have commented out in the second half the routine the logic that  skips villages in native.

Anyone have any insight?

EDIT: Bottom line question: Is there something about village having banners that is part of the engine and not addressable via the module system?  This routine seems very straightforward..

Code:
  
("banner_correction_player",
   [
      (troop_get_slot, ":selected_banner_spr", "trp_player", slot_troop_banner_scene_prop),
      (assign, ":end_cond", kingdom_heroes_end),
      (try_for_range, ":cur_troop", kingdom_heroes_begin, ":end_cond"),
        (troop_slot_eq, ":cur_troop", slot_troop_banner_scene_prop, ":selected_banner_spr"),
             (troop_set_slot, ":cur_troop", slot_troop_banner_scene_prop, banner_scene_props_end_minus_one),
            (assign, ":end_cond", 0),
      (try_end),

      
       (try_for_range, ":center_no", centers_begin, centers_end),

   #    (this_or_next|party_slot_eq, ":center_no", slot_party_type, spt_town), # removed to get villages banners
   #    (party_slot_eq, ":center_no", slot_party_type, spt_castle),
  
          (party_get_slot,":lord_troop_id", ":center_no", slot_town_lord),       
      
           (gt,":lord_troop_id",0),
              (troop_get_slot, ":cur_banner", ":lord_troop_id", slot_troop_banner_scene_prop),
             
                (gt, ":cur_banner", 0),          
             
                  (val_sub, ":cur_banner", banner_scene_props_begin),
                  (val_add, ":cur_banner", banner_map_icons_begin),
                  (party_set_banner_icon, ":center_no", ":cur_banner"),       

    ]),


Thanks!

Best,

Saxondragon
 
Back
Top Bottom