DaLiO
Recruit
(i'm rather experienced programwriter, only i never had to deal with python before)
...so i'm now rather deep into scripting M&B since i just wanted to correct some 'Native Mod Compilation' code... it then turned to some 'improvements' here and there, then - to adding WFaS firearms into Warband, some retexturing (for example i have 4 different-colored Winged Helmets) and so on...
but now i'm stuck: at first i was just wandering why NPCs prefere Barbed Arrows over Khergit ones (in Auto Loot mod) even if they are fewer in scabard and since now i also have bullets to choose from i decided to correct this. and guess what? there's no item_slot_max_ammo...
...after some digging through modsystem source files and some testing i realized that also ranged weapon accuracy and shield hit points aren't present in any item_slot even if judging by header_items.py they should be in just different slots... but also judging by the same file horse speed is using shoot speed bits but in scrips it can be found in item_slot_head_armor...
So here's my question: how to obtain given item's max_ammo/accuracy/endurance/... numberic value from script? for now just for comparison reasons, but i'd like to be able to change it too... i have some 'enchantment mod' in mind that would allow to add skill or (if i find out how) attribute modifiers or in other ways 'enhance' certain (or any) items right from in-game
thanks in advance for any useful advice or just for pointing me into direction to dig to...
...so i'm now rather deep into scripting M&B since i just wanted to correct some 'Native Mod Compilation' code... it then turned to some 'improvements' here and there, then - to adding WFaS firearms into Warband, some retexturing (for example i have 4 different-colored Winged Helmets) and so on...
but now i'm stuck: at first i was just wandering why NPCs prefere Barbed Arrows over Khergit ones (in Auto Loot mod) even if they are fewer in scabard and since now i also have bullets to choose from i decided to correct this. and guess what? there's no item_slot_max_ammo...
...after some digging through modsystem source files and some testing i realized that also ranged weapon accuracy and shield hit points aren't present in any item_slot even if judging by header_items.py they should be in just different slots... but also judging by the same file horse speed is using shoot speed bits but in scrips it can be found in item_slot_head_armor...
So here's my question: how to obtain given item's max_ammo/accuracy/endurance/... numberic value from script? for now just for comparison reasons, but i'd like to be able to change it too... i have some 'enchantment mod' in mind that would allow to add skill or (if i find out how) attribute modifiers or in other ways 'enhance' certain (or any) items right from in-game
thanks in advance for any useful advice or just for pointing me into direction to dig to...