Tachyon
Veteran
TheMageLord said:Making prisoner value dependent upon level is already mostly in the code. Theres just a line left out (I'm not sure if it was intentional or not). Heres how to add the line in and make it dependent on level. Find this in scripts.txt:Add this in right between the 6 and the 3 and change the 11 to a 12:game_get_prisoner_price -1
11 21 1 1224979098644774912 2133 2 72057594037927936 50 4 0 33 3 144115188075855885 360287970189639821 360287970189639831 2171 2 1224979098644774913 1224979098644774912 2133 2 1224979098644774914 1224979098644774913 2105 2 1224979098644774914 10 2107 2 1224979098644774914 1224979098644774914 2108 2 1224979098644774914 6 3 0 2075 1 72057594037927936Your new script should look like this:2133 2 72057594037927936 1224979098644774914The value has already been calculated by the rest of the script, they just forgot to assign the new value - that's what the extra line does. The actual calculation is level + 10, square that and divide by 6. So a looter is 4+10 = 14, squared = 196, div by 6 = 32.667, rounded down to 32 (the game only saves whole numbers, decimals are just discarded). A Nord Huscarl, on the other hand, is worth 28 +10, squared = 1444, div by 6 = 240. Slightly less for the weak, way more for the strong.game_get_prisoner_price -1
12 21 1 1224979098644774912 2133 2 72057594037927936 50 4 0 33 3 144115188075855885 360287970189639821 360287970189639831 2171 2 1224979098644774913 1224979098644774912 2133 2 1224979098644774914 1224979098644774913 2105 2 1224979098644774914 10 2107 2 1224979098644774914 1224979098644774914 2108 2 1224979098644774914 6 2133 2 72057594037927936 1224979098644774914 3 0 2075 1 72057594037927936
Note that by default this does not work with Ramun the slave trader, or tavernkeepers (if you made the other tweak), due to a check in the script to limit the calculation to ransom brokers. You can change the check to include Ramun and tavern keepers if you like, just change the 360287970189639821 360287970189639831 to this:What that does is broaden the range to include Ramun on the left side and all the tavernkeepers on the right side. I assume the only reason of this check would be that Ramun was supposed to pay a set price of 50 while ransom brokers relied on the level of the troop, so Ramun would pay more for looters and such but less for higher tier troops.360287970189639808 360287970189640122
Also, this is not compatible with red.murder's tweak - if you make it use the calculation it will overwrite the 50. I'll list them both so people can chose which one they want.
Rivacheg Raid,
They don't actually group up in big groups, what that does is make separate nearby groups join together when you attack one. So if you have 3 sea raider parties chasing you, and the closest one attacks, all 3 will attack. Or if you have 3 running from you and you jump on one, the other two help. The same way lords help eachother.
Goddamn, that is genius. Pure genius! Thank you