Thread 712358105 - /v/ [Archived: 1064 hours ago]

Anonymous
6/11/2025, 8:59:35 PM No.712358105
1740374523547986
1740374523547986
md5: be71b83916d55b813f06db77dbd01295๐Ÿ”
why do game developers do this
Replies: >>712358602 >>712358714 >>712360067 >>712360615 >>712363218 >>712363662 >>712366225 >>712367089 >>712367279 >>712367318 >>712368307 >>712368459 >>712370014 >>712371390 >>712373102 >>712373634 >>712373978 >>712374312 >>712374798 >>712375783 >>712376318 >>712383976 >>712386056 >>712386428 >>712387825 >>712389505 >>712390046 >>712391527 >>712391621 >>712392958 >>712393653 >>712394591 >>712404062
Anonymous
6/11/2025, 9:01:07 PM No.712358256
you'd know if you tried your hand at balancing, anon.
Replies: >>712358604 >>712358942 >>712374130 >>712383798
Anonymous
6/11/2025, 9:05:02 PM No.712358602
>>712358105 (OP)
protip, you read these as if statememts

>DMG = ATK*0.1 for ATK <= 1/8 * DEF
is equivalent to
>if (ATK <= 1/8*DEF)
>{
>DMG = ATK *0.1;
>}
Replies: >>712358748 >>712377505
Anonymous
6/11/2025, 9:05:03 PM No.712358604
1719073181422161
1719073181422161
md5: 7155c28c11db987aca425b2f87578ca2๐Ÿ”
>>712358256
i think i would probably do better than from software considering defense has only ever been useless at all levels, or only useful when stacked as high as possible and then overpowered
Replies: >>712379704
Anonymous
6/11/2025, 9:06:20 PM No.712358714
>>712358105 (OP)
For me it's
>A's STR2 รท (B's STR+DEF)
Replies: >>712358803
Anonymous
6/11/2025, 9:06:44 PM No.712358748
1723893268771512
1723893268771512
md5: 01ebcbd3384952c6aca1d02afb17bbbb๐Ÿ”
>>712358602
yes thanks its a piecewise function something everyone learns in highschool
my problem is that its 5 pieces each with 5 magic numbers
this is a much more reasonable defense calculation (league of legends)
Replies: >>712358882 >>712369417 >>712369558 >>712399295
Anonymous
6/11/2025, 9:07:23 PM No.712358803
1742969648054567
1742969648054567
md5: fb9dd864c2ea77be0760a19d6a7e20f9๐Ÿ”
>>712358714
>4chan ate my squared symbol
well fuck you, too
Anonymous
6/11/2025, 9:08:23 PM No.712358882
>>712358748
how do you even read that?
Replies: >>712359131 >>712359753
Anonymous
6/11/2025, 9:09:00 PM No.712358942
>>712358256
desu balancing like the OP's image is a typically japanese approach, where they go out of their way to try to make the calculations as arcane as possible for... some reason. and they add all sorts of fiats and hardcoded special rules for everything. maybe it is to make the game feel deeper but personally i find it amateurish. i think there's some truth to the idea that stupid people admire complexity whereas smart people like simplicity

western approach is as few numbers and variables as possible, probably due to pen & paper influence. the western approach usually makes it easier to predict and simulate what might happen, which can make the game feel more intuitive and tactical.
Replies: >>712360356
Anonymous
6/11/2025, 9:11:10 PM No.712359131
1741418793358908
1741418793358908
md5: 7ad1a405c33d253d0bdb8cf1713de962๐Ÿ”
>>712358882
its another piecewise function
basically it maths out to "you can tank R% extra damage before you die, unless R<0 then you take R% extra damage"
Replies: >>712359753
Anonymous
6/11/2025, 9:18:27 PM No.712359753
>>712358882


if R >= 0
{
value = 100/(100+R);
}
else
value=2-(100/(100+R));

dm = dr * value

>>712359131
fuck neat me to it
Anonymous
6/11/2025, 9:21:57 PM No.712360067
>>712358105 (OP)
what game?
Replies: >>712360692
Anonymous
6/11/2025, 9:25:01 PM No.712360356
>>712358942
>Japanese do it for no reason and are dumb
What an idiotic statement
Replies: >>712360903
Anonymous
6/11/2025, 9:27:24 PM No.712360587
1740066843399617s
1740066843399617s
md5: 3156655065b904e2febe823fee53a7cc๐Ÿ”
how do I get better at maths?
this shit is unintelligible to me
Replies: >>712374076
Anonymous
6/11/2025, 9:27:33 PM No.712360601
I failed calc 1 twice so I hate seeing this shit. Get ts off my screen
Anonymous
6/11/2025, 9:27:43 PM No.712360615
1747022284146443
1747022284146443
md5: 43417bf84d5c4c928365a492de75d27e๐Ÿ”
>>712358105 (OP)
It comes from not understanding the concept that simple rules can cause complex emergent phenomena with high depth gameplay. They try and add complexity when they realise their game has shallow gameplay. They want things to be solved with an optimal solution instead of just letting nature do its work.
Anonymous
6/11/2025, 9:28:27 PM No.712360692
1718139758414475
1718139758414475
md5: 1861826fd73bce981ac3408ae1c5ee9a๐Ÿ”
here's terraria's defense calculation
it highlights a huge issue i have with a lot of defense systems
say you are fighting an enemy with 30 defense (like a mimic) on expert mode
if you attack it with a single 100 damage attack, you will deal 100 - 30 * 0.75 = 78 damage
if you attack it with a 4x25 damage attack, you will deal 4x (25 - 30 * 0.75) = 10 damage
this means slower, heavier hitting weapons are just naturally the strongest in the majority of situations since almost every enemy has a decent amount of armor
this is also true in >>712360067 dark souls 1 of course
Replies: >>712361306 >>712363183 >>712371915 >>712374187 >>712374371 >>712377821
Anonymous
6/11/2025, 9:30:41 PM No.712360903
>>712360356
uhh yeah, why do you think japanese fighting games didnt have rollback still like 25 years after western devs had figured it out? and even then in a lot of studios they had to bring over western devs to do it for them. they're just not that good at tech stuff in general
Replies: >>712363273
Anonymous
6/11/2025, 9:33:34 PM No.712361148
1739964282720689
1739964282720689
md5: fcb406c2d535936857b88a7e95d9210b๐Ÿ”
why do game developers do this
Replies: >>712366519 >>712390779 >>712394021
Anonymous
6/11/2025, 9:35:12 PM No.712361295
1730793376594667
1730793376594667
md5: 79569226cf013e2d1224a58f0bcc6718๐Ÿ”
I hate nikke's formula that makes crit useless
Anonymous
6/11/2025, 9:35:15 PM No.712361306
>>712360692
>you do less damage if you attack with a weaker weapon
and?
Replies: >>712362008 >>712363457 >>712363651
Anonymous
6/11/2025, 9:39:46 PM No.712361707
for me

DMG = Atk - Def
Replies: >>712362540
Anonymous
6/11/2025, 9:43:08 PM No.712362008
>>712361306
It's not proportional
Replies: >>712363096
Anonymous
6/11/2025, 9:44:05 PM No.712362089
if +1 attack power doesn't mean 1 point of extra damage then the systems in your game essentially boil down to "number go up" because the player is never going to actually look into the calcuations
Replies: >>712372128
Anonymous
6/11/2025, 9:48:43 PM No.712362540
>>712361707
sooo, if someone has less attack than the enemy's defense, they take damage?
Replies: >>712365630 >>712367128
Anonymous
6/11/2025, 9:54:25 PM No.712363096
>>712362008
Proportional to what? The 4x25 weapon is weaker, that's all there is to it.
Replies: >>712376272
Anonymous
6/11/2025, 9:55:19 PM No.712363183
>>712360692
direct addition/deduction is in a way the most intuitive for armor, because it doesn't matter how many times you poke at plate armor with a knife, you're never getting through. getting power armor in something like fallout 1/2 feels kino because like 80% of the enemies become completely incapable of even damaging you. that's what really good armor should feel like

that said an approach like that is very limiting and doesn't fit into games like terraria much at all
Replies: >>712398594
Anonymous
6/11/2025, 9:55:39 PM No.712363218
>>712358105 (OP)
Provides enough variance at lower ratios that seemingly marginal changes aren't useless, while limiting variance at higher ratios so that the game doesn't become broken to uselessness.
Replies: >>712363751 >>712365049
Anonymous
6/11/2025, 9:56:20 PM No.712363273
>>712360903
Japanese developers are often technologically conservative, but Japanese games have much better game design than Western ones. I don't know why some JRPGs have such complex damage formulas, but that doesn't make me think there's no reason. Here's a guess: They're a result of tweaking the numbers until the enemies die roughly at the speed they want (for design reasons), while keeping the numbers steadily rising throughout the game (for aesthetic reasons)
Replies: >>712387563
Anonymous
6/11/2025, 9:58:16 PM No.712363457
>>712361306
doing 10x less DPS because you are using a higher level rapidfire weapon instead of lower level fuckhuge slow sword is bad design
Anonymous
6/11/2025, 10:00:05 PM No.712363651
>>712361306
these games have like 50 different weapons and only 3 of them are useful
Anonymous
6/11/2025, 10:00:17 PM No.712363662
>>712358105 (OP)
in this game's case, it's because there's different weapon types that need to be balanced differently. Tiny daggers hit fast and should do "a lot of damage" to unarmored foes, less to armored but not completely nullified (like they would be with Terraria like formulas), so that things remain balanced. Then there's the next weight category of weapons like swords which might get 1-2 less hits in than the daggers, but should still do about as much to unarmored dudes, maybe a little more versus armor. Then bigass weapons when you're likely to get only one hit in so it should almost always count ... it's a bunch of edge cases with discrete jumps in numbers, driven by the game's thematic design rather than an initial goal of having clean math and going from there. The numbers you get are cryptic as a result (weapon AR means nothing because it's nonlinear), but it feels sovlful as hell tbqh

then in Elden Ring they fuck it all up with retarded weapon arts and spells doing gorillions of damage
Replies: >>712363943
Anonymous
6/11/2025, 10:01:09 PM No.712363751
>>712363218
This seems like the correct answer to me
Anonymous
6/11/2025, 10:03:28 PM No.712363943
>>712363662
This. I rather like formulas that have some portion of defenses ignored by attack for this reason. As janky as Dark Souls is, all the number tweaking they can do let them do stuff like keep Daggers damage low but still make it an effective riposte weapon.
Anonymous
6/11/2025, 10:05:36 PM No.712364121
>yfw you try to decipher monster hunter's damage mechanics
Anonymous
6/11/2025, 10:09:23 PM No.712364461
I swear threads like these are made just to flex on me because I am absolutely atrocious at math and can't even read most of that.
Replies: >>712364760 >>712365231
Anonymous
6/11/2025, 10:09:52 PM No.712364501
Why don't they use percentages for everything? The attack is 10, but your level increases it by 200%. Your weapon increases by 100%. The enemy's armor reduces total damage by 25%, etc.
Anonymous
6/11/2025, 10:13:04 PM No.712364760
>>712364461
The right column determines what formula you use. It chooses which DEF value the ATK value is fighting against depending on the difference between ATK and DEF. The larger the difference in favor of DEF, the more effective the DEF is, and the smaller the difference, the less effective the DEF is.
Replies: >>712365469
Anonymous
6/11/2025, 10:16:09 PM No.712365049
>>712363218
Additionally, the formulas ensure that damage still goes up when ATK and DEF go up even if the ratio is the same, making HP important. Otherwise, you could just stack DEF and HP would be irrelevant.
Anonymous
6/11/2025, 10:18:10 PM No.712365231
>>712364461
Gain some self confidence or learn some basic math, bitch.
Replies: >>712365469
Anonymous
6/11/2025, 10:20:11 PM No.712365384
The numbers are also tuned towards values of DEF and ATK the players can actually reach, so looking at in a vacuum doesn't tell the whole picture either.
Anonymous
6/11/2025, 10:21:12 PM No.712365469
1720617075367099
1720617075367099
md5: 7b7a4694b2ac7adf909e871f0935c1bc๐Ÿ”
>>712364760
I don't know how to read a formula at all. I don't know what you mean by values fighting against each other and it's hard for me to tell which value is for DEF and which is ATK in that image because it is very poorly shown. I can't comprehend your last sentence at all. Math formulae seem like a really poor way to convey information.

>>712365231
I have self confidence and know basic arithmetic, but anything beyond that is just incomprehensible to me. I still don't know how to do multiplication without a calculator and can never remember which number goes first with division, like if I'm trying to figure out how many times 4 goes into 10 I have no idea if I do 4/10 or 10/4, I just do both and go with which one seems more likely. It's just not intuitive to me at all.
Replies: >>712366675 >>712367018 >>712370775 >>712386614
Anonymous
6/11/2025, 10:23:07 PM No.712365630
>>712362540
Makes sense
Anonymous
6/11/2025, 10:24:17 PM No.712365747
1594854435532
1594854435532
md5: 8b52a37fd7a8076ac4e09e5760f5fc2a๐Ÿ”
[code]DMG = rand(0, max(0, ATK-DEF) );[/code]
Replies: >>712365825 >>712365848 >>712366229
Anonymous
6/11/2025, 10:25:20 PM No.712365825
>>712365747
nice /v/ doesn't have a code tags what a dogshit board btw not, posting here again
Anonymous
6/11/2025, 10:25:35 PM No.712365848
>>712365747
>satania
let me guess, you're a tranny?
Replies: >>712365979
Anonymous
6/11/2025, 10:26:36 PM No.712365951
i hate calculus
Anonymous
6/11/2025, 10:26:38 PM No.712365958
atk-def works the best.
Replies: >>712366127 >>712368449
Anonymous
6/11/2025, 10:26:49 PM No.712365979
>>712365848
no but (YOU) are
Anonymous
6/11/2025, 10:28:21 PM No.712366127
>>712365958
what if the defense is higher than the attack
Replies: >>712366229 >>712366495 >>712366637
Anonymous
6/11/2025, 10:29:20 PM No.712366225
>>712358105 (OP)
I want to see what this looks like on a graph
Replies: >>712367279
Anonymous
6/11/2025, 10:29:24 PM No.712366229
>>712366127
then u hit 0 always >>712365747
Replies: >>712366730
Anonymous
6/11/2025, 10:32:36 PM No.712366495
>>712366127
Clamp to zero.
Replies: >>712366730
Anonymous
6/11/2025, 10:32:51 PM No.712366519
>>712361148
hope you bought the game since it's funding my diet soda habits
Replies: >>712369857
Anonymous
6/11/2025, 10:34:08 PM No.712366637
>>712366127
you inflict negative damage
Anonymous
6/11/2025, 10:34:34 PM No.712366675
>>712365469
The formula in OP is basic math. If you don't want to practice math, don't get bothered by threads like this.
Replies: >>712366839
Anonymous
6/11/2025, 10:35:13 PM No.712366730
>>712366495
>>712366229
then you can only hurt enemies lower level than you
Replies: >>712366787 >>712366797 >>712366897
Anonymous
6/11/2025, 10:35:51 PM No.712366787
>>712366730
yes.
Replies: >>712368291
Anonymous
6/11/2025, 10:35:58 PM No.712366797
>>712366730
yes?
Replies: >>712368291
Anonymous
6/11/2025, 10:36:35 PM No.712366839
>>712366675
you don't choose to get bothered by something, it just happens

