d2jsp
Log InRegister
d2jsp Forums > Off-Topic > General Chat > Guild Chat & Recruiting > _| "sng Team" - Guildchat |_
Prev1220221222223224259Next
Add Reply New Topic New Poll
Member
Posts: 25,580
Joined: May 20 2006
Gold: 843.00
Feb 4 2010 02:54pm
Quote (Scaryghoul @ 4 Feb 2010 21:36)
Fixed the vitality problem by adding a variable which takes data from a library at the top of how much vitality they start with and it subtracts it from the input so users won't have to worry, but for the BO, wereforms, lycan, oak, that is all that way for a reason o.O If I didn't have them in parantheses the number coming out would be HUUUGE

Because I use percentages for bo, werewolf etc. and thus also for total_percent whereas you use real values (dividing each one by 100).

I do not perform the division until the final line (see #2207): lifetot = elife * (100 + total_percent)/100 + itemvitality * vitlife + item_life_per_level * level
Just less cluttered that way.

Quote (Scaryghoul @ 4 Feb 2010 21:36)
Anyways here is the edited version, still 80 life off
Code#!/usr/bin/env python

[...]

lifetot = elife * (1 + total_percent) + itemvitality + item_life_per_level* level
print lifetot

You are still not multiplying itemvitality by vitlife as you should.

This post was edited by Eywa on Feb 4 2010 03:03pm
Member
Posts: 29,614
Joined: Sep 23 2008
Gold: 0.00
Feb 4 2010 07:10pm
lol

This post was edited by ashwinthegrim on Feb 4 2010 07:10pm
Member
Posts: 9,197
Joined: Jan 24 2009
Gold: 4,767.60
Feb 4 2010 10:23pm
Only 4 points off now, I fixed what nooben irl said. Ideas? This could be due to Diablo II's rounding down, Eywa you said something ealier but not quiet sure what you meant(do you want me to replace the life with the real values in eights?)
Code
#!/usr/bin/env python

# Dictionaries for character stats
vitlife = {'amazon':3, 'assassin':3, 'barbarian':4, 'druid':2, 'necromancer':2, 'paladin':3, 'sorceress':2}
lvlife = {'amazon':2, 'assassin':2, 'barbarian':2, 'druid':2, 'necromancer':1.5, 'paladin':2, 'sorceress':1}
slife = {'amazon':50, 'assassin':50, 'barbarian':55, 'druid':55, 'necromancer':45, 'paladin':55, 'sorceress':40}
svitality = {'amazon':20, 'assassin':20, 'barbarian':25, 'druid':25, 'necromancer':15, 'paladin':25, 'sorceress':10}
#charclass = character classes, case sensitive
charclass = raw_input('Character class: ')
charclass = charclass.lower()

#Setting character level
level = input('Character level? ')
#Setting all the input variables
vitality = 0
vita = input('Base vitality without items: ')
vitality = vita - svitality[charclass]
itemvitality = input('Vitality from items: ')
item_life_per_level = input('Life/level from items? ')
#Setting a BO level variable
bolvl = input('BO level: ')
bo = 0
if bolvl:
bo = (bolvl * 3 + 32)
#Transformed states variables
werewolf = 0
werebear = 0
lyc = 0

ww = raw_input('Werewolf? ')
if ww == 'yes':
werewolf = 0.25
lyc = input('Lycanthropy level? ')

wb = raw_input('Werebear? ')
if wb == 'yes':
werebear = 0.50
lyc = input('Lycanthropy level? ')
lycan = 0
if lyc:
lycan = (lyc * 5 + 15)

#Bird quest
bird = input('How many golden bird quests have you completed? ') * 20
#Percentage of +% life from items
itempercent = input('+% Life from items? ')
#+ xx to life items
itemlife = input('+ X to life from items ')
#Oak sage variable

oak = 0

sage = input('Oak sage level ')

if sage:

oak = (sage * 5 + 25)
#Character classes, vitality per life, life per level, starting life
#Life boosters
total_percent = (itempercent + werebear + werewolf + lycan + bo + oak)/100.0
#Boostable life
elife = slife[charclass] + (lvlife[charclass] *level) + itemlife +(vitality * vitlife[charclass]) + bird
#Total life
lifetot = elife * (1 + total_percent) + (itemvitality * vitlife[charclass]) + item_life_per_level* level
print lifetot
Member
Posts: 9,197
Joined: Jan 24 2009
Gold: 4,767.60
Feb 4 2010 11:24pm
This is where I think we should focus on for now since we are 4 points off.
Total percent = total % of boosters
item % = +% of life from items(enigma)
elife = total boostable life
slife = starting life, the thing inside the brackets next to it is just a key, so don't worry about that
lvlife = life/level
level = character level
item life = life from items
vitlife = life per vitality
vitality = total vitality without items - starting vitality
lifetot = total life obv
item vitality = vitality from items
item_life_per_level = items with life/lvl mods
Code
#Life boosters
total_percent = (itempercent + werebear + werewolf + lycan + bo + oak)/100.00

#Boostable life)
elife = slife[charclass] + (lvlife[charclass] *level) + itemlife +(vitality * vitlife[charclass]) + bird
#Total life
lifetot = elife * (1 + total_percent) + (itemvitality * vitlife[charclass]) + (item_life_per_level* level)
print lifetot
Member
Posts: 29,614
Joined: Sep 23 2008
Gold: 0.00
Feb 4 2010 11:33pm
Quote (Eywa @ Feb 4 2010 06:01am)
Enigma: Increase Maximum Life 5% (20 * 1.05 = 21).

Verily, you must be n00ben ingame + IRL.


:cry: ofc Great Mother, ofc.. >.< almost all my chars use enigma, so I assumed bird gave 21 life :wallbash:

Quote (ashwinthegrim @ Feb 3 2010 04:43am)
My Current Project on ESCL:

Yes, I know it's a damn waste of time, but i'm trying to make a perf GF barb. Why? Coz that's the stupidest char I thought of when i decided to make ONE perfect char.. I still need the following to complete him :P

1. 2 x 120ed 15dex ali babas
2. 2 x 40GF warcry gcs
3. 1 x 10gf/5allres sc
4. 102 def double upped chancies
5. 130 def double upped goldwrap
6. 100 gf/12ll/200ed Eth Crown of Thieves

If anyone can find something close on ESCL (trades or MFing), please drop me a pm :P


got a 10/5.. so that's off the list :D
Member
Posts: 9,096
Joined: Sep 4 2006
Gold: 484.19
Feb 5 2010 01:33am
I Rage and I Suck :thumbsup:
Member
Posts: 25,580
Joined: May 20 2006
Gold: 843.00
Feb 5 2010 01:54am
Quote (pawcisxdiablo2 @ 5 Feb 2010 08:33)
I Rage and I Suck :thumbsup:

Sorry m9, it's: I Rage And I Suck !

Quote (Scaryghoul @ 5 Feb 2010 05:23)
Only 4 points off now, I fixed what nooben irl said. Ideas? This could be due to Diablo II's rounding down, Eywa you said something ealier but not quiet sure what you meant(do you want me to replace the life with the real values in eights?)

No, at least not yet (and perhaps not at all in the end). 4 points in which direction, above or below the value displayed?

Carefully re-check character constants. See CharStats.txt (patch_d2.mpq): http://phrozenkeep.hugelaser.com/index.php?ind=reviews&op=entry_view&iden=389 .

Including only constants of interest below.

Code
class            int    vit    stamina    hpadd    LifePerLevel    StaminaPerLevel    ManaPerLevel    LifePerVitality    StaminaPerVitality    ManaPerMagic

Amazon           15     20       84        30          8                  4               6               12                    4                  6
Assassin         25     20       95        30          8                  5               6               12                    5                  7
Barbarian        10     25       92        30          8                  4               4               16                    4                  4
Druid            20     25       84        30          6                  4               8                8                    4                  8
Necromancer      25     15       79        30          6                  4               8                8                    4                  8
Paladin          15     25       89        30          8                  4               6               12                    4                  6
Sorceress        35     10       74        30          4                  4               8                8                    4                  8

Starting Life equals vit + hpadd, Starting Mana equals int
LifePerLevel, StaminaPerLevel, ManaPerLevel, LifePerVitality, StaminaPerVitality, ManaPerMagic are in 4ths (4:1).

Or look here: http://classic.battle.net/diablo2exp/classes/

This post was edited by Eywa on Feb 5 2010 01:55am
Member
Posts: 9,096
Joined: Sep 4 2006
Gold: 484.19
Feb 5 2010 03:37am
Clown_IRage And I Ultima1! :thumbsup:
Member
Posts: 9,197
Joined: Jan 24 2009
Gold: 4,767.60
Feb 5 2010 07:09am
Quote (Eywa @ Feb 5 2010 02:54am)
Sorry m9, it's: I Rage And I Suck !


No, at least not yet (and perhaps not at all in the end). 4 points in which direction, above or below the value displayed?

Carefully re-check character constants. See CharStats.txt (patch_d2.mpq): http://phrozenkeep.hugelaser.com/index.php?ind=reviews&op=entry_view&iden=389 .

Including only constants of interest below.

Codeclass            int    vit    stamina    hpadd    LifePerLevel    StaminaPerLevel    ManaPerLevel    LifePerVitality    StaminaPerVitality    ManaPerMagic

Amazon          15    20      84        30          8                  4              6              12                    4                  6
Assassin        25    20      95        30          8                  5              6              12                    5                  7
Barbarian        10    25      92        30          8                  4              4              16                    4                  4
Druid            20    25      84        30          6                  4              8                8                    4                  8
Necromancer      25    15      79        30          6                  4              8                8                    4                  8
Paladin          15    25      89        30          8                  4              6              12                    4                  6
Sorceress        35    10      74        30          4                  4              8                8                    4                  8
Starting Life equals vit + hpadd, Starting Mana equals int
LifePerLevel, StaminaPerLevel, ManaPerLevel, LifePerVitality, StaminaPerVitality, ManaPerMagic are in 4ths (4:1).

Or look here: http://classic.battle.net/diablo2exp/classes/


Hmm I kind of flew through those stats and never double checked them, mabey the problem lies there. Will check later, taking a break.

I have a problem to report.....I am becomming addicted to pokemon games...(lol I know sounds nerdy right?)
I am playing them on my PSP using the gameboy versions since I don't have a real gameboy.....one very large problem....when it tries to save on low battery.....the game doesn't save and makes me rage hard....pic related


This post was edited by Scaryghoul on Feb 5 2010 07:10am
Member
Posts: 25,580
Joined: May 20 2006
Gold: 843.00
Feb 5 2010 07:13am
Quote (Scaryghoul @ 5 Feb 2010 14:09)
I have a problem to report.....I am becomming addicted to pokemon games...(lol I know sounds nerdy right?)
I am playing them on my PSP using the gameboy versions since I don't have a real gameboy.....one very large problem....when it tries to save on low battery.....the game doesn't save and makes me rage hard....pic related
http://i48.tinypic.com/6jejdd.png

You're like a baby, making noise, don't know what to do.

This post was edited by Eywa on Feb 5 2010 07:14am
Go Back To Guild Chat & Recruiting Topic List
Prev1220221222223224259Next
Add Reply New Topic New Poll