sirinan
Regular

This is probably a really simple one, but bear with me - I'm only just starting to look at the module source.
It's always bugged me that some troop types give way more loot than others. Extreme examples being sea raiders, who give you abundant loot, compared to, say, Nord huntsmen, where the only loot you will ever get is a shirt.
Looking at the script that defines what loot is given, I think I understand why that is - it doesn't consider equipped items when it tallies up the available loot - only the items which appear in their inventory. And for troops which are given a lot of alternate items, such as sea raiders, they will be given a lot of items which they will not be equipping.
I want to change that. Rather than cycling through the inventory items, I want to cycle through the equipped items.
So, the question is, is there an equivalent array attached to the troop for equipped items that I can replace the inventory array with? Or is it a bit messier than that?
Any help, or pointers to information I can use, would be appreciated.
It's always bugged me that some troop types give way more loot than others. Extreme examples being sea raiders, who give you abundant loot, compared to, say, Nord huntsmen, where the only loot you will ever get is a shirt.
Looking at the script that defines what loot is given, I think I understand why that is - it doesn't consider equipped items when it tallies up the available loot - only the items which appear in their inventory. And for troops which are given a lot of alternate items, such as sea raiders, they will be given a lot of items which they will not be equipping.
I want to change that. Rather than cycling through the inventory items, I want to cycle through the equipped items.
So, the question is, is there an equivalent array attached to the troop for equipped items that I can replace the inventory array with? Or is it a bit messier than that?
Any help, or pointers to information I can use, would be appreciated.