Converting Mechanical Lore
def bitsPerRank(n): return 200+n def bits(n): total = 0 for i in range(n+1): total += bitsPerRank(i) return total mech = input('Enter your Mechanical Lore skill: ') crafting = input('Enter your Crafting skill: ') totalBits = bits(mech) + bits(crafting) ranks = max(mech, crafting) while bits(ranks+1) < totalBits: ranks += 1 print "You will end up with approximately", ranks, "ranks in your Crafting skill."
$ python convert.py Enter your Mechanical Lore skill: 100 Enter your Crafting skill: 100 You will end up with approximately 174 ranks in your Crafting skill.
$ python convert.py Enter your Mechanical Lore skill: 541 Enter your Crafting skill: 306 You will end up with approximately 675 ranks in your Crafting skill.
Note the program does not take into account bits that are remainders (% of ranks earned), so the result may underestimate your result by a rank. I plan to work on a jsfiddle calculator in the coming days if someone doesn't beat me to it. - padhg (talk) 12:53, 20 December 2016 (CST)