fisheye
Grandmaster Knight
NOTE: This version is no longer supported, the upgraded version by rubik is highly recommended:
http://forums.taleworlds.com/index.php/topic,60097.0.html
https://www.mbrepository.com/file.php?cid=1&id=951
Band of Warriors has some code where you can click one button and have all your heroes upgrade their gear from your loot pool. This is the new and improved code for it. It is a straight cut-and-paste into your mod source, very easy, no customization required.
List of changes (you only need to add code in 11 places):
module_constants:
* Some new constants, mostly slot definitions. Make sure these do not clash with your slot definitions
module_dialogs:
* A "start" option for talking to your heroes, this has to be near the top of the dialogs file.
* A chunk of item management conversation for selecting hero upgrade options, this has to be in "member_talk"
* A small conditional making sure you cannot separate a party member while talking to them inside the camp
module_game_menus:
* An additional option to access loot management from the camp menu
* "mnu_total_victory": Instead of just displaying the loot screen (change_screen_loot), we display a loot management menu instead
* Autoloot menus are at the bottom, you can put them anywhere.
module_items:
* An "itm_items_end" item at the end of the list to mark the end of the list
module_scripts:
* A call to "script_init_item_difficulties" at the top in "game_start"
* The autoloot scripts are at the bottom of the file, you can put them anywhere
module_strings:
* Some new strings, you can put them anywhere
process_items.py: (NOTE! this is process_items.py, the actual PYTHON processing code)
* A small snippet of code to be placed inside the "for item in items:" loop. Most modders don't change the process_xxx files so you can just copy this file.
That's all!
Note: the current version only supports items with a STR requirement of 5-14. So if you got an item of strength requirement 15, it won't work correctly (you just have to add in an additional line of code for each of these high-requirement items).
http://forums.taleworlds.com/index.php/topic,60097.0.html
https://www.mbrepository.com/file.php?cid=1&id=951
Band of Warriors has some code where you can click one button and have all your heroes upgrade their gear from your loot pool. This is the new and improved code for it. It is a straight cut-and-paste into your mod source, very easy, no customization required.
List of changes (you only need to add code in 11 places):
module_constants:
* Some new constants, mostly slot definitions. Make sure these do not clash with your slot definitions
module_dialogs:
* A "start" option for talking to your heroes, this has to be near the top of the dialogs file.
* A chunk of item management conversation for selecting hero upgrade options, this has to be in "member_talk"
* A small conditional making sure you cannot separate a party member while talking to them inside the camp
module_game_menus:
* An additional option to access loot management from the camp menu
* "mnu_total_victory": Instead of just displaying the loot screen (change_screen_loot), we display a loot management menu instead
* Autoloot menus are at the bottom, you can put them anywhere.
module_items:
* An "itm_items_end" item at the end of the list to mark the end of the list
module_scripts:
* A call to "script_init_item_difficulties" at the top in "game_start"
* The autoloot scripts are at the bottom of the file, you can put them anywhere
module_strings:
* Some new strings, you can put them anywhere
process_items.py: (NOTE! this is process_items.py, the actual PYTHON processing code)
* A small snippet of code to be placed inside the "for item in items:" loop. Most modders don't change the process_xxx files so you can just copy this file.
That's all!
Note: the current version only supports items with a STR requirement of 5-14. So if you got an item of strength requirement 15, it won't work correctly (you just have to add in an additional line of code for each of these high-requirement items).