01-26-2011, 03:36 PM
(01-23-2011, 10:32 PM)TheouAegis Wrote: That is what I want, ATK-DF=HP_Lost. The problem is the values I'm working with were not originally set up that way, so I'm trying to convert the formula to that simpler one. However, I would also like it to be a symmetrically scaled adjustment, even if it is bell-shaped. But I can mess with the shape if I ever find a way to simplify the formula. But that's why I don't want to use "If x>50, x=50" because that would yield an "r"-shaped curve. I want an omega-shaped, J-shaped or L-shaped curve, depending on whatever's closest to the original shape. Since the orignal was fairly linear, I think an "S"-shaped curve will be what I end up getting. with the bottom of the S being 1 and the top being 50.
Oh, I think I see what you're getting at now.
You want a graph that works almost like a sin function, where it starts at 0, increases up until a halfway point like a parabola and then levels off with a parabola at 50.
Code:
.........__
.......,=..
....../....
.....|.....
..../......
__=*.......