>basic math
>parentheses
>whatever that horizontal line between the numbers is
>the little number floating outside
Replies: >>712367429 >>712367604
Anonymous
6/11/2025, 10:37:14 PM No.712366897
>>712366730
Not really. It does make atk and def more intuitive though and with that the status effects that affect them.
Replies: >>712368291
Anonymous
6/11/2025, 10:38:13 PM No.712366970
weapons should have one damage number and damage calculation should be weapon damage minus armor, that's it
no stupid 69-123 damage ranges
Replies: >>712367225
Anonymous
6/11/2025, 10:38:49 PM No.712367018
>>712365469
The ATK or DEF value is wherever it says ATK or DEF. The numbers are whatever your ATK or DEF is. And the last sentence means if you have 1000 ATK vs. 500 DEF, you might do 700 damage, ignoring 200 of their DEF, but if you had 800 ATK vs. 500 DEF, you might do 400 damage, only ignoring 400 of their DEF instead, since the 1000 ATK got to go against a different formula from the right-hand side that made their DEF a bit less effective. Fake numbers, but a simplified way to look at it.
Replies: >>712367589
Anonymous
6/11/2025, 10:39:33 PM No.712367089
null
md5: null๐Ÿ”
>>712358105 (OP)
would you prefer
Replies: >>712382661 >>712384213 >>712395939
Anonymous
6/11/2025, 10:40:03 PM No.712367128
>>712362540
it means armor is too thick and your sword bounces back and hurts your wrists
Anonymous
6/11/2025, 10:41:10 PM No.712367225
>>712366970
but i like when theres both flat and % based mitigation
means theres value in both maximum dps and maximum burst
Anonymous
6/11/2025, 10:41:52 PM No.712367279
null
md5: null๐Ÿ”
>>712358105 (OP)
>>712366225
lol what the fuck
this looks like an accident, like they were using some kind of software to generate equations from curves and didn't realize that these weren't straight lines
what game?
Replies: >>712368364 >>712368459 >>712377959 >>712379332 >>712382282
Anonymous
6/11/2025, 10:42:22 PM No.712367318
>>712358105 (OP)
What pissess me off is
>can't reduce dmg taken to 0, minimum damage taken will always be 1
Replies: >>712367864
Anonymous
6/11/2025, 10:43:38 PM No.712367429
>>712366839
You do. It just takes time. Work on your self-esteem.
Replies: >>712367715
Anonymous
6/11/2025, 10:45:36 PM No.712367589
null
md5: null๐Ÿ”
>>712367018
Then why does it say ATK over DEF in the parentheses next to each ATK value? Why is there 5 of them?
>And that last sentence means (...)
what I mean is that I can't comprehend that degree of abstraction, like
>the larger the difference in favor of DEF
already lost me because I have no idea what you mean by difference in favor of def, but
>the more effective the DEF is
completely and totally lost me because I can't think of the previous point and factor this one in at the same time

like, if someone goes, "if x equals y, then z" nope, too many, can't think of that much at once

like your elaboration on the last sentence, thanks for that, but that is far too many numbers and relations for me to even begin to mentally process, by the time I got to "ignoring 200 of their DEF" I was completely confused
Anonymous
6/11/2025, 10:45:46 PM No.712367604
>>712366839
You can ignore everything but
>ATK * (ATK/DEF)^2
The rest are just coefficients to fudge the numbers.
Replies: >>712367715 >>712369721
Anonymous
6/11/2025, 10:47:03 PM No.712367715
>>712367429
There's no relation, it's like me farting in your face and then telling you you lack self esteem if it upsets you.

>>712367604
So I know to do parentheses first, so ATK divided by DEF, but I have no idea what that ^ is or if I do it before multiplying the final value by ATK
Anonymous
6/11/2025, 10:48:03 PM No.712367805
Balancing is really hard and if you don't plan out every single number beforehand you end up with retarded equations like this.
Expressed as an equation it looks insane and retarded but as procedural code it's probably more straightforward.
Replies: >>712368097
Anonymous
6/11/2025, 10:48:57 PM No.712367864
>>712367318
>game has no limit on damage tickrate
>optimal dps is to just hit them for 1 a billion times per second
>BUT
>the game spawn little individual damage visuals for each instance of damage and will not batch or cull them
>therefore going full retard with this will instantly crash your game
>so you have to optimize your damage to just under the point of completely raping the framerate
Anonymous
6/11/2025, 10:51:33 PM No.712368097
>>712367805
Judging by the amount of magic numbers in there I think reaching that solution was anything but straightforward.
Replies: >>712368337
Anonymous
6/11/2025, 10:53:57 PM No.712368291
>>712366787
>>712366797
>>712366897
>cant hurt the enemy guess ill grind 20 levels
Replies: >>712368584
Anonymous
6/11/2025, 10:54:07 PM No.712368307
null
md5: null๐Ÿ”
>>712358105 (OP)
It's time to RETVRN to tradition.
Anonymous
6/11/2025, 10:54:23 PM No.712368337
>>712368097
magic numbers arent complicated theyre just retarded
Anonymous
6/11/2025, 10:54:35 PM No.712368364
null
md5: null๐Ÿ”
I went looking for an existing curve to help explain this concept. I started with Warcraft armor figures and couldn't think of anything better.

Obviously, you start with linear, maybe with clamping at either end of the full range. If that ends up with bad behavior in certain ranges, you try a simple curve - polynomial, exponential, logarithmic, x/(x+C), etc. If that still has issues then you go piecewise and tailor each range to behave properly.

>>712367279
That is amusing but realize that you've shown one plot when the functions given produce a spectrum of plots, a la pic related. It looks like the tool you're using lets you just drag that slider to see the spectrum so I assume its mostly linear for all values for you to have posted that one shot.
Replies: >>712369193 >>712378728 >>712390748
Anonymous
6/11/2025, 10:55:34 PM No.712368449
>>712365958
i think this is actually not a bad system as long as damage is floored to 1
it worked great in Fallout NV
Anonymous
6/11/2025, 10:55:38 PM No.712368459
null
md5: null๐Ÿ”
>>712367279
>>712358105 (OP)
not paying for plus aislop
Anonymous
6/11/2025, 10:55:55 PM No.712368493
null
md5: null๐Ÿ”
Math guys who don't put the multiplication sign in formulas are absolute tryhard fucknuggets
Replies: >>712368575 >>712368642 >>712368687 >>712369692 >>712391870
Anonymous
6/11/2025, 10:56:51 PM No.712368575
>>712368493
did you drop out of school in 5th grade
Replies: >>712368632
Anonymous
6/11/2025, 10:56:58 PM No.712368584
>>712368291
That's why the game has levels and stats.
Anonymous
6/11/2025, 10:57:22 PM No.712368632
>>712368575
I've never used formulas like that in school
Replies: >>712368734
Anonymous
6/11/2025, 10:57:29 PM No.712368642
>>712368493
The fuck are you talking about?
Replies: >>712368717
Anonymous
6/11/2025, 10:57:59 PM No.712368687
>>712368493
Anon... It's the dot.
Replies: >>712368824
Anonymous
6/11/2025, 10:58:24 PM No.712368717
>>712368642
The one in the OP is doing it right, a lot of people omit the dot between variables and numbers
Replies: >>712369249
Anonymous
6/11/2025, 10:58:32 PM No.712368734
>>712368632
so you never got to pre-algebra? are you like a dravidian peasant or something? either that you are are genuinely 11 years old.
Replies: >>712368824 >>712369062
Anonymous
6/11/2025, 10:59:25 PM No.712368824
>>712368687
I know, but I'm still saying it is

>>712368734
I graduated, I never did anything like that
Replies: >>712369692
Anonymous
6/11/2025, 10:59:36 PM No.712368845
Defense is a scam by merchants to sell you more armors.
Just remove the stat and put it all in health, problem, fixed. Take the Guild Wars pill.
Anonymous
6/11/2025, 11:01:54 PM No.712369062
>>712368734
NTA but I graduated high school and never once did formulas or algebra at all
Replies: >>712369245
Anonymous
6/11/2025, 11:02:24 PM No.712369117
what if you are both max leveled
Anonymous
6/11/2025, 11:03:07 PM No.712369193
null
md5: null๐Ÿ”
>>712368364
raising the DEF value just increases the scale of the graph, its shape stays the same
thinking about it more, I think they just wanted the damage to follow ATK * 0.1 below an arbitrary range and ATK * 0.9 above that range, the piecewise gymnastics are just to make a curve that bridges those two lines
Replies: >>712369451
Anonymous
6/11/2025, 11:03:43 PM No.712369245
>>712369062
We take pre-algebra in middle school. I am really curious what country you live in because I don't understand how it can have a worse educational system than America. You cannot pass high-school in my state without at least taking 2 algebra classes.
Replies: >>712369401
Anonymous
6/11/2025, 11:03:45 PM No.712369249
>>712368717
For a moment I thought you were saying that they should be using the x multiplication symbol, unaware that it has a different meaning as an operator once you move past algebra.

Anyway, putting in a shit ton of dots is just making your writing into slop. There is one and only one issue where your complaint is relevant: variables that are words (instead of a letter with subscript) where the writing would cause them to run together and be indistinguishable.
Replies: >>712371003
Anonymous
6/11/2025, 11:05:14 PM No.712369401
>>712369245
I'm American. I don't know what the fuck you mean by taking classes, you get assigned them, you don't choose them.
Replies: >>712369456 >>712369997
Anonymous
6/11/2025, 11:05:23 PM No.712369417
>>712358748
>something everyone learns in highschool
No. I was one of the most gifted kids in my class and we didn't get to calculus.
Replies: >>712387701 >>712397538
Anonymous
6/11/2025, 11:05:53 PM No.712369451
>>712369193
>raising the DEF value just increases the scale of the graph, its shape stays the same
Because you are allowing ATK to scale with it. Fix the range of ATK for all values of DEF. You should see the parabolic region overtake the linear region.
Replies: >>712370456
Anonymous
6/11/2025, 11:05:56 PM No.712369456
null
md5: null๐Ÿ”
>>712369401
Anonymous
6/11/2025, 11:07:07 PM No.712369558
>>712358748
>something everyone learns in highschool
in what world? We never did functions, piecewise or whatever the fuck you just posted there
Replies: >>712369669 >>712370227
Anonymous
6/11/2025, 11:08:19 PM No.712369669
>>712369558
Are you sure you attended highschool and not some special school? You take Calculus II before the end of highschool.
Replies: >>712369924 >>712370348 >>712377778 >>712400358
Anonymous
6/11/2025, 11:08:35 PM No.712369692
>>712368493
They seldom use it because X can mean a cross product or ยท can mean a dot product.

>>712368824
You're not stupid, some schools don't have that material until university and that is a crime. We are privileged kids who took AP and Pre-AP courses from well funded schools.
Replies: >>712370091
Anonymous
6/11/2025, 11:08:54 PM No.712369721
>>712367604
Shit formula prone bugs. No wonder they filled it up with all kinds of if checks in the OP's pic.
>stack 100 atk
>debuff enemy to 1 def
>dmg = 100 * 100 * 100
>if you are off by 1 in step 2 you do four times less damage or the game crashes
Replies: >>712370087
Anonymous
6/11/2025, 11:10:30 PM No.712369857
>>712366519
Game? I'll buy it.
Anonymous
6/11/2025, 11:10:57 PM No.712369902
I am making a game and I am struggling to think of a defense system that isn't useless or boring.
I kind of like the idea of damage thresholds, as in, if you are not penetrating armor enough then your attacks are severely weakened.
damage = (penetration * targetDef) > damage ? damage * 0.5 : damage
penetration would be a special value only for magical weapons or something.
I would have a visual cue for if def > dam
is this retarded?
Replies: >>712372638 >>712372918 >>712383501
Anonymous
6/11/2025, 11:11:09 PM No.712369924
>>712369669
Not him, but mine had Calculus I and Linear Algebra at most. I grew up in a red state like Texas and they would rather fund bible schools and football.
Anonymous
6/11/2025, 11:12:06 PM No.712369997
>>712369401
You must live in a black people state or something
Anonymous
6/11/2025, 11:12:15 PM No.712370014
>>712358105 (OP)
Its just increasing damage when your attack is higher, I do not think having 5 different formulas is necessary having 3 can cover when your attack is higher, when your attack is equivalent and when your attack is lower
Anonymous
6/11/2025, 11:13:09 PM No.712370087
>>712369721
please dont comment on programming if you arent a programmer
thanks dumbass
Anonymous
6/11/2025, 11:13:10 PM No.712370091
>>712369692
>We are privileged kids who took AP and Pre-AP courses from well funded schools
That's pre-calculus at the lowest. Course naming schemes are fuckin retarded but it is absolutely normal high school curriculum to cover shit like solving logarithmic and exponential equations prior to pre-calc. It's conic sections and whatnot that are advanced.
Replies: >>712370437 >>712370937
Anonymous
6/11/2025, 11:14:56 PM No.712370227
>>712369558
>We never did functions

