Hallo,
Vielleicht kann da einer auch ein Beispiel mit 1 oder 2 Level angeben?
Setz es doch einfach ein.
// formula for calculating the amount of damage done by fists
function cal_fists(1) {
return floor(log10(1) * 30 + rand(-(int)(1 * .15), (int)(1 * .15))) + 1;}
floor(0*30+rand(-.15,.15))+1
Das wird im Durchschnitt 1 sein.
Gruß,
Henning
--
Gruß aus Braunschweig
SELF-Code: sh:( fo:| ch:{ rl:( br:> n4:( ie:( mo:) va:) de:] zu:} fl:( ss:| ls:<
http://emmanuel.dammerer.at/selfcode.html
http://www.peter.in-berlin.de/projekte/selfcode/?code=sh%3A(+fo%3A|+ch%3A{+rl%3A(+br%3A>+n4%3A(+ie%3A(+mo%3A)+va%3A)+de%3A]+zu%3A}+fl%3A(+ss%3A|+ls%3A<+js%3A|
Gruß aus Braunschweig
SELF-Code: sh:( fo:| ch:{ rl:( br:> n4:( ie:( mo:) va:) de:] zu:} fl:( ss:| ls:<
http://emmanuel.dammerer.at/selfcode.html
http://www.peter.in-berlin.de/projekte/selfcode/?code=sh%3A(+fo%3A|+ch%3A{+rl%3A(+br%3A>+n4%3A(+ie%3A(+mo%3A)+va%3A)+de%3A]+zu%3A}+fl%3A(+ss%3A|+ls%3A<+js%3A|