Adjusting Morale

Users who are viewing this thread

RedXIII

Recruit
Hello,

I'm looking for a way to adjust the morale values. Such as the variables that increase the morale value (food, base, leadership) or that decrease the value (party size). Is it possible to adjust any of those variable, and if so, where and what do I need to modify. I've looked around the forum, and through some of the M&B txt/py files but I have not found much information regarding it.

Thanks
 
You can find the food morale bonus just at the top of module_scripts.py

Code:
# Setting food bonuses
      (item_set_slot, "itm_smoked_fish", slot_item_food_bonus, 3),
      (item_set_slot, "itm_dried_meat", slot_item_food_bonus, 4),
      (item_set_slot, "itm_cattle_meat", slot_item_food_bonus, 4),
      (item_set_slot, "itm_pork", slot_item_food_bonus, 4),
      (item_set_slot, "itm_bread", slot_item_food_bonus, 2),
      (item_set_slot, "itm_apples", slot_item_food_bonus, 2),
      (item_set_slot, "itm_cheese", slot_item_food_bonus, 3),
      (item_set_slot, "itm_chicken", slot_item_food_bonus, 3),
      (item_set_slot, "itm_honey", slot_item_food_bonus, 5),
      (item_set_slot, "itm_cabbages", slot_item_food_bonus, 1),
      (item_set_slot, "itm_sausages", slot_item_food_bonus, 4),
      (item_set_slot, "itm_butter", slot_item_food_bonus, 5),
      
      (item_set_slot, "itm_wine", slot_item_food_bonus, 4),
      (item_set_slot, "itm_ale", slot_item_food_bonus, 3),


and for the whole business go a lot further down and try messing with

Code:
  # script_get_player_party_morale_values
  # Output: reg0 = player_party_morale_target
  ("get_player_party_morale_values",

...blah blah blah...

      (store_skill_level, ":player_leadership", "skl_leadership", "trp_player"),
      (store_mul, "$g_player_party_morale_modifier_leadership", ":player_leadership", 7),
      (assign, ":new_morale", "$g_player_party_morale_modifier_leadership"),
      (val_sub, ":new_morale", "$g_player_party_morale_modifier_party_size"),
      (val_add, ":new_morale", 50),
 
Okay. I found it and opened up the module_scripts file and changed the attribute I was looking to change, but when I go to my inventory in game it doesn't show a change in the morale bonus given.
 
Compiled? I saved it...


edit, Okay I see how to compile it, but I get an error saying "python is not a recognized internal or external command"

2nd edit, Okay I think I fixed it.
 
Back
Top Bottom