What the fuck were you a literal retard
Anonymous
6/11/2025, 11:16:13 PM No.712370348
>>712369669
I went to normal public highschool. I didn't take anything but math. There's no "II" classes in highschool you fucking retard, it's not a college.
Anonymous
6/11/2025, 11:17:13 PM No.712370437
>>712370091
>it is absolutely normal high school curriculum to cover shit like solving logarithmic and exponential equations
I graduated in 2010 and I have no idea what these words even mean.
Replies: >>712370798
Anonymous
6/11/2025, 11:17:36 PM No.712370456
>>712369451
I'm not sure what you mean
I'm not doing anything to ATK, I just changed DEF and zoomed out
play around with it yourself if you want: https://www.desmos.com/calculator/z9jjsazzpp
Replies: >>712370727
Anonymous
6/11/2025, 11:20:36 PM No.712370727
>>712370456
>and zoomed out
Don't do that. The piecewise functions are defined by the ratio of ATK and DEF, so fucking obviously increasing both of them is going to result in no change. The point of the functions is to have different behavior when one of the two outclasses the other.
Replies: >>712378139
Anonymous
6/11/2025, 11:21:13 PM No.712370775
>>712365469
sorry anon, you're just dumb.
Anonymous
6/11/2025, 11:21:29 PM No.712370798
>>712370437
Normal public highschool in Somalia?
Replies: >>712370850
Anonymous
6/11/2025, 11:22:02 PM No.712370850
>>712370798
America. The United States.
Anonymous
6/11/2025, 11:22:52 PM No.712370937
>>712370091
Not if you went to an underfunded school. Some don't have AP nor Pre-AP classes. The education system in the US isn't universal and needs reform.

It's going to be more fucked with school voucher programs.
Replies: >>712371073 >>712371095
Anonymous
6/11/2025, 11:23:39 PM No.712371003
>>712369249
AB = AB simple as, not A*B
Replies: >>712371387
Anonymous
6/11/2025, 11:24:32 PM No.712371071
People who think they're bad at math are in truth just bad at reading.
Math isn't about being good at it. It's about being literate. Math has no nuances. If you do bad math, you're being bad at it in the same way as English/writing. As in you're making spelling/grammar mistakes.
Also, even if you're good at math, you will still not know what to do if you see notation you do not know. Rather, being good at math in the first place may be considered just being familiar with most notation and being able to parse it. A series looks like gibberish to most people when they're all basically just addition. The concept isn't difficult, but writing it out specifically and too many different situations/formulas is which is where the literacy part comes in. It's like saying a sentence in different ways with different nuances. The series of all whole numbers vs the series of all natural numbers. It might mean the exact same thing, but there's a difference in writing it.

One of the reasons math rates are plummeting is people don't realize kids are faltering at being able to parse math in the first place. Nothing you teach about math makes sense if they can't even read/understand it in the first place. There has to be a literacy step to every new part of mathematics you teach somebody and if they've not been properly taught at any prior step, they're going to be shit at math going forward. This is also what makes it near impossible for most random people who were never taught math properly as kids to learn math in adulthood. It's like learning another language. It's extremely difficult to jump into advanced math topics without knowing the basics and the vast majority of people won't ever start at the bottom with the basics even if they need to like with learning a language.

However, then there's the problem people aren't even learning their first language well anymore either.
Replies: >>712371483 >>712385106 >>712385282 >>712385403
Anonymous
6/11/2025, 11:24:33 PM No.712371073
>>712370937
I don't even know what the fuck AP means in this context. What schools are you fags going to?
Replies: >>712372889
Anonymous
6/11/2025, 11:24:46 PM No.712371095
>>712370937
I explicitly said that the topic was NOT AP or Pre-AP, you illiterate fuck.
Replies: >>712371325
Anonymous
6/11/2025, 11:27:06 PM No.712371325
>>712371095
That's what I am telling you, they don't have those courses. Some teachers would skip over those subjects if they don't have time to cover it.
Replies: >>712371479
Anonymous
6/11/2025, 11:27:45 PM No.712371387
>>712371003
AB is only a singular entity if referring to a singular entity with notation that declares it as such. If it's a line segment, there is a bar over the letters. A vector has a vector bar. An angle between line segments has an angle symbol in front. With no additional notation, AB is A times B.
Replies: >>712373026
Anonymous
6/11/2025, 11:27:48 PM No.712371390
>>712358105 (OP)
These probably started simple and then had values tweaked again and again as playtesting was done with little care for how neat it looked.
And a lot of games reuse code from older ones, so the equations can become stranger over time as people modify them to fit new contexts.
It doesn't really make it any harder to maintain, in the end.
Anonymous
6/11/2025, 11:28:55 PM No.712371479
>>712371325
>That's what I am telling you
What I said is the opposite of what you said. Reread my posts, you illiterate fuck.
Anonymous
6/11/2025, 11:28:57 PM No.712371483
>>712371071
Math has jack fucking shit to do with language and reading. I can speedread and spell things perfectly in my head 10/10 times without any effort at all and I am completely retarded at math. Math is completely unintuitive random incomprehensible babble with no structure or reason to it whatsoever that requires you memorized a hundred trillion confusing bizarro rules, symbols and concepts.

I have complete faith in myself that, if I overcame the laziness part, I could easily learn Japanese within a reasonable amount of time. I have ZERO faith I could ever learn any substantial amount of math at all. It's a flat out mental block that cannot be surpassed.
Replies: >>712371590 >>712371673 >>712373121
Anonymous
6/11/2025, 11:30:15 PM No.712371590
>>712371483
>memorized a hundred trillion confusing bizarro rules, symbols and concepts
That's language, Anon.
Replies: >>712371794
Anonymous
6/11/2025, 11:31:10 PM No.712371673
>>712371483
theres a lot of getting used to it in math
Anonymous
6/11/2025, 11:31:12 PM No.712371678
The fuck is that maths bullshit
Anonymous
6/11/2025, 11:32:32 PM No.712371794
>>712371590
No it isn't, language is extremely intuitive and easy to understand.
>see this thing I am holding?
>make this noise for it
>you can write it that way
It's just that, not whatever the fuck this y+z(x)^รฃ=4/4[57]<96 insane shit is. Again, I can wipe my ass with language, math is beyond impossible for me.
Replies: >>712372379 >>712372452
Anonymous
6/11/2025, 11:33:49 PM No.712371915
>>712360692
Souls games are weird with how their multi-hit damage works.
Early on any type of spell that does multiple hits is probably useless, compared to just one stronger attack.
At higher levels of enemy defense and Intelligence/Arcane, multihit spells start doing more damage than they did early game.
Anonymous
6/11/2025, 11:36:06 PM No.712372128
>>712362089
This.
If you have loot that both goes "+1.0 ATT" and "+10% Attack Damage", I am going to lose all respect for your game because very clearly you think you're too fucking clever for your own good.
Anonymous
6/11/2025, 11:39:01 PM No.712372379
>>712371794
>you can write it that way
This part, Anon.

Why did I use a comma there? Why am I using punctuation? What is the question mark for? Why are the words in the order that they are in? Why are they spelled the way that they are? What are the letters what they are?

With the way you are limiting the definition of language, I could only ask:
noสŠ tษ”k รฐJs waJ (no talk this way)
Replies: >>712372948
Anonymous
6/11/2025, 11:39:50 PM No.712372452
>>712371794
For what you wrote to intend as nonsense.
y+z(x)^รฃ=4/4[57]<96

y+z(x)^รฃ
y, x, z, and รฃ are variables.
x is being taken to the power of รฃ
Afterwhich it is multiplied by z
Then you add Y

y+z(x)^รฃ=4/4[57]
This total is equal to 4/4[57] which is just 1 times 57 or just 57. Square brackets are usually used to encase formulas which are already specifying order with parenthesis. So here it can potentially be a matrix. But a matrix that contains a single value just equals that value.

57<96
57 is indeed less than 96.

Is this entire explanation magically impossible for you to understand?
Like I get you probably find variables hard to read, but the 57 is less than 96 should be pretty easy.
Replies: >>712372948
Anonymous
6/11/2025, 11:41:45 PM No.712372638
>>712369902
Not sure how it's supposed to work but the way you wrote it states that
>1. everyone always does half damage unless a magical weapon is equipped
>2. intentionally doing less damage may end up doing more damage in the end with a magical weapon equipped
Don't like it.
Replies: >>712373072
Anonymous
6/11/2025, 11:44:34 PM No.712372889
>>712371073
AP means you can do a slightly harder class that counts for a college credit.
Usually its just to let you skip a lot of Freshmen year filler classes most schools make you take.
Anonymous
6/11/2025, 11:45:02 PM No.712372918
>>712369902
When designing a combat system, before trying to do numbers, think about how many hits you expect enemies to be taking in the first place. Bosses, mooks, stronger mooks, etc. Then design your damage system and determine what scenarios you believe should make that amount of hits go up or down and by how much.

Then try to make as simple a formula as possible to fit your intent.
Replies: >>712383501
Anonymous
6/11/2025, 11:45:20 PM No.712372948
>>712372379
>limiting the definition
Shut the fuck up nigger. Not a single question you just posed is even to as difficult to learn as 5x5.

>>712372452
I'm hoping this is an AI generated response.
Replies: >>712373221
Anonymous
6/11/2025, 11:45:21 PM No.712372949
{
0.1 for R โ‰ค 1/8
( (19.2 / 49) โ‹… (R - 0.125)2 + 0.1 ) for R โ‰ค 1
( (-0.4 / 3) โ‹… (R - 2.5)2 + 0.7 ) for R โ‰ค 2.5
( (-0.8 / 121) โ‹… (R - 8)2 + 0.9 ) for R โ‰ค 8
0.9 for R โ‰ฅ 8
}
Anonymous
6/11/2025, 11:46:27 PM No.712373026
>>712371387
I have no idea what any of this means
Replies: >>712373613
Anonymous
6/11/2025, 11:47:03 PM No.712373072
>>712372638
sorry i worded it weird
penetration would be between 0 and 1 and default to 1. penetration of 0 would mean it ignores all armor, penetration of 0.5 would halve defenses.

in other words
if the damage is less than def times the penetration multiplier, damage is halved. the penetration multiplier is almost always one.
Anonymous
6/11/2025, 11:47:16 PM No.712373102
>>712358105 (OP)
Where are they deriving numbers like 19.2/49 from?
Anonymous
6/11/2025, 11:47:28 PM No.712373121
>>712371483
Same. I have given up. Doing rough math within the dollar at the store is the most advanced stuff i can do
Anonymous
6/11/2025, 11:48:25 PM No.712373208
null
md5: null๐Ÿ”
Why is this guy pretending to be retarded about five different things all at once? About anything that anyone says in this thread?

What in the utter fuck.
Anonymous
6/11/2025, 11:48:31 PM No.712373221
>>712372948
It is not, you do not even know how to make nonsense math to the point you made perfectly readable math. Nothing about
y+z(x)^รฃ=4/4[57]<96
is hard to read. You just typed up a bunch of things you think math looks like and came out with functioning math because you used plainly simple math. Math isn't that hard.
Replies: >>712374245
Anonymous
6/11/2025, 11:53:03 PM No.712373613
>>712373026
AB in math would usually mean the variable A multiplied by the variable B. The variable A could be any number like 1 or 5.2, same with variable B.

However there is potential confusion in this case as AB could possibly be a single variable with the name AB. However this would generally be specified before hand. In that case, then the variable AB would involve no multiplication and be a single number like 1 or -3.7 or something.

In geometry, there are additional types of notation regarding connections between 2 points like point A and point B. These have additional markings so they would not be confused with the prior 2 scenarios.
Replies: >>712373732
Anonymous
6/11/2025, 11:53:13 PM No.712373634
>>712358105 (OP)
They probably started with some numbers pulled off their ass and did some maths like "with X weapon you should be able to kill Y boss in Z seconds" and they calculated the magic numbers to that. Problem is, it's extremely hard to keep that kind of mathematical approach consistent when you start to add new weapons, new effects, new gimmicks, and so on, so the numbers just stay there and they instead change the ATK and DEF values, and never touch the damage formula, leaving behind an awful, unintuitive mess.
Anonymous
6/11/2025, 11:54:24 PM No.712373732
>>712373613
It should be way more intuitive
Replies: >>712373908
Anonymous
6/11/2025, 11:55:15 PM No.712373804
null
md5: null๐Ÿ”
>looking for new damage skill
>ask the skill tree if the damage skill is additive or multiplicative
>it doesn't understand
>pull out illustrated diagram of the damage calculation formula explaining what is additive and what is multiplicative
>skill tree laughs and says "it's a good damage skill, sir"
>take damage skill
>it's additive
Replies: >>712374210 >>712374670 >>712391365 >>712396326 >>712404627
Anonymous
6/11/2025, 11:56:33 PM No.712373908
>>712373732
If you had participated in the process of learning it, it is.

You might as well be obvious to the concept of a contraction and ask "What the FUCK is 'should've?'"
Replies: >>712374796 >>712374894
Anonymous
6/11/2025, 11:57:26 PM No.712373978
>>712358105 (OP)
gamedevs cant into math
Anonymous
6/11/2025, 11:58:35 PM No.712374076
>>712360587
the damage formula is equal to that line if the conditional is satisfied, for example:

dmg = ATK * 0.1 if ATK <= 1/8 DEF

for ATK = 1 and DEF = 8

ATK <= 1/8 * DEF ->
1 <= 1/8 * 8 ->
1 <= 1

which satisfies the conditional, then DMG = 1 * 0.1 = 0.1. It's pretty simple.
Replies: >>712374359
Anonymous
6/11/2025, 11:59:17 PM No.712374130
>>712358256
balancing is easy as fuck
give me an afternoon with the numbers of any game and I will make it perfect
Anonymous
6/11/2025, 11:59:55 PM No.712374187
>>712360692
This stopped being a problem once they added some armor penetration accessories. You can ignore almost all armor on a vast majority of enemies because most enemies have little to no armor.

