[ 3 / biz / cgl / ck / diy / fa / ic / jp / lit / sci / vr / vt ] [ index / top / reports ] [ become a patron ] [ status ]
2023-11: Warosu is now out of extended maintenance.

/sci/ - Science & Math


View post   

File: 132 KB, 1280x720, maxresdefault.jpg [View same] [iqdb] [saucenao] [google]
9186362 No.9186362 [Reply] [Original]

hey /sci/
i have a video game math problem
if i know a defense value and the resulting damage reduction (exponential), and then i reduce the initial defense value by a set amount, how do i apply an exponential formula to calculate the resulting damage reduction?
you should be able to solve this

>> No.9186368

by not giving us your highschool homework
why are you such a dumbass josh

>> No.9186382

There is no inherent relationship between "defense values" and "damage reduction."

Its your system, figure it out yourself.

>> No.9186478

>>9186362
give me a sample of defense values and their corresponding damage reduction and I can give you the parameters

>> No.9187225

Let x be the defence value and and f (x,A) be the damage reduction.

f (x,A)=Aexp(-x) where A is the initial damage value.

A reduction of defense value by b corresponds to x-b ; so:

f (x-b,A)=Aexp (-x+b).

>> No.9187228

In terms of f (x,A):

f (x-b,A)=f (x)e^b

>> No.9188259

>>9186362
>how do i apply an exponential formula

just take a function and input your values and then modify the function until it gives you the results you want


btw I know you are thinking about percentage reduction, but those systems are inherently flawed because they make the combat feel like shit, not to mention that is not how armor works in reality at all