How do I change faction colors?

Users who are viewing this thread

AndarielHalo

Regular
I notice it seems to be somewhat related to the banner I chose as a minor lord's daughter.  I picked the black one with the gold eagle, and my colors turned out black---so black I couldn't even read anything on the campaign map as to town names and such.


And I already established my own faction (somewhat accidentally since I got kicked out of my mercenary contract whilst besieging a castle) so is there a way I can change my color to something more readable now?  I'm sure there's a text file where I could put in color codes for it in.


EDIT:  And as a rider-question, why do merchants never sell Arrows, Bolts, or Cartridges or Gloves or Boots?


EDITEDIT:  Another rider-question; my vassal lords are invisible on the campaign map, and appear to be carrying multiple banners at once that overlap on each other.
 
You may be having bugs relating to compatibility issues between the non-updated TEATRC WB (which is for 1.134) and the Native WB (which should be 1.153). As to the merchants, they should be selling all that ****.
 
Well the merchants aren't selling any ammanition or gloves or boots.  Nowhere, never, ever.  They don't even sell guns anywhere; I have to get them from opponents I kill and pick up manually during a battle.


And what about editing faction color?  Which text file deals in that?
 
There's a factions.txt in the module folder, but I'm not sure whether it updates continuously. And try the cheat menu item finder. That'll get you what you want.
 
Nope, factions.txt is loaded only when you start a new game. Otherwise faction relationships would be the same every time you load a savegame. There should be an option under camp options to recolor your kingdom. You've already got the module system up, so you should be able to patch the merchant stuff in yourself (move the triggers stuff into a new script, and call that script instead from the triggers).
 
Those trigger things scare me like spiders.  There is no option to edit faction colors in the module trigger things.  Was it posted by you somewhere that I should look for or should I give up and try to make one of my own, maybe copy the code from another mod?



Worth mentioning, the Game options is clearly longer than the space allotted on screen, and there's no apparent way to scroll down
 
There's only like 14 of them :razz:. Besides, that one was the 4th one down.
Code:
  ("camp_action",mnf_enable_hot_keys,
   "Choose an option:",
   "none",
   [
     ],
    [

      ("action_take_personal",[],"Select a personal action.",
       [(jump_to_menu, "mnu_camp_personal_action"),
        ]
       ),
      ("camp_change_name",[],"Change the name of your party.",
       [(assign, "$g_presentation_state", rename_party),
       (assign, "$g_presentation_obj_troop_select_container", "p_main_party"),
       (start_presentation, "prsnt_name_kingdom"),
       ]
       ),
     ("action_prebattle_record_battle_size",[],
        "Record Battle Size.",
       [(start_presentation, "prsnt_prebattle_record_battle_size")]
     ),

        ## CC
      ("action_redefine_keys",[],"Redefine keys for camera and formations.",
       [
           (start_presentation, "prsnt_redefine_keys"),
        ]
       ),

      ("action_export_import",[],"Export/import NPCs.",
        [
          (assign, "$g_player_troop", "trp_player"),
          (jump_to_menu, "mnu_export_import_npcs"),
        ]
      ),
      ("action_recolor_troops",
       [
         ],"Recolor your troop groups.",
       [(assign, "$g_presentation_state", recolor_groups),
        (jump_to_menu, "mnu_recolor_groups"),
        ]
       ),

      ("action_rename_troops",
       [
         (gt, "$g_player_constable", 0),
         (call_script, "script_cf_has_custom_troops"),
         ],"Rename your custom troops.",
       [
        (jump_to_menu, "mnu_custom_troops"),
        ]
       ),
      ("camp_action_return",[],"Back to camp menu.",
       [(jump_to_menu, "mnu_camp"),
        ]
       ),
      ]
  ),


  ("camp_personal_action",mnf_enable_hot_keys,
   "Choose a personal action:",
   "none",
   [
     ],
    [

      ("action_read_book",[],"Select a book to read.",
       [(jump_to_menu, "mnu_camp_action_read_book"),
        ]
       ),

      ("action_rename_kingdom",
       [
         (eq, "$players_kingdom_name_set", 1),
         (faction_slot_eq, "fac_player_supporters_faction", slot_faction_state, sfs_active),
         (faction_slot_eq, "fac_player_supporters_faction", slot_faction_leader, "trp_player"),
         ],"Rename your kingdom.",
       [(assign, "$g_presentation_state", rename_kingdom),
        (start_presentation, "prsnt_name_kingdom"),
        ]
       ),

      ("action_recolor_kingdom",
       [
         # (eq, "$players_kingdom_name_set", 1),
         (faction_slot_eq, "$players_kingdom", slot_faction_state, sfs_active),
         (this_or_next|faction_slot_eq, "$players_kingdom", slot_faction_marshall, "trp_player"),
         (faction_slot_eq, "fac_player_supporters_faction", slot_faction_state, sfs_active),
         (faction_slot_eq, "fac_player_supporters_faction", slot_faction_leader, "trp_player"),
         ],"Recolor your kingdom.",
       [(assign, "$g_presentation_state", recolor_kingdom),
        (start_presentation, "prsnt_change_color"),
        ]
       ),

     # ("action_disguise",[],
        # "Change your disguise.",
       # [
       # (modify_visitors_at_site,"mt_conversation_encounter"),(reset_visitors),
       # (set_visitor,0,"trp_player"),
       # (set_visitor,17,"trp_kingdom_heroes_including_player_begin"),
       # (set_jump_mission,"mt_conversation_encounter"),
       # (jump_to_scene,"scn_conversation_scene"),
       # (change_screen_map_conversation, "trp_kingdom_heroes_including_player_begin"),
       # ]
     # ),

      ("action_color_banner",[
       (troop_slot_ge, "$g_player_troop", slot_troop_banner_scene_prop, banner_scene_props_begin),
      ],"Modify the back color of your banner.",
       [   (assign, "$g_presentation_state", recolor_heraldic),
           (start_presentation, "prsnt_change_color"),
           #(start_presentation, "prsnt_custom_banner"),
        ]
       ),
      ("action_modify_banner",[(ge, "$cheat_mode", 1)],"{!}Cheat: Modify your banner.",
       [   (assign, "$g_presentation_obj_4", 0),
           (start_presentation, "prsnt_banner_selection"),
           #(start_presentation, "prsnt_custom_banner"),
        ]
       ),
      ("action_review",[],"Review your background.",
       [(jump_to_menu, "mnu_view_bg"),
        ]
       ),
      ("action_retire",[],"Retire from adventuring.",
       [(jump_to_menu, "mnu_retirement_verify"),
        ]
       ),
      ("camp_actions_return",[],"Back to camp actions.",
       [(jump_to_menu, "mnu_camp_action"),
        ]
       ),
      ]
  ),
 
When I build the modules, I get tons of error messages relating to the "recolor_kingdom" lines I added, saying that it is not defined.
 
Apparently it wasn't in the released version. Oh well. Too lazy to dig up all the dependencies but it boils down to
(faction_set_color, "fac_player_supporters_faction", ":cur_color"), where :cur_color should be a hex colour (0xRRGGBB).
So you can just revert the menu options and toss it here
Code:
  ("camp_action",mnf_enable_hot_keys,
   "Choose an option:",
   "none",
   [(faction_set_color, "fac_player_supporters_faction", 0xwhatever),
     ],
 
Back
Top Bottom