Just because you remember cheesing through most of the game with the Minishark back in 2010 does not mean it's suddenly bad design that you're encouraged to use a different weapon to take down Expert Skeletron.
Anonymous
6/12/2025, 12:00:12 AM No.712374210
>>712373804
I think itโ€™s funny when you play a game where additive damage boosts are better but the community just will not accept it
Replies: >>712374416 >>712379823
Anonymous
6/12/2025, 12:00:35 AM No.712374245
>>712373221
There's no math there you fucking retard. I literally mashed random keys and symbols. y+z(x)^รฃ=4/4[57]<96 is not math. Not a single bit of that is math. Go ahead and tell me the a with a squiggly line above it is somehow mathematical.
Replies: >>712374427 >>712374874
Anonymous
6/12/2025, 12:01:28 AM No.712374312
>>712358105 (OP)
What happens if ATK = 8.DEF?
Anonymous
6/12/2025, 12:01:49 AM No.712374340
Okay boys, now explain how sub-cubic matrix multiplication works (and don't just hand-wave it away as divide-and-conquer).
Anonymous
6/12/2025, 12:02:02 AM No.712374359
>>712374076
what the fuck is a conditional
what the fuck is <=
how do you factor in an "if" in that
what the fuck is ->
Replies: >>712374427 >>712374692
Anonymous
6/12/2025, 12:02:12 AM No.712374371
>>712360692
weaker attacks are less good against armor
and the problem here is what exactly, other than armored enemies being too common I guess.
Anonymous
6/12/2025, 12:02:41 AM No.712374416
>>712374210
The best is generally using a good combination of additive and multiplicative skills/sources. But in games where damage scaling ramps up pretty quickly then additive usually drops off hard compared to multiplicative at the end.
Replies: >>712379823
Anonymous
6/12/2025, 12:02:49 AM No.712374427
>>712374245
>>712374359
PLEASE finish highschool
Replies: >>712374460
Anonymous
6/12/2025, 12:03:16 AM No.712374460
>>712374427
I finished it over a decade ago. There is no math here. Fuck off you disgusting freak of nature.
Anonymous
6/12/2025, 12:05:17 AM No.712374662
null
md5: null๐Ÿ”
>durr balancing hurr
Enemy has 100 health. Sword deals 10 damage per swing. That's all you need.
Anonymous
6/12/2025, 12:05:25 AM No.712374670
>>712373804
>various skills and equipment are randomly multiplicative or additive
>some bonuses stack, some have a stacking limit, and some don't stack at all
>None of this is documented or explained anywhere
T-thanks
Replies: >>712404627
Anonymous
6/12/2025, 12:05:36 AM No.712374692
>>712374359
conditional means "if something happens, this also happens".
<= means less than or equal to, to 1 <= 1 means that one is less than or equal to one.
in the case of the conditional statement there, it's evaluated from bottom up, so it first checks if ATK is less than or equal to 1/8 * DEF, if not, then it checks the other conditional and so forth.
-> is just an arrow to signify that the equation continues on the next line.
Replies: >>712374894
Anonymous
6/12/2025, 12:06:43 AM No.712374796
>>712373908
Math just doesn't make sense to me
Anonymous
6/12/2025, 12:06:44 AM No.712374798
null
md5: null๐Ÿ”
>>712358105 (OP)
what a retarded fucking formula......
is this actually real?? what the absolute fucking jeetcraft is this

all damage and attack formulas should be based on functions that peter out as you get high stats
most iconic example is of course the logarithm
Replies: >>712390748
Anonymous
6/12/2025, 12:07:29 AM No.712374874
>>712374245
>Go ahead and tell me the a with a squiggly line above it is somehow mathematical
That is a notation that has a meaning, yes.

Understand that "notation" is just shorthand for a mathematical object or operation that is arbitrarily assigned and explained by the person assigning it (the one who is developing the new mathematical approach), and agreed upon by everyone who sees their approach and uses it.

รœ is the second time derivative of the quantity U. This notation was invented by Isaac Newton.
Replies: >>712375215
Anonymous
6/12/2025, 12:07:46 AM No.712374894
>>712374692
>1 <= 1 means that one is less than or equal to one
math is incomprehensible

>>712373908
>be obvious to the concept of a contraction and ask "What the FUCK is 'should've?'"
this is a good simulation of what language would be like if it was like math, just poorly worded incomprehensible retardation
Replies: >>712376063 >>712376383
Anonymous
6/12/2025, 12:10:52 AM No.712375215
null
md5: null๐Ÿ”
>>712374874
>Understand that "notation" is just shorthand for a mathematical object or operation
>รœ is the second time derivative of the quantity U
You literally might as well be making farting noises with your mouth because everything you are saying is complete nonsense that means nothing at all. Vixfloobgarbnarben.
Anonymous
6/12/2025, 12:11:24 AM No.712375278
null
md5: null๐Ÿ”
This is what elegant solutions look like.
Replies: >>712375416 >>712375505 >>712375769 >>712376021 >>712377021 >>712377904
Anonymous
6/12/2025, 12:12:36 AM No.712375416
null
md5: null๐Ÿ”
>>712375278
>CSharp
>Unity
gud marning saar
Replies: >>712377021
Anonymous
6/12/2025, 12:13:21 AM No.712375505
>>712375278
>float
hp and damage should never be expressed in fractions, I've seen too many people survive 0% health in games due to rounding errors
Replies: >>712375614 >>712377021
Anonymous
6/12/2025, 12:14:32 AM No.712375614
>>712375505
If that's what jumps out to you in that pic I have bad news for you.
Replies: >>712376212
Anonymous
6/12/2025, 12:15:55 AM No.712375769
>>712375278
>thinking that ending up with situations where it is impossible for any damage to be done is an elegant solution
(I am no-selling the fact that the code in question would convert that situation into healing the attacked target)
Replies: >>712377021
Anonymous
6/12/2025, 12:16:03 AM No.712375783
>>712358105 (OP)
>...atk <= 8*def
>...atk >= 8*def
At exactly atk being equal to 8*def both of these statements are true. Shit code.
Replies: >>712376052
Anonymous
6/12/2025, 12:18:36 AM No.712376021
>>712375278
If this meme language works anything like c/c++ the code does nothing but waste electricity.
Replies: >>712377021
Anonymous
6/12/2025, 12:19:01 AM No.712376052
>>712375783
if checks conditionals one by one anon, the first one to be satisfied is used.
Anonymous
6/12/2025, 12:19:07 AM No.712376063
>>712374894
lets put this into a word problem
>elevator has a weight limit of 400 lbs
>if your weight is less than or equal to 400 lbs, you can ride the elevator
>if your weight is greater than 400 lbs you should lose weight you fat fuck

what exactly is confusing about that
Replies: >>712376214
Anonymous
6/12/2025, 12:20:29 AM No.712376212
>>712375614
yes he forgot the equals and the values don't come from anywhere, it's just pseudocode, deal with it
Anonymous
6/12/2025, 12:20:30 AM No.712376214
>>712376063
Nothing, because that's comprehensible. Whatever shit you wrote out before is basically hieroglyphs. This is what I said before, math formula are an atrocious way to convey information.
Replies: >>712376796
Anonymous
6/12/2025, 12:21:00 AM No.712376272
>>712363096
Use your brain.
If big sword does 80 damage in one hit, and small sword does 10 damage in 4, it means that big sword is 32x more powerful per swing or 8x more powerful per second. If it's the same tier of weapon then there is literally no reason to ever use the small weapon. So any build you make for it is useless and it may as well not be in the game
Anonymous
6/12/2025, 12:21:25 AM No.712376318
null
md5: null๐Ÿ”
>>712358105 (OP)
This is why Ragnarok Online is the superior MMORPG. It's extremely simple.

>put points into your damage stats(STR, DEX or INT depending on class)
>bonus for round numbers, like 10/20/30 etc
>the atk or matk number displayed on the status screen is the real deal
>every skill is described as doing damage equal to a % of your atk
>a skill with 400% ATK damage simply does damage equal to 4*ATK
>every 1 DEF of the enemy is -1% damage, so 20 DEF means subtracting 20% off the number
>then you subtract 1 flat damage for every point of VIT the enemy has
>that's it
You don't need shit like OP's table. If your game doesn't scale well, your system is shit and that's that.
Replies: >>712377174 >>712377471
Anonymous
6/12/2025, 12:22:00 AM No.712376383
>>712374894
it's not less than but it is equal to
instead of saying "if x is less than 1 or if x is equal to 1", you just take the less than symbol < and equals symbol = and put them together <=
Replies: >>712376595
Anonymous
6/12/2025, 12:22:49 AM No.712376462
>25% increase in critical chance
>have no idea if that means my 10% crit chance gets boosted to 35% or 12.5%
Replies: >>712376720 >>712377270
Anonymous
6/12/2025, 12:24:16 AM No.712376595
>>712376383
Dude, reread your fucking post right here and tell me that it's legible. What the fuck is with math and using arcane symbols for everything?
Replies: >>712376785 >>712377010
Anonymous
6/12/2025, 12:25:36 AM No.712376720
>>712376462
...why would it ever be 12.5%? 2.5% is not equivalent to 25% of 10%
Replies: >>712377125 >>712377270
Anonymous
6/12/2025, 12:26:01 AM No.712376785
>>712376595
the small end of the arrow points to the number that should be lower, and the large end points to the number that should be higher

if you put it next to the equals symbol then it means that it's also okay for the numbers to be equal

it's really not difficult to understand
Replies: >>712376978
Anonymous
6/12/2025, 12:26:06 AM No.712376796
>>712376214
im not the guy who was originally replying to you btw

but thats exactly what the math is saying

>dmg = ATK * 0.1 if ATK <= 1/8 DEF
your damage dealt is one tenth of your attack stat if your attack stat is less than or equal to one eighth of the enemy's defense stat

(for what its worth it would be easier to read if the if statement was first)
Replies: >>712376978
Anonymous
6/12/2025, 12:28:00 AM No.712376978
>>712376785
What the fuck is the small end of an arrow? The pointed end or what?

>>712376796
>your damage dealt is one tenth of your attack stat if your attack stat is less than or equal to one eighth of the enemy's defense stat
I cannot comprehend this, and expressed with the retarded mathspeak above makes it even more confusing.
Replies: >>712377761
Anonymous
6/12/2025, 12:28:20 AM No.712377010
>>712376595
i think youre just retarded bro. youre complaining 2+2=4 is incomprehensible because you dont know what "+" or "=" means
Replies: >>712377148
Anonymous
6/12/2025, 12:28:30 AM No.712377021
null
md5: null๐Ÿ”
>>712375278
>>712375416
>>712375505
>>712375769
>>712376021
The code has been refactored, it should work properly now.
Replies: >>712377342 >>712377413 >>712377904
Anonymous
6/12/2025, 12:29:29 AM No.712377125
>>712376720
Please show your work
Anonymous
6/12/2025, 12:29:41 AM No.712377146
>anon continues to pretend to be more and more retarded as other anons try to explain increasingly more basic math
While it's effective, I don't understand the motive.
Replies: >>712377373
Anonymous
6/12/2025, 12:29:42 AM No.712377148
>>712377010
This is infinitely more complex and difficult to parse than 2+2=4, don't be condescending.
Replies: >>712377283 >>712391149
Anonymous
6/12/2025, 12:29:57 AM No.712377174
>>712376318
Hmmm interesting interesting
Now letโ€™s talk about how retarded attack speed is
Replies: >>712378093
Anonymous
6/12/2025, 12:31:05 AM No.712377270
null
md5: null๐Ÿ”
>>712376720
what is 0.1*0.25?

>>712376462
xcom logic has been a disaster for gaming
Anonymous
6/12/2025, 12:31:20 AM No.712377283
>>712377148
Significantly you mean
Anonymous
6/12/2025, 12:32:06 AM No.712377342
>>712377021
>calculating damage every frame
Replies: >>712377442
Anonymous
6/12/2025, 12:32:23 AM No.712377373
>>712377146
There's no motive, I can't do math the same way I can't do those IQ test thingies where they want you to rotate an object in your head or figure out what a cube would look like folded up with numbers on the sides or something. It's a flat mental block. 1 => 5.6 or whatever is not something my brain can parse, it's like asking me to imagine a new color.
Anonymous
6/12/2025, 12:32:47 AM No.712377413
>>712377021
did an AI write this? why the fuck would damage be clamped by delta time?
Replies: >>712377478
Anonymous
6/12/2025, 12:33:09 AM No.712377442
>>712377342
I made sure it works at 60fps though :)
Anonymous
6/12/2025, 12:33:29 AM No.712377471
>>712376318
what is def derived from if its a percentage
Replies: >>712378093
Anonymous
6/12/2025, 12:33:32 AM No.712377478
>>712377413
Calculated and discarded.
Anonymous
6/12/2025, 12:33:50 AM No.712377505
>>712358602
thats obviously not what hes complaining about
the issue is that the formula itself is a little crazy for everything in between 0.1 and 0.9
Replies: >>712393746
Anonymous
6/12/2025, 12:34:18 AM No.712377536
null
md5: null๐Ÿ”
>Immediately realize this is a very cheap 25% DPS gain
>Still don't use it because it feels terrible to have what should be a massive damage skill completely whiff
Replies: >>712377767 >>712377831 >>712378203 >>712378448 >>712379235 >>712379459
Anonymous
6/12/2025, 12:36:53 AM No.712377761
>>712376978
what can you not comprehend? lets go back to the elevator example because you understood that

if yourWeight <= elevatorLimit, you are too fat to go on the elevator

if yourAttack <= enemyDefense/8, you do yourAttack*0.1 damage
Replies: >>712377908
Anonymous
6/12/2025, 12:36:56 AM No.712377767
>>712377536
ok so
>either hits for half damage or double
>meaning you either hit for -50% or +100%
am I retarded or would you, on average, be dealing 50% more, since the potential gain is double the loss?

