Item assignment

正在查看此主题的用户

kapusta_nz

Recruit
Hi, I was making an equipment mod and discovered (I think  :smile: ) that the item assignment process does not seem to be random. Say, you have two helmets in a troop's item list and out of those, the most expensive one will be chosen more often than the less expensive one, so you see something like 3/4 of the troops wearing the more expensive helmet. If you make their prices equal, then it's the position of the item in the item list that matters.

So, has anyone else found the same problem, or is something going wrong with my modding?
 
No you are probably right.  I know for a fact if you give a troop two types of armor to choose he will wear a certain one much more often that the other.  I alway thought position in the list was more important.  I never thought that price was a factor.  Worth looking into though.
 
Well, I spent an hour or so fiddling with the combinations, and I think it's the price first, position second, though maybe if the price difference (or position difference) is large enough then it could be different. It's seriously annoying me though, as ideally I'd want a random combination of equipment. The assignment algorithm itself is hard-coded, isn't it?
 
You could re-code it, removing all the items from the troops and then assigning each troop items in the manner you want.

mfberg
 
后退
顶部 底部