View Single Post
  #11  
Old 04-23-2003, 09:08 AM
a_Guest03
Demi-God
 
Join Date: Jun 2002
Posts: 1,693
Default

Okay, I figured out how to get modals to happen the way they should.

Equation for melee combat (so far),

modalvalue = round((rand(0,1)*20*(ATK/AC))
if modalvalue < 1, modalvalue = 1
if modalvalue > 20, modalvalue = 20
DB + DI * modalvalue

That should give damage values along the modals, with peaks at (1-AC/ATK)*20. and minimum or maximum.

I haven't tested these yet.

I'll bring this all together into a sleek piece of logic that shouldn't be too hard to interpret into code by any programmer.
__________________
It's never too late to be something great.
Reply With Quote