where are you getting 25% dps increase from?
Replies: >>712377894 >>712381260
Anonymous
6/12/2025, 12:37:04 AM No.712377778
>>712369669
I went to an American public school. In the 8th grade, the smartest half of the class took Algebra while the dumbest half took another year of normal math (arithmetic or whatever). So in freshman year of high school, we then took Geometry while the dumber kids took Algebra, and then sophomore year we took Algebra II, and then junior year we took Pre-Calculus. I asked my teacher what "Pre-Calculus" was and he said it was mostly Trigonometry, which wasn't its own class anymore, and brushing up on Geometry to prepare you for Calculus. I told him I was excited to take Calculus senior year and he told me I couldn't because they were mandating an Algebra III before Calculus because they found two years of algebra wasn't enough. I dropped out, but I talked to people younger than me years later and they told me that's exactly what happened: they took Algebra III senior year.

If you took Calculus at all in high school you're either in your 40s or you skipped classes because you're a bigger nerd than me (and that's impressive).

And before you ask, this is Massachusetts, the smartest state in the country (and the worst drivers).
Replies: >>712378003
Anonymous
6/12/2025, 12:37:41 AM No.712377821
>>712360692
thats really not true for terrarias' case, fast firing weapons are often extremely great and theres several sources for reducing enemy defense
If you want an actual example of flat defense being absolute dogshit, look no further than dragons dogma. god that game is so bogged down by it
Anonymous
6/12/2025, 12:37:46 AM No.712377831
>>712377536
>big DPS boost
>but it feels like you're playing morrowind
Actual trolling.
Anonymous
6/12/2025, 12:38:22 AM No.712377894
>>712377767
The average of 200 and 50 is 125
200+50 = 250
250/2 = 125
Replies: >>712378345
Anonymous
6/12/2025, 12:38:28 AM No.712377904
>>712377021
>>712375278
the correct way to write this btw is
int damage(int attack, int defense) {return attack - defense;}
Anonymous
6/12/2025, 12:38:30 AM No.712377908
>>712377761
>yourAttack <= enemyDefense/8
this part, the horrible, atrocious way math conveys things

"If you weight more than the elevator limit" is completely comprehensible, using bizarre symbols and weird ways of writing shit is not.
Replies: >>712389575
Anonymous
6/12/2025, 12:39:04 AM No.712377959
>>712367279
>what game?
Its dark souls 1
Anonymous
6/12/2025, 12:39:15 AM No.712377978
Making your systemic modifier methods moduli instead of differential functions is peak pajeet coder brain
Anonymous
6/12/2025, 12:39:31 AM No.712378003
>>712377778
>I was excited to take Calculus
sociopath
Anonymous
6/12/2025, 12:40:35 AM No.712378093
null
md5: null๐Ÿ”
>>712377174
Okay you got me there, but from a gameplay perspective it's not so bad. You just need to know that AGI and DEX make it go higher, with AGI being 4x as influent.

>>712377471
For monsters, it's simply a number on their stat sheet, not derived from anything.
For players, it's granted by equipment. For example, the simple Helm you buy from the NPC store has 6 DEF, so it reduces all incoming physical damage by 6%. You add up the DEF of every gear slot you have linearly.
For every refine(+ sign on gear) you add another 0.66 DEF, rounded down.
And that's your DEF. Even simpler than ATK. The more you have, the more significant the next point becomes. And it caps at 99.
Replies: >>712379831
Anonymous
6/12/2025, 12:41:09 AM No.712378139
>>712370727
attack is fixed to the x axis, nothing is being scaled
Replies: >>712378456
Anonymous
6/12/2025, 12:41:57 AM No.712378203
>>712377536
For peak trolling it should have been 50% chance to do no damage or double damage.
Anonymous
6/12/2025, 12:43:35 AM No.712378345
>>712377894
Don't know what average means in that context, don't know why you added 200 and 50 and then divided it in half.

Say you hit for 10. With that equipped, you are hitting for either 5 or 20, with the exact same chance for either. Your average damage would be 15, a 50% increase, because for every hit you do half damage, you'd be doing 3 times as much = effectively +150%

...and I just wrote it out, doing 10 swings, assuming 50/50 5 and 20 and got 125, so I'm not sure where the fuck that 25% missing is going
Replies: >>712378512 >>712378620 >>712379036 >>712381641
Anonymous
6/12/2025, 12:44:35 AM No.712378448
>>712377536
why do devs do this shit? Just write out the final damage numbers themselves, why the fuck are you leaving the math for me to do?
Anonymous
6/12/2025, 12:44:39 AM No.712378456
>>712378139
retard
Replies: >>712378717
Anonymous
6/12/2025, 12:45:19 AM No.712378512
>>712378345
>Don't know what average means in that context, don't know why you added 200 and 50 and then divided it in half.
Go back to school and don't fail 5th grade this time.
Replies: >>712378831
Anonymous
6/12/2025, 12:46:26 AM No.712378620
>>712378345
You actually don't do any more damage on average. Half the time, you do half the damage, and the other half of the time, you do two times the damage, and 2 * 0.5 is 1.
Replies: >>712378831
Anonymous
6/12/2025, 12:47:19 AM No.712378717
>>712378456
no u
= x or = y in desmos means it is equal to the axis value
Replies: >>712378921
Anonymous
6/12/2025, 12:47:27 AM No.712378728
>>712368364
Been a good while since I've seen this chart damn
Anonymous
6/12/2025, 12:47:56 AM No.712378765
wtf why are all the retards collecting here at once
Anonymous
6/12/2025, 12:48:48 AM No.712378831
>>712378512
But I didn't fail it
>>712378620
How do you figure? The gain from a good roll is double the loss from a bad roll. A single good roll makes up for two bad rolls, and since you are just as likely to get either, you are getting +50% more damage.
Replies: >>712379187
Anonymous
6/12/2025, 12:49:49 AM No.712378921
>>712378717
you are talking about a different thing than was posted

retard
Replies: >>712379048
Anonymous
6/12/2025, 12:51:05 AM No.712379019
>1+3=X+2
THIS IS TOO FUCKING HARDDDD
Anonymous
6/12/2025, 12:51:18 AM No.712379036
>>712378345
a lot of people make that mistake sometimes
>hm, it deals anywhere between 80-140% damage, that means the average is 120%!

no you silly, the numbers do not magically revolve around 100%. Theres 20 numbers below 100 and 40 numbers above it, the average is at the 30 which is 110%
in the case previously brought up itt :
>50 the possible numbers are below 100
>100 the possible numbers are below 100
>the average is the 75th number, which is 125

your line of thinking would be correct if it said "theres a 50% chance to deal 50% damage and a 50% chance to deal 200% damage"
Replies: >>712379173 >>712379205
Anonymous
6/12/2025, 12:51:27 AM No.712379048
>>712378921
no, the tool is desmos, A is assigned to x, which is the axis value
nothing is being scaled
Replies: >>712379409
Anonymous
6/12/2025, 12:52:53 AM No.712379173
>>712379036
>theres a 50% chance to deal 50% damage and a 50% chance to deal 200% damage
but that's what it says
Anonymous
6/12/2025, 12:53:05 AM No.712379187
>>712378831
Nah, more seriously, it's:
>0.5 + 2 = 2.5
instead of:
>1 + 1 = 2
You're dealing 20% more damage than if you had all 100% hits.
Replies: >>712379284
Anonymous
6/12/2025, 12:53:19 AM No.712379205
>>712379036
I can't read any of that shit in the middle, but what does it revolve around if not 100%?

>"theres a 50% chance to deal 50% damage and a 50% chance to deal 200% damage"

are you saying that is different from

>every hit has a 50% chance to deal either 50% or 200% of its damage

because those look completely fucking identical to me
Replies: >>712380221
Anonymous
6/12/2025, 12:53:37 AM No.712379235
>>712377536
Every time I see stuff like this the extra damage would only be helpful in a handful of situations while the penalty fucks you over every single time.
Replies: >>712379459
Anonymous
6/12/2025, 12:54:21 AM No.712379284
>>712379187
Where the fuck are you getting 2.5 from? Why are you adding the low roll and the high roll together at all?

>You're dealing 20% more damage than if you had all 100% hits.
Fuck what? 100% hits? What does that mean? How is it 20%?
Replies: >>712379616
Anonymous
6/12/2025, 12:54:49 AM No.712379332
Looking at this >>712367279 are you sure the formulas are the real ones used by the game and they weren't inferred from fitting curves to manually collected data?
Anonymous
6/12/2025, 12:55:51 AM No.712379409
>>712379048
learn to read

retard
Anonymous
6/12/2025, 12:56:27 AM No.712379459
>>712377536
>>712379235
It's actually bad for Act 2 as attacks start to approach the damage cap because attacks that would have gone over the damage cap and done 9999 anyway end up doing significantly less
A four-hit attack that does 8k for each attack will deal 32k without roulette (8k+8k+8k+8k)
With roulette, it will deal 4k+4k+10k+10k for only 28k damage
Anonymous
6/12/2025, 12:58:29 AM No.712379616
>>712379284
Because half of your rolls will be 0.5x damage and the other half of your rolls will be 2x damage. You can keep going for however many numbers of hits it is. You compare this to what you would be doing if they were all 1x hits instead, since that's what they would normally be. Then you divide 2 by 2.5 to determine the % difference in your damage between the two results.
Replies: >>712379706
Anonymous
6/12/2025, 12:59:31 AM No.712379704
>>712358604
>has only ever been useless at all levels, or only useful when stacked as high as possible and then overpowered
realistically this is all games.
Anonymous
6/12/2025, 12:59:32 AM No.712379706
>>712379616
>Then you divide 2 by 2.5 to determine the % difference in your damage between the two results
Why would you do that at all?
Replies: >>712380345
Anonymous
6/12/2025, 1:00:49 AM No.712379823
>>712374210
>>712374416
Generally you should have separate multiplier tiers (same time of modifiers would have additive stacking) be invested in equally for the optimal damage
Basically the Maximum Volume problem.

Of course, this can also change a lot if you can't quantify factors like rotation and cooldown.
Anonymous
6/12/2025, 1:00:57 AM No.712379831
>>712378093
i want to play RO again fuck you
Replies: >>712379931
Anonymous
6/12/2025, 1:02:18 AM No.712379931
null
md5: null๐Ÿ”
>>712379831
rentry.org/ragnav
Replies: >>712380436
Anonymous
6/12/2025, 1:02:33 AM No.712379953
null
md5: null๐Ÿ”
>hmm I just can't figure out why rpgs are so unpopular, maybe if we added more calculus it would help
Replies: >>712380897
Anonymous
6/12/2025, 1:03:58 AM No.712380070
null
md5: null๐Ÿ”
>God's damage formula
Replies: >>712380373
Anonymous
6/12/2025, 1:05:55 AM No.712380221
>>712379205
no anon youre getting it wrong
>it picks a random number between 50 and 200
this is one thing
there are 50 numbers to pick from that are below 100
there are 100 numbers to pick from that are above 100
Just like if you were picking from 0 to 150, the average will be the 75th number. the 75th number from 50 to 200 is 125, so you get 125% damage on average
Replies: >>712380491
Anonymous
6/12/2025, 1:07:21 AM No.712380345
>>712379706
I just proved that this 0.5x/2x shit is a 20% DPS increase over having 1x hits instead.
Replies: >>712380491
Anonymous
6/12/2025, 1:07:40 AM No.712380373
null
md5: null๐Ÿ”
>>712380070
Anonymous
6/12/2025, 1:08:23 AM No.712380436
>>712379931
i prefer low rate servers.
though it would be nice to see what all the newer content was like
Replies: >>712380849
Anonymous
6/12/2025, 1:09:07 AM No.712380491
>>712380221
It's not picking a random number, it's either cutting damage in half or doubling it.

>>712380345
You didn't prove anything, you wrote out some random shit that had nothing to do with anything at all, then did not explain why you wrote it out when asked.
Replies: >>712380646
Anonymous
6/12/2025, 1:10:56 AM No.712380646
>>712380491
Good lord. Normally, you would be dealing 2x damage over 2 hits. Instead, you dealt 0.5x on one and 2x on another. Add these together, and what do you get? 2 against 2.5. That's the difference in your damage, then you divide it to figure out the exact % difference.
Replies: >>712380928
Anonymous
6/12/2025, 1:13:22 AM No.712380849
null
md5: null๐Ÿ”
>>712380436
7x is not low rate enough for you?
Every server I've seen that's lower than that is artificially much higher, either by giving massive party bonuses, boosted tap bonus, exp manuals, floating rates, Monster-of-the-Day, etc. The 7x on Ragna/v/ is a legit 7x.
>though it would be nice to see what all the newer content was like
Yeah there's a lot of new content to check out, it's gone quite a bit beyond the usual pre-re content.
Replies: >>712381403
Anonymous
6/12/2025, 1:14:03 AM No.712380897
>>712379953
Who are you quoting?
Anonymous
6/12/2025, 1:14:25 AM No.712380928
>>712380646
WHERE IS THE 2 COMING FROM

WHERE IS THE 2.5 COMING FROM

YOU STUPID DENSE FUCK, EXPLAIN. >>ELABORATE<<<, DONT JUST CLAIM SHIT, EXPLAIN, WHAT THE FUCK IS IT WITH MATHFAGS AND A TOTAL INABILITY TO SPECIFY OR EXPLAIN ANYTHING AT ALL

>Instead, you dealt 0.5x on one and 2x on another.
What is 2x - 0.5x? 1.5x, if the gain over regular damage was equivalent to the loss (deal 50% or 150% damage) it would cancel itself out and be pointless, assuming rng doesn't fuck you over you should be getting a 50% increase to damage across many hits
Replies: >>712381249
Anonymous
6/12/2025, 1:18:04 AM No.712381249
>>712380928
Alright, let's simplify things a bit. You need to think of your damage as x. The 2 and 2.5x are the multipliers to x from using your skill, they could be y. x * y would be your damage.
Replies: >>712381684
Anonymous
6/12/2025, 1:18:10 AM No.712381260
>>712377767
100 * 2 = 200
100 / 2 = 50

Lets say you do 4 hits, that would equal 200*2 + 50*2.
You would be doing 500 damage when you would otherwise be doing 400 damage that is a 25% increase. Its still going to feel bad when you roll low, I would take a consistent damage upgrade instead.
Replies: >>712381684
Anonymous
6/12/2025, 1:19:38 AM No.712381403
>>712380849
I haven't played in years so I don't know how servers do things now.
I just like getting it as close to the original experience where I end up getting bored once I hit lvl 70-80.
Replies: >>712381648
Anonymous
6/12/2025, 1:21:24 AM No.712381550
Watching two people who can't do middle school math argue with each other is honestly pretty captivating.
Anonymous
6/12/2025, 1:22:30 AM No.712381641
>>712378345
If you are hitting for either 5 or 20 the average damage would be 12.5 not 15 I don't know where you got that from
Anonymous
6/12/2025, 1:22:37 AM No.712381648
null
md5: null๐Ÿ”
>>712381403
Worst that can happen is that you hate it and go play your comfort game instead. Could try asking the dev if he can make it more miserable for you, I'm sure he'd be okay with that.
Anonymous
6/12/2025, 1:23:03 AM No.712381684
>>712381249
Notation doesn't simply things. I never understood this, why the fuck does math use symbols for values instead of just using the values themselves? Why this x+y shit? It's adding a massive layer of complexity to it for no reason. Imagine you want to bake a cake but the fucking cookbook keeps calling teaspoons K and eggs P, it's retarded.

>>712381260
I don't get how it's 25% when the difference between a low roll and a high roll is 50% over 100%. You low roll, you are 50% in debt, you roll high, you are +150%.
Replies: >>712381962 >>712381969 >>712382179 >>712382432 >>712382575 >>712383032
Anonymous
6/12/2025, 1:26:00 AM No.712381962
null
md5: null๐Ÿ”
>>712381684
Legit smooth brained take.
I'm curious, Anon. What do you do for a living?
Anonymous
6/12/2025, 1:26:04 AM No.712381969
>>712381684
Notation is a physical representation of the steps you need to take to do the math. You're doing algebra when you're adding the cost together of several items at the grocery store. You can apply a notation to the price of every item that would determine the quantity of each item. The notation is just you showing that long-form rather than skipping around mentally.
Replies: >>712382193
Anonymous
6/12/2025, 1:28:35 AM No.712382179
>>712381684
If you roll low, you lose half of your attack power (-50%)
If you roll high, you gain +100% of attack power
100 > 50, you win bigger than you lose
attack 100 low roll => 50
attack 100 high roll => 200
2 normal attack should be 200, here it's 250, so 25% increase
Replies: >>712382284
Anonymous
6/12/2025, 1:28:41 AM No.712382193
>>712381969
>You can apply a notation to the price of every item that would determine the quantity of each item
Or I could just use the names of the items themselves like a sane person.
Replies: >>712382663
Anonymous
6/12/2025, 1:29:46 AM No.712382282
>>712367279
>when mathlets think posting a graph will save them
why did you post a 2D graph for a 3 variable problem? you turned one variable into a constant and then wonder why the flattened output is basically a line. you're missing the 3rd dimension.

but you don't need a graph to understand what the purpose of the formulas are. the conditionals give away the intent and knowing that these are game formulas you can guess at how they modify the output.
Anonymous
6/12/2025, 1:29:49 AM No.712382284
>>712382179
>100 > 50, you win bigger than you lose
It's 150
Replies: >>712382565
Anonymous
6/12/2025, 1:31:33 AM No.712382432
>>712381684
it's so that it can represent any number you put in there, for example any amount of health and any amount of damage, rather than a specific amount
Anonymous
6/12/2025, 1:32:52 AM No.712382565
>>712382284
The 25% increase is compared to the attack if it was normal without the gimmik, not difference between low and high roll
Replies: >>712382892
Anonymous
6/12/2025, 1:32:59 AM No.712382575
>>712381684
20 / 5 = 4
This means its 400% more damage overall not 150%
Anonymous
6/12/2025, 1:33:59 AM No.712382661
>>712367089
I donโ€™t really understand whats wrong with this. Is the midwit flex here that you can just use a case or a switch? Cause it really doesnโ€™t matter
Replies: >>712383190 >>712383995 >>712393519
Anonymous
6/12/2025, 1:34:01 AM No.712382663
>>712382193
I don't mean for each item, but it'd be like HamA and CheeseB with A being 2 and B being 3 for the amount of each you bought, with their prices being replacements for their names. The point is that's the math you do in your head and it's algebra, and that's all notation expresses.
Anonymous
6/12/2025, 1:35:14 AM No.712382765
Good rpgโ€™s have stats affect things they need to in variation, like speed minimally increasing strength and strength barely increasing def.
Replies: >>712382973
Anonymous
6/12/2025, 1:36:40 AM No.712382892
>>712382565
I know, that's what I mean.

100 x 4 = 400

50 x 2 + 200 x 2 = 500

I don't get it, where the fuck is the phantom 25% difference going? The loss on a bad roll is 50%, the gain on a good roll is 100%, there's a 50% difference between them so logically your overall net gain should be 50%.
Replies: >>712383563 >>712384146
Anonymous
6/12/2025, 1:37:36 AM No.712382973
>>712382765
How about inertia?
Anonymous
6/12/2025, 1:37:58 AM No.712383003
100 integers from random.org
47 * 50 = 2350
53 * 200 = 10600
2350 + 10600 = 12950
12950 / 100 = 129,5

it trends towards 125
Anonymous
6/12/2025, 1:38:16 AM No.712383032
>>712381684
>Why this x+y shit?
Because it's universal. If Gaben told you he'd give you a AAA game 20% off if you buy an indie game first, then how much you have to spend to get these two games is the price of the indie game plus 0.8 times the price of the AAA game. We can represent this with something like (indie) + 0.8(AAA), or we can shorten it so it doesn't look so weird to just something like n+0.8(a), or x+0.8y, it doesn't matter what representatives we use so long as we know what the representatives stand for. This is superior to just saying what the prices for the games are because not every game has the same price, right? Indie games can vary from $10 to $40. AAA games can vary from $50 to $80. But that's fine because our formula doesn't change since it's agnostic to whichever values you plug into it. So x+0.8(y) could be $10+0.8($50) = $50 or it could be $40+0.8($80) = $104. Do you understand?
>I don't get how it's 25%
Let's say Normal Dude swings twice, each for 100% damage. Then Wild Dude swings twice, once for 50% damage and once for 100% damage. That's
Normal: 100 + 100 = 200
Wild: 50 + 200 = 250

What is that increase? A 50 increase to 200 is what? Well, 50 is 25% of 200, right? That means he's doing a +25% increase to damage on average (or over time).
Replies: >>712383167
Anonymous
6/12/2025, 1:39:34 AM No.712383167
>>712383032
But overall you're only doing 20% more damage. 25% more from the starting point, sure, but the number's only 20% higher.
Replies: >>712383658
Anonymous
6/12/2025, 1:39:48 AM No.712383190
>>712382661
switch isn't just a shorthand for the same thing, it's a special instruction in the CPU which is orders of magnitudes faster
Replies: >>712383410
Anonymous
6/12/2025, 1:42:06 AM No.712383410
>>712383190
and also string comparisons are slow as fuck, you should make it an enum so you're just doing a single integer compare, it's lightspeed compared to an endless if/else tree of strings

even then if you have too many cases, you should split everything out into a state machine or proper tree structure which is even faster since it doesn't evaluate everything at once
Anonymous
6/12/2025, 1:43:05 AM No.712383501
>>712369902
So am I, and this >>712372918 is the right direction. Consider how you want it to play, then build around that. How long will the fights take? How many enemies will be in a fight?

Additionally, avoid using small numbers, and you can implement both percentage resistance and flat damage resistance. I try to code my stats so they're easy for the player to decipher, such as 10 vitality = 10 health or something similar.
Anonymous
6/12/2025, 1:43:48 AM No.712383563
>>712382892
>100 x 4 = 400
>50 x 2 + 200 x 2 = 500
>I don't get it, where the fuck is the phantom 25% difference going?
>400
>500
>where the fuck is the phantom 25% difference
Anon...500 is how much larger than 400?
>The loss on a bad roll is 50%, the gain on a good roll is 100%, there's a 50% difference between them
No there isn't. That's -50 and +100. The difference clearly isn't 50, it's 150. Add -50 to 100, or in other words, subtract 50 from 100. You get 50. And since it was two swings to get these results, divide them in half. What is half of 50?
Replies: >>712383894
Anonymous
6/12/2025, 1:44:54 AM No.712383658
>>712383167
Why is that, anon?
Replies: >>712384374
Anonymous
6/12/2025, 1:46:26 AM No.712383798
>>712358256
if your balance is so off you're integrating discontinuous functions to try to make it work, just scrap the whole system
Replies: >>712391681
Anonymous
6/12/2025, 1:47:35 AM No.712383894
>>712383563
The difference between -50 and +100 is 50%. Good roll, +100%, bad roll, -50%, you are at +50%
>And since it was two swings to get these results, divide them in half.
Why the fuck would you divide it in half every two swings?
Replies: >>712385140
Anonymous
6/12/2025, 1:48:36 AM No.712383976
>>712358105 (OP)
Cause they don't know maths
Anonymous
6/12/2025, 1:48:48 AM No.712383995
>>712382661
You don't need that many if statements its inefficient, also with string comparison you need to check every single symbol
Anonymous
6/12/2025, 1:50:45 AM No.712384146
>>712382892
>Does the math
>Still confused
I am really sorry to tell you this anon but you are terminally retarded
Anonymous
6/12/2025, 1:51:29 AM No.712384213
>>712367089
I don't really understand coding, but this seems like something a 17yo would do for a highschool project
Anonymous
6/12/2025, 1:53:35 AM No.712384374
>>712383658
Because, using your example, 200 is 80% of 250. Enemies have static HP values. They only care about what % of damage you're doing to their HP bar, not how much more damage you're doing relatively. If you really want to factor in everything, then if the enemy has 300 HP, you deal 66% of their HP with 200, and 83% of their HP with 250, so the difference in damage is about 17%.
Replies: >>712385140
Anonymous
6/12/2025, 1:53:36 AM No.712384376
null
md5: null๐Ÿ”
>/v/ learning about game theory
You guys have no idea how deep the rabbit hole goes.
Replies: >>712384457 >>712390259 >>712390451
Anonymous
6/12/2025, 1:54:35 AM No.712384457
>>712384376
game theory and game balance have quite literally nothing to do with each other at all
Anonymous
6/12/2025, 2:02:32 AM No.712385106
>>712371071
The main problem is math never got updated
Every language evolved over the centuries. Math is still thousands of years old
Anonymous
6/12/2025, 2:02:55 AM No.712385140
>>712383894
>Why the fuck would you divide it in half every two swings?
To get the average for a single swing? If you're going to compare it to normal damage, then you also need to include what normal damage does in two swings.
100% + 100% = 200%
50% + 200% = 250%
That's a "50%" increase but that's because it's tacked onto 200%, anon. It's not actually a 50% increase, it's half that, because it's spread across two swings (that's why it's 200%, remember? 100+100?)

>>712384374
Sure, that's true, but that's relative. Like if you gave your queen in chess double damage, obviously it does nothing because everyone dies in one hit, but it's still true that as a matter of fact your queen does double damage...it just doesn't matter. Obviously, in most games, every damage increase matters 99% of the time. In most video games, you don't kill enemies in a couple hits.
Replies: >>712385450
Anonymous
6/12/2025, 2:04:44 AM No.712385282
>>712371071
I hate to break it to you anon, but it's mostly a matter of intelligence and intelligence has been declining for over a century.
Anonymous
6/12/2025, 2:06:13 AM No.712385403
>>712371071
/lit/ is all you need.
Anonymous
6/12/2025, 2:06:43 AM No.712385450
>>712385140
You do kill most random encounters in a couple of hits, even in harder games, since they tend to be more about killing the enemy before they can kill you. It's true that in bosses it hardly matters; if your character is dealing 25% more damage you're still killing the boss 25% faster with their actions. Nonetheless in games with heavy resource management, you are generally thinking about your character's attacks in proportion to how much of the enemy's HP bar they can deal; you won't use the expensive nuke that does 5x the enemies HP in damage for 100 MP when something 1/5th the price will do the job.
Replies: >>712388224
Anonymous
6/12/2025, 2:14:27 AM No.712386056
null
md5: null๐Ÿ”
>>712358105 (OP)
Replies: >>712386348
Anonymous
6/12/2025, 2:17:06 AM No.712386256
Reading this thread with the anon struggling with the math made me realise how fucked my schooling was too.
And how much I have forgotten since graduating.

Feels pretty shitty the difference in quality between rural and city schools. Never had a chance basically
Anonymous
6/12/2025, 2:18:09 AM No.712386348
>>712386056
Yeah when I saw that formula I didn't even bother trying to understand that fucking nonsense. Went straight for the conversion chart.
Replies: >>712386590
Anonymous
6/12/2025, 2:19:12 AM No.712386428
null
md5: null๐Ÿ”
>>712358105 (OP)
i don't know what any of this means
Anonymous
6/12/2025, 2:21:19 AM No.712386590
>>712386348
All you need to know is that more armour means less damage taken. The math does not really matter.
Anonymous
6/12/2025, 2:21:33 AM No.712386614
>>712365469
its never to late to learn something,just download some middle schol math books and start there or remain ignorant and happy
Replies: >>712386835
Anonymous
6/12/2025, 2:21:47 AM No.712386639
I think we are cooked as a species
Younger gen is struggling with basic math and reading skills. How the fuck We are We meant to keep society going with everyone being retarded
Anonymous
6/12/2025, 2:24:07 AM No.712386835
>>712386614
>its never to late to learn something
Factually wrong
Anonymous
6/12/2025, 2:24:53 AM No.712386885
null
md5: null๐Ÿ”
Imagine you have a currency, lets call it "Divine". and another currency, called "Chaos". 1 divine is equal to 100 chaos. If someone is trying to sell an item for 1.8 divines, can you calculate how much you will pay in divines and Chaos?
A lot of people in Path of Exile cant, and ask every single day in chat how to do so.
Replies: >>712387006 >>712389284 >>712389381 >>712389839
Anonymous
6/12/2025, 2:26:14 AM No.712387006
>>712386885
1 divine 180 chaos
Anonymous
6/12/2025, 2:29:59 AM No.712387314
I took calculus in high school and it was honestly pretty easy. Genetics was the hardest course I ever took.
Replies: >>712387372
Anonymous
6/12/2025, 2:30:37 AM No.712387372
>>712387314
>he had genetics in high school
Wtf
Replies: >>712387785
Anonymous
6/12/2025, 2:32:00 AM No.712387497
null
md5: null๐Ÿ”
rate my damage mitigation curve
Anonymous
6/12/2025, 2:32:46 AM No.712387562
In the us, you guys dont take calculus? reading this thread is kind of crazy because like the math discussed here is quite simple
Replies: >>712387703 >>712388009 >>712388046 >>712388170 >>712388262 >>712388289 >>712389413 >>712398736
Anonymous
6/12/2025, 2:32:46 AM No.712387563
>>712363273
>Japanese games have much better game design than Western ones.
There's no reason to think this
JRPGs are full of archaic and vestigal game mechanics that serve no purpose to the game itself but are only there because they've been in JRPGs since the 80s
Replies: >>712389784
Anonymous
6/12/2025, 2:34:30 AM No.712387701
>>712369417
Your individual abilities do no affect the curriculum
Replies: >>712388224
Anonymous
6/12/2025, 2:34:31 AM No.712387703
>>712387562
Nope, that's for undergrads. You finish high school with algebra lol
Replies: >>712388046 >>712388056 >>712388170
Anonymous
6/12/2025, 2:35:39 AM No.712387785
>>712387372
Was part of an extracurricular I did.
My SAT was pretty shit btw. Only got a 1210. I barely paid attention in classes, only the ones I heard were hard because I liked doing stupid courses. My English score was somehow perfect so you could tell how bad the math one was. The highest at my school was only a 1380 though and that guy was valedictorian.
Anonymous
6/12/2025, 2:36:04 AM No.712387825
>>712358105 (OP)
>do 90% of your attack if your attack is more than 8 times their defense
nigga they should be shredded at that point
just call enemy.sunder()
Anonymous
6/12/2025, 2:38:25 AM No.712388009
>>712387562
I didnโ€™t even do chemistry. I did well in biology but I did environmental science because
>I didnโ€™t care about high school
>it was easy
>we could fuck around more in that class
I got into UGA anyway which was THE party school and I had a blast there so I donโ€™t really regret it.
Anonymous
6/12/2025, 2:38:54 AM No.712388046
>>712387562
>>712387703
My school only had algebra in the last year.
Anonymous
6/12/2025, 2:38:58 AM No.712388056
>>712387703
interesting, because in Canada while its not mandatory to take calculus most people who go into stem have to take it. But I hear that in the US the grading scheme is maybe more difficult because for us a 80% is an A- but in the US it would be like a B or B- not sure. So you guys might still have it harder based on that.
Anonymous
6/12/2025, 2:40:28 AM No.712388170
>>712387562
>>712387703
I learned calculus in high school 20 years ago.
Replies: >>712388262 >>712388532
Anonymous
6/12/2025, 2:40:45 AM No.712388185
null
md5: null๐Ÿ”
>funnels players towards other forms of physical damage mitigation
Replies: >>712388551 >>712389019 >>712389506
Anonymous
6/12/2025, 2:41:08 AM No.712388224
>>712385450
>You do kill most random encounters in a couple of hits
I was under the impression most anons here were talking about MMOs. In MMOs, you grind sacks of HP. You most certainly do not kill them in a couple hits. But this is honestly irrelevant since I'm not the one who made that argument. You should be arguing with the idiot who's trying to say 250 is 20% larger than 200, not me.
>you won't use the expensive nuke that does 5x the enemies HP in damage for 100 MP when something 1/5th the price will do the job
No shit.

>>712387701
Your individual abilities do affect whether you skip grades or stay back. Also, I literally pointed out in another post how the smarter half of the class took Algebra in 8th grade while the dumber half didn't. And I'm pretty sure that's how it works across the country.
Anonymous
6/12/2025, 2:41:29 AM No.712388262
>>712387562
>>712388170
I should mention that it was an advanced placement class, so most people don't learn it.
Anonymous
6/12/2025, 2:41:47 AM No.712388289
>>712387562
My school, you had to take Geometry, Algebra 1 and Algebra 2, there was Calculus available and Algebra 2 covered a lot of what was considered Pre-Calc.
Anonymous
6/12/2025, 2:44:41 AM No.712388532
>>712388170
>20 years ago.
Yeah that's why
Kids are morons compared to you now
Anonymous
6/12/2025, 2:44:55 AM No.712388551
>>712388185
>makes other forms of defenses better against the only thing it works against while they guard against everything in the case of ES
Anonymous
6/12/2025, 2:46:19 AM No.712388671
If you want a blackpill go read /r/teachers
Something is seriously wrong with anyone under 25
Anonymous
6/12/2025, 2:47:46 AM No.712388786
I donโ€™t understand anything in this thread. I dropped out of highschool and donโ€™t know my times tables.
Replies: >>712388997
Anonymous
6/12/2025, 2:50:25 AM No.712388997
>>712388786
Get a printed out times table fridge magnet or painting
Helps a lot
Anonymous
6/12/2025, 2:50:44 AM No.712389019
null
md5: null๐Ÿ”
>>712388185
>BLOCK
>BLOCK
>BLOCK
>CRIT HEADSHOT
Replies: >>712389204
Anonymous
6/12/2025, 2:52:42 AM No.712389204
>>712389019
Classic DLC2.
Anonymous
6/12/2025, 2:53:35 AM No.712389284
>>712386885
Why is there calculation in the game at all? Why do devs think people engaging in a leisure activity want to do math, something most people despise and avoid as much as possible? Imagine you are eating a delicious piece of chocolate cake and railing a hot milf and some retard suddenly jams a math formula in your face and refuses to let you continue until you figure it out. It's fucking stupid and antithetical to an activity you do FOR FUN.
Anonymous
6/12/2025, 2:54:35 AM No.712389381
>>712386885
Wait, that's why these people are asking all the time? Holy shit.
Anonymous
6/12/2025, 2:54:55 AM No.712389413
>>712387562
mathtard here still trying to find the phantom 25%, grew up in rural Washington, never took any of these classes or even had classes to choose from, we just had "math" period
Replies: >>712390253 >>712394012
Anonymous
6/12/2025, 2:55:55 AM No.712389505
>>712358105 (OP)
<<<<<<<<<<<<<<<<<<<< Dragon Quest < Wizardry
Anonymous
6/12/2025, 2:55:56 AM No.712389506
>>712388185
what the fuck is mitigation
Anonymous
6/12/2025, 2:56:39 AM No.712389575
>>712377908
Jesus Christ, is this the state of modern education?
Replies: >>712389946
Anonymous
6/12/2025, 2:59:12 AM No.712389784
>>712387563
>JRPGs are full of archaic and vestigal game mechanics that serve no purpose to the game itself but are only there because they've been in JRPGs since the 80s

You're right but I wouldn't call JRPGs "archaic". JRPGs are by definition that way. It's done on purpose because that's EXACTLY what JRPG players want. If the devs start changing too much the game won't be a JRPG anymore and instead will become an action RPG or cRPG or something else.

JRPG players have no idea what RPGs stand for and are autistic retards that play visual novels with combat minigames with the purpose of seeing the numbers rise. That's why the core stat griding gameplay hasn't changed for the past 40 years and became the feature that makes a game a JRPG, just like jumping makes Mario and Sonic platformers.
Replies: >>712391148
Anonymous
6/12/2025, 2:59:50 AM No.712389839
>>712386885
>1 divine is equal to 100 chaos. If someone is trying to sell an item for 1.8 divines, can you calculate how much you will pay in divines and Chaos?
no, not really, because decimals are fucking stupid and a horrible way to convey information, just increase the amount of 0's to make it more sensible and then reduce them at the end

instead of 1-100, do 100-10,000; 180 divines = 18,000 chaos, now reduce it and you get 180 chaos
Anonymous
6/12/2025, 3:00:51 AM No.712389946
>>712389575
I'm 37, blow it out your ass
Replies: >>712392230
Anonymous
6/12/2025, 3:01:59 AM No.712390046
>>712358105 (OP)
I'm a game developer and i HAVE no idea what the fuck is this. I make games I'm not a mathematician big retard.
Anonymous
6/12/2025, 3:04:19 AM No.712390253
>>712389413
>never took any of these classes or even had classes to choose from, we just had "math" period
Same for me in australia. I didn't even know calculus or algebra was a thing till I was our of high school for 5 or so years
Replies: >>712390497
Anonymous
6/12/2025, 3:04:22 AM No.712390259
>>712384376
That book is not about "Game Theory" as formely defined in Mathematics (it touches the subject but it's mainly a talking about different things).
Anonymous
6/12/2025, 3:06:25 AM No.712390451
>>712384376
The people who write this stuff never actually make anything successful themselves, and when you ask actually successful artists about their endeavors, they don't understand any of this shit. Which makes you wonder: do these guys know what they're talking about?
Anonymous
6/12/2025, 3:06:52 AM No.712390497
>>712390253
in Canada its different. in the last year of school we have advanced functions and calculus and vectors.
Anonymous
6/12/2025, 3:09:38 AM No.712390748
null
md5: null๐Ÿ”
>>712374798
>>712368364
Since nobody bothered to explain the origins and the effect of the original damage formula, let me fill you guys in:

This is the damage formula for all souls games plus Elden Ring. All enemies including bosses have a % absorption/reduction for each attack's category (slash, pierce, etc), and element (magic, lightning, etc). They also have what the souls nerds like to call as "Flat Defense" for everything mentioned above, and the Flat Defense is what goes into this formula to determine the final damage number.

Basically, it makes slower, harder hitting spells and weapons good while making fast hitting spells and weapons, AND weapons with split damage bad, especially at high NG+ cycles (since Flat Defense increases as you accumulate NG+ cycles).

We call it Flat Defense because a good way to approximate the curve of this damage formula is just to subtract the FD from your weapon attack. So there's a (in)famous weapon in dark souls 3 called Dancer's Enchanted Swords, it does both slash, magic, and fire damage. It is thus the biggest noob trap because the weapon has a very high Attack Rating while doing very piss-poor damage in reality due to this formula. There's another example in Elden Ring which is Sword of Night and Flame which does mixed damage in the same way. There're also spell examples, Collapsing Stars is a spell that does 10*49 magic damage to enemies, and while it has one of the highest motion values per cast, its damage is shit in reality, often losing to Comet, which is a single hit 267 magic MV spell.
Replies: >>712394827
Anonymous
6/12/2025, 3:10:00 AM No.712390779
>>712361148
Because they have to account for the fact you can stack this 10x and trivialize that one boss that does only cold damage or something
Anonymous
6/12/2025, 3:11:17 AM No.712390908
>all these dumb reply
this is why india are beating you
Replies: >>712391290
Anonymous
6/12/2025, 3:13:47 AM No.712391148
>>712389784
You can't defend bad game design by saying the players are also retarded
Replies: >>712400235
Anonymous
6/12/2025, 3:13:48 AM No.712391149
>>712377148
How tf is it complex? Do you know what it means for a number to be less than another number? Do you know what it means for a number to be equal to another number? Do you know what 'or' means? Congratulations, you understand <=.
Anonymous
6/12/2025, 3:15:30 AM No.712391290
>>712390908
I donโ€™t touch power lines while standing on top of trains.
Anonymous
6/12/2025, 3:15:33 AM No.712391298
null
md5: null๐Ÿ”
Here's my damage formula:

if (nigger)
{
damage = damage *2;
} else { damage = damage;
}
Replies: >>712391436 >>712391723
Anonymous
6/12/2025, 3:16:18 AM No.712391365
>>712373804
Increased or More Spell Damage
Nearby, Nearby, Nearby or Nearby

Guess the game.
Replies: >>712400541
Anonymous
6/12/2025, 3:17:07 AM No.712391436
>>712391298
based java enjoyer
Anonymous
6/12/2025, 3:18:09 AM No.712391527
>>712358105 (OP)
Because they suck
Attack should just be ATTACK DAMAGE = playerATTACK - enemyDEFENSE with some extra fluff for modifiers
Anonymous
6/12/2025, 3:19:15 AM No.712391621
>>712358105 (OP)
because that's damage calculation for a dogshit gacha game that needs to be balanced like that to sustain their garbage monetization model where they need to release a trillion characters
Anonymous
6/12/2025, 3:19:42 AM No.712391653
null
md5: null๐Ÿ”
>/v/ exposing themselves as bumfuck retards ITT
Replies: >>712392003 >>712394154
Anonymous
6/12/2025, 3:20:08 AM No.712391681
null
md5: null๐Ÿ”
>>712383798
The function is continuous and he's not integrating anything.
Anonymous
6/12/2025, 3:20:11 AM No.712391685
This shit is why I have no idea how anything in Warframe works. I just copy peopleโ€™s builds or just throw some number go up mods on and call it a day.
Anonymous
6/12/2025, 3:20:35 AM No.712391723
null
md5: null๐Ÿ”
>>712391298
float damage = weaponAttack * enemyMelanin;
Anonymous
6/12/2025, 3:22:18 AM No.712391870
>>712368493
retard
Anonymous
6/12/2025, 3:23:22 AM No.712391950
My hot take is that defense values are bad game design. I've never seen a single rpg where attack, defense, and hp values correlate in an intuitive way beyond higher attack vs lower defense mean more damage. They each handle it slightly differently anyway, so you'd never know how much damage you're actually going to do without looking up the formula online.

Attack should just tell you how much damage your basic attack will subtract from the enemies HP. Instead of higher defense, enemies could just have higher HP since effectively the same thing, and it's much more intuitive.
Replies: >>712392127 >>712392440 >>712392892
Anonymous
6/12/2025, 3:23:58 AM No.712392003
>>712391653
i dont even know how to multiply basic numbers. is this really that bad?
Replies: >>712392131 >>712392187 >>712392551
Anonymous
6/12/2025, 3:25:35 AM No.712392127
>>712391950
Games just need to go the TTRPG route
Baldur's Gate 3 is just AC and raw damage and people understood it immediatelly
Anonymous
6/12/2025, 3:25:40 AM No.712392131
>>712392003
I would consider needing a calculator to play video games bad.
Replies: >>712392374
Anonymous
6/12/2025, 3:26:28 AM No.712392187
>>712392003
Same bro. I actually struggle adding and subtracting a little bit too. I have number dyslexia. Have always felt like a retard because of it and was always super embarrassed in math class.
Anonymous
6/12/2025, 3:27:01 AM No.712392230
>>712389946
I'm 38 and went to a public school in Mississippi. My point stands, you were the child that was supposed to be left behind.
Anonymous
6/12/2025, 3:28:58 AM No.712392374
>>712392131
I would consider a videogame bad if it needs a calculator.
Anonymous
6/12/2025, 3:29:59 AM No.712392440
>>712391950
Rts games like age of empires 2 often just have a simple damage_done = damage - armour. Though they also have a ton of armour types in that game that add or subtract flat bonus damage still it's only basic addition and subtraction
Anonymous
6/12/2025, 3:31:13 AM No.712392551
>>712392003
Do you not know how to multiply at all, or simply did not memorize the multiplication table? There is a huge difference between those in my opinion.
Replies: >>712392710
Anonymous
6/12/2025, 3:33:04 AM No.712392710
>>712392551
i know how to do the basic multiplications like 8x7 for example but if its complicated i struggle, i also dont memorize it and try to do it in my head each time because my brain is not good for memorization
Anonymous
6/12/2025, 3:33:11 AM No.712392721
null
md5: null๐Ÿ”
import Math;
import Entity;
Import Item;

int attack;
int defense;

if (defense > attack) {
Entity.takeDamage(0);
}
else if (defense < attack) {
Entity.takeDamage(attack - defense);
}
else if (Entity.itemInHand = !Item.Mundane) {
Entity.takeDamage((attack * 1.25) - defense);
}
else if (Entity.itemInHand = Item.Properites.isPiercing) {
Entity.takeDamage((attack * 2) - defense);
}
Replies: >>712392917
Anonymous
6/12/2025, 3:35:19 AM No.712392892
>>712391950
The reason you have a "45 DEF" stat instead of "+32 HP" is because it's cooler.
Anonymous
6/12/2025, 3:35:37 AM No.712392917
>>712392721
You might wanna take the 2 and 1.25 into preprocessor directives. Other than that looking good codebro
Replies: >>712393151
Anonymous
6/12/2025, 3:35:42 AM No.712392925
Why the fuck do games have shit like:
>50% Fire Resistance
Then also have stupid generic defense (which is literally 90% of the time could just be called physical resistance) But feel the need to make it flat number stat that has some spaghetti equation when they already have a system that works for elemental damage?
Why the fuck is:
>Defense 17312 = 65.78% damage reduction
Also exist when you are clearly able to balance flat % based elemental shit that simply has stronger enemies have % damage pen.
Replies: >>712393037 >>712393448
Anonymous
6/12/2025, 3:36:04 AM No.712392958
>>712358105 (OP)
It's 10%, 10% plus some, 70% minus some, 90% minus some, 90%.
I feel like the last one is the most retarded. Why not just make it 100%.
Anonymous
6/12/2025, 3:37:00 AM No.712393037
>>712392925
because of muh tradition of not wanting to have players knowing their stats
Anonymous
6/12/2025, 3:38:16 AM No.712393151
>>712392917
NTA but is preprocessor directive like the #define in C for example? what advantage does it offer? I havent programmed in a while
Replies: >>712393814
Anonymous
6/12/2025, 3:41:43 AM No.712393448
>>712392925
Because they're essentially trying to make defense linear, and expressing that linearization as a % becomes incomprehensible
So if 1 defense adds 5% effective hit points, expressing that extra effective hit points as damage reduction gives you a very unintuitive formula
Really they should be just giving you extra hit points
Anonymous
6/12/2025, 3:42:32 AM No.712393519
null
md5: null๐Ÿ”
>>712382661
something i noticed is that if insanity is true, then no matter what the results are, the action the code does is this. weapon, blood, yadda yadda yadda, doesn't matter.
Anonymous
6/12/2025, 3:44:07 AM No.712393653
>>712358105 (OP)
The only numbers I can't figure out a reason for are the fractions being multiplied with the squares. Where did they get numbers like 19.2/49 from? The numbers inside the squares correspond to the ranges to ensure the function is continuous. The .1, .7, .9 are arbitrary but reasonable (i.e. 10%, 70%, 90% of atk).
Replies: >>712394145
Anonymous
6/12/2025, 3:45:08 AM No.712393746
>>712377505
It's not that crazy aside from the seemingly arbitrary fraction.
Replies: >>712399097
Anonymous
6/12/2025, 3:45:56 AM No.712393814
>>712393151
Yeah, #define in C is exactly it. It makes later modifying the code much easier for others. Say if you don't want piercing to do double damage anymore, you can just change the numbers at the top of the file just like changing values in a class. Rather than ctrl+Fing pierce all over the place
Anonymous
6/12/2025, 3:46:57 AM No.712393894
null
md5: null๐Ÿ”
>+stat% modifier, like +20% damage
>no indication of whether it's additive or multiplicative
This feels like it happens way more often than it should.
Anonymous
6/12/2025, 3:48:26 AM No.712394012
>>712389413
>the phantom 25%
Normal Guy and Wild Guy each take two swings at the enemy.
Normal Guy does 10 and 10 again, for a total of 20.
Wild Guy does 5 (because 10 - 50%) and 20 (because 10 x 2) for a total of 25.
25 is how much bigger than 20? It's 5 bigger, what's 5 out of 20? What's 25 divided by 20? Or in other words, 5 divided by 4?
This is like 7th grade math.
Anonymous
6/12/2025, 3:48:30 AM No.712394021
>>712361148
why are zoomoids unaware of '?'
Anonymous
6/12/2025, 3:50:12 AM No.712394145
>>712393653
The formulas are designed so that they each represent one of five thresholds and intersect with the neighbouring formulas at the specific thresholds.
Replies: >>712394417
Anonymous
6/12/2025, 3:50:19 AM No.712394154
>>712391653
/v/ will have threads like this but then they'll have threads where everyone's 6' tall, makes 100k a year from home doing nothing, has slept with half a dozen girls, and is Immortal in Dota, and they CANNOT EVEN IMAGINE that anyone else here isn't.

But they can't do middle school math.
Replies: >>712394274
Anonymous
6/12/2025, 3:51:59 AM No.712394274
>>712394154
>middle school
This is more like first 3 months of STEM
Replies: >>712394643
Anonymous
6/12/2025, 3:53:51 AM No.712394415
null
md5: null๐Ÿ”
The worst game mechanics of all time award?
Anonymous
6/12/2025, 3:53:51 AM No.712394417
>>712394145
I understand that part. That's straight forward from the values being subtracted from the atk/def ratio. I'm curious about the specific constants that are used inside, the 19.2/49, the -0.4/3, and the -0.8/121.
Replies: >>712396089
Anonymous
6/12/2025, 3:56:15 AM No.712394591
>>712358105 (OP)
That's why I like games like Fire Emblem. It's just Attack - Defense. There's plenty of subtle depth and the ceiling for strategy is high but the shit that needs to be basic is basic instead of mega autism simulator for fags.
Anonymous
6/12/2025, 3:56:50 AM No.712394643
>>712394274
OP's post, yes. I'm talking about the other conversation.
Replies: >>712394886
Anonymous
6/12/2025, 3:59:17 AM No.712394827
>>712390748
>rollslop has retarded armour mechanics that only serve to make some things noob bait
Why did this shit get hyped?
Anonymous
6/12/2025, 4:00:05 AM No.712394886
>>712394643
Ah, yeah.
That faggot's got to be some kind of retarded dropout or something.
Anonymous
6/12/2025, 4:13:49 AM No.712395881
null
md5: null๐Ÿ”
JRPGs are a joke, they just do it because they don't know of anything better. Someone did it once they keep repeating the pattern
Anonymous
6/12/2025, 4:14:37 AM No.712395939
>>712367089
because it's midwits flexing the same way retards like to correct you and say tomatoes are actually berries. It doesn't matter at all and it's a great way to weed out the actual retards.
I worked on game dev and heard billions of "advice" and "professionals" saying that something is faster than something else... yea by less than a millisecond, so who the fuck cares?!
Replies: >>712397153
Anonymous
6/12/2025, 4:16:22 AM No.712396089
>>712394417
They're just calculated to make the formulas match up. It's nothing complicated, someone just did the math to say "if we want the formulas to intersect here, and we want them to have a polynomial curve, then the constants need to be these."
Anonymous
6/12/2025, 4:19:54 AM No.712396326
null
md5: null๐Ÿ”
>>712373804
Anonymous
6/12/2025, 4:30:06 AM No.712397153
>>712395939
>yea by less than a millisecond, so who the fuck cares?!
All those milliseconds add up
Your the reason everything is a slow piece shit even though we have pocket supercomputers
Anonymous
6/12/2025, 4:35:17 AM No.712397538
>>712369417
you learn about piecewise functions before calc 1 usually
Replies: >>712397596 >>712399295
Anonymous
6/12/2025, 4:36:06 AM No.712397596
>>712397538
Well we didn't
I think you must have went to a good private school
Replies: >>712397936 >>712399295
Anonymous
6/12/2025, 4:40:23 AM No.712397936
>>712397596
no I actually dropped out of high school and I did grade 11 and 12 math in college and im doing calc 1 as part of my first term of my program this year lol
Anonymous
6/12/2025, 4:40:44 AM No.712397963
if you have to balance your game, the premise is broken. the moment you start balancing, you're contributing to sunk costs.
Replies: >>712400528
Anonymous
6/12/2025, 4:48:49 AM No.712398594
>>712363183
Armor in Fallout 1/2 is interesting because you can see how it originated with GURPS, since DR is identical between systems and the % reduction is roughly equivalent to the number of hits you'd deflect with PD.
Anonymous
6/12/2025, 4:50:34 AM No.712398736
>>712387562
Calc isn't part of the default curriculum. I was 2 years ahead in math so I took calc. Not AP though (college calc) because I was kicked out of honors.
Anonymous
6/12/2025, 4:52:34 AM No.712398915
null
md5: null๐Ÿ”
This thread truly explains the absolute state of /v/.
Anonymous
6/12/2025, 4:55:17 AM No.712399097
>>712393746
its not crazy but its nonsensically pointless. why go for all of that when the end result is basically a straight line? you could unironically have a linear function doing just about the same purpose
Anonymous
6/12/2025, 4:58:04 AM No.712399295
>>712397538
>>712397596
what does it even mean to "learn about piecewise functions"? assuming you know what a function is, just looking at >>712358748
should tell you what it does. there's a lot of complex shit in math but that isn't one of them
Anonymous
6/12/2025, 5:03:45 AM No.712399680
null
md5: null๐Ÿ”
easy
Anonymous
6/12/2025, 5:11:08 AM No.712400235
>>712391148
No, but you can explain why bad game design exists and a lot of the time it's because the consumers are retarded.
Anonymous
6/12/2025, 5:13:01 AM No.712400358
>>712369669
Anything higher than Algebra 2 is optional or simply not taught, what fucking country teaches calc 2 in high school as a mandatory class
Anonymous
6/12/2025, 5:15:30 AM No.712400528
>>712397963
Not really, if you have a ton of shit some things are going to pass through and might need a bit of a balance pass. The actual problems come when you do dumb shit like only buffing things when the simpler solution would be to do like a few targeted nerfs. Doing only buffs causes basically an internal arms race of buffs between enemies and the player to try and keep things remotely sane.
Anonymous
6/12/2025, 5:15:38 AM No.712400541
>>712391365
I got no clue, what is it?
Anonymous
6/12/2025, 6:02:53 AM No.712403659
For me, it's Mochizuki-Sensei's Inter-Universal Teichmuller Theory.
https://www.kurims.kyoto-u.ac.jp/~motizuki/Inter-universal%20Teichmuller%20Theory%20I.pdf
Anonymous
6/12/2025, 6:08:16 AM No.712404062
>>712358105 (OP)
Part of the reason I like fire emblem to be honest. The stats and damage calculation just fucking make sense.
Damage is unit's attack minus the defender's defense. Occasionally with some x2 or x3 multipliers for effective damage or whatever.
Its great, you know the exact value of what every stat point is worth, you know exactly how much of an improvement that cool special sword is over another one.
Replies: >>712404539
Anonymous
6/12/2025, 6:15:09 AM No.712404539
>>712404062
It works for simple games like that.

But it doesn't work for MOBAS, Exile-likes, etc.
Anonymous
6/12/2025, 6:16:21 AM No.712404627
null
md5: null๐Ÿ”
>>712373804
>>712374670
>don't know if bonuses are additive or multiplicative
>take all the bonuses anyway
>deal more damage
Replies: >>712404872
Anonymous
6/12/2025, 6:19:55 AM No.712404872
>>712404627
what if you don't have enough points in total to get all the damage skills?
Replies: >>712405254
Anonymous
6/12/2025, 6:22:25 AM No.712405056
null
md5: null๐Ÿ”
>game with 100+ heroes
>every hero has custom damage vs every other hero
>heroes only counter each other if they're designed to
>create most balanced game in the world
Why wouldn't this work and why hasn't it been done?
Replies: >>712405706 >>712406480
Anonymous
6/12/2025, 6:25:02 AM No.712405254
>>712404872
just feel it out. If it's single player, I'll beat it anyway. If it's multiplayer then ranking will put me against people operating on my level no matter how optimized I am.
Anonymous
6/12/2025, 6:31:26 AM No.712405706
>>712405056
That's Dota
Anonymous
6/12/2025, 6:42:27 AM No.712406480
>>712405056
The problem is with that many heroes you have too many variables. Inevitably someone's going to be the king of their niche. Helps a lot better to trim the total cast to like 30 or so.