Hi everyone, I am working on a mod in which horses should have different colours (meshes) on a single item instead of having three times the same item but with a different mesh for each one. You could tell me to just leave it as it is, but this brings an issue:
One of the units in the mod can be either mounted or dismounted, but so far I have been using three items for the horse (saddle horse, hunter, and courser). The issue is that 3/4 of the units are mounted considering they have 3 horse items in their inventory, while I only want 1/2 of them to be mounted. I have noticed that the usual saddle horse in Warband is black in most cases but can also be white and brown:
→ From a merchant in-game, and both horses refer to the same item in module_items.py
I am wondering if there is a way to make one horse item with all three saddle horse, hunter, and courser 'colours' (meshes), so that the ratio of mounted/dismounted soldiers would be closer to 1/2, and the ratio of the horse mesh would be close to 1/3 looking like a saddle horse, 1/3 looking like a courser, and 1/3 looking like a hunter. Considering the saddle_horse item can have two meshes (although one of them is imodbits_horse_good), I guess there can be a way to add a third mesh, and most important a way for all of them to appear equally in-game.
If I use a single item in the troop's inventory (new_horse), the ratio of mounted/dismounted soldiers is good (1/2), but all horses appear looking like saddle horses. Here is the code I have made:
I was hoping that all three meshes would be appearing in-game by removing that imodbits_horse_good from the original saddle_horse item, however only the black ones appear and there are no hunter or courser meshes at all among the troops
I may simply have missed a detail in the coding process for the issue to be sorted, but have no idea of what needs to be done
One of the units in the mod can be either mounted or dismounted, but so far I have been using three items for the horse (saddle horse, hunter, and courser). The issue is that 3/4 of the units are mounted considering they have 3 horse items in their inventory, while I only want 1/2 of them to be mounted. I have noticed that the usual saddle horse in Warband is black in most cases but can also be white and brown:
["saddle_horse","Saddle Horse", [("saddle_horse",0),("horse_c",imodbits_horse_good)], itp_merchandise|itp_type_horse, 0, 240,abundance(90)|hit_points(100)|body_armor(8 )|difficulty(1)|horse_speed(45)|horse_maneuver(44)|horse_charge(10)|horse_scale(104),imodbits_horse_basic],
→ From a merchant in-game, and both horses refer to the same item in module_items.py
I am wondering if there is a way to make one horse item with all three saddle horse, hunter, and courser 'colours' (meshes), so that the ratio of mounted/dismounted soldiers would be closer to 1/2, and the ratio of the horse mesh would be close to 1/3 looking like a saddle horse, 1/3 looking like a courser, and 1/3 looking like a hunter. Considering the saddle_horse item can have two meshes (although one of them is imodbits_horse_good), I guess there can be a way to add a third mesh, and most important a way for all of them to appear equally in-game.
If I use a single item in the troop's inventory (new_horse), the ratio of mounted/dismounted soldiers is good (1/2), but all horses appear looking like saddle horses. Here is the code I have made:
["new_horse","Saddle Horse", [("saddle_horse",0),("courser",0),("hunting_horse",0)], itp_merchandise|itp_type_horse, 0,
240,abundance(90)|hit_points(100)|body_armor(8 )|difficulty(1)|horse_speed(45)|horse_maneuver(44)|horse_charge(10)|horse_scale(104),imodbits_horse_basic],
I was hoping that all three meshes would be appearing in-game by removing that imodbits_horse_good from the original saddle_horse item, however only the black ones appear and there are no hunter or courser meshes at all among the troops
I may simply have missed a detail in the coding process for the issue to be sorted, but have no idea of what needs to be done