Finished building my life calculator. It's written in python so whoever wants to break it in go ahead, keep in mind there is no GUI so you run this from Terminal for linux users(windows users need to change the top line to where python is installed &/ install python then run from command prompt iirc). Shout if you see any errors.
Edit: JSP won't support indentation which will result in many errors, I have the file for download here
http://scaryghoul.servegame.com/chris/downloadsQuote
#!/usr/bin/env python
vitality = input('Vitality: ')
level = input('BO level: ')
a = 1.32
c = raw_input('Character Class: ')
l = 0
clvl = input('Character level: ')
cl = 0
il = input('Life from items: ')
iv = input('Vitality from items: ')
werewolf = 0.25
b = raw_input('Werewolf?(yes/no) ')
ilc = input('Life gained from life/level items: ')
bi = input('How many golden bird quests have you completed?(1,2,3) ')
bird = 0
wb = raw_input('Werebear?(yes/no) ')
werebear = 0
#O = oak sage level input
#lyc = lycanthropy level
#lycan = lycanthropy %
#finalbo represents bo level %
#boostable_life represents life that is boostable
#life_boosters represents skills that increase life %
#Vitality defines the total vitality of the character without items
#level defines the BO level
#a defines BO's base + 1.32
#c defines character type
#l defines life per vitality
#clvl defines chracter level
#cl defines the life per level
#il defines life given from items
#iv defines vitality given from items
#werewolf defines the value of life added from werewolf
#b defines whether or not werewolf is active
#ilc defines items that give life/level
#bi defines how many bird quests
#bird defines life from bird quest
if wb == 'yes':
werebear = .50
elif wb == 'no':
werebear = 0
if bi == 1:
bird = 20
elif bi == 2:
bird = 40
elif bi == 3:
bird = 60
elif bi == 0:
bird = 0
if b == 'yes':
werewolf = .25
elif b == 'no':
werewolf = 0
if c == 'necromancer':
l = 2
cl = 1.5
elif c == 'amazon':
l = 3
cl = 2
elif c == 'assassin':
l = 3
cl = 2
elif c == 'barbarian':
l = 4
cl = 2
elif c == 'sorceress':
l = 2
cl = 1
elif c == 'druid':
l = 2
cl = 1.5
elif c == 'paladin':
l = 3
cl = 2
lyc = input('Lycanthropy level? ')
lycan = (lyc * 5 + 15) / 100
finalbo = (level / 100.00 * 3 + a)
O = input('Oak sage level? ')
oak = (O * 5 + 25) / 100
boostable_life = (vitality * l + (cl * clvl) +il * werewolf + bird * werebear)
life_boosters = finalbo + werebear + werewolf + oak + lycan
finalbo = (level / 100.00 * 3 + a)
nonboostable_life = (l *iv) + ilc
output = boostable_life * life_boosters + nonboostable_life
print output
This post was edited by Scaryghoul on Feb 4 2010 03:34am