Ballance in Warcraft 3 maps

Thunder_Lord

New Member
Reaction score
0
I have been spending the past week or 2 on trying to develop a formula that i can plug in different stats for any unit and it could give me an effective "combat rating"...units with the same combat rating would be equally effective in fighting...for example, putting range, ability and all other factors aside, A unit with 100 hp, 0 armor, and dealt 10 dps would have the same "combat rating" as a unit with 200 hp, 0 armor and 5 dps, or 50 hit points and 20 dps.
One of the maps i hope to use this formula in is a footmen frenzy map. I came up with these 2 formulas to calculate a units "Value Hp" and "Dps"
B/(1-((A*.06)/((A*.06)/((A*.06)+1)))=C
Where B= Hit points, A= Armor and C= "Value HP" or the number of points a unit can take before he dies (factoring in armor)
D/E=F
D is damage (accounting for base damage, attack dice and sides per die, the average damage per attack) E is attack Rate and F is Damage per Second (DPS)
So using the value C and F i need a formula that will Give a value "G"a combat rating that rates units proportionally on how powerful they are in combat. For example A unit where C=1000 and F=100
would have the value of G be twice as much as a unit where C=1000 and F=50...if that makes any sense...
I made an attempt to come up with such a formula. I made a formula for my footmen frenzy map, for this formula i came up with a "Base Unit" essentially it was a unit that i used as a reference point for all my other units. the unit i chose was the "Brutal Knight" witch was one of the final tier type (the other two are Head hunters witch should be half as powerful as a brutal knight and spawn twice as fast, and gladiators witch spawn half as fast and are 2 times as powerful)
The Brutal Knight has 11 armor 2150 hit points and deals 106-116 damage at a rate of 1.45 So after plugging in these values A=11 B=2150 D=111 ((106+116) divided by 2) E=1.45 these values gave me C=3569 and F=76.552 so the formula i came up with was
(F/76.552)*(C/3569)=G, so the value of a brutal knight (by this formula) is 1, this provides a Base for my formula, I thought this formula would be fine, but i have ran in to a flaw with it. When i plugged in C (5146) and F (166.437) of the Gladiator, the G i got was 3.1348. this value is way too much, this value suggests that it would take about 3 brutal knights (3569 hp and 76 dps) to kill 1 Gladiator (5146 hp and 166 dps) this formula did work however when i doubled or halved the DPS or HP (one or the other) it doubled/halved the unit combat rating but the formula needs to be able to compare any 2 units.

So if you know what im asking and can help me i would appreciate it a lot, i don't know if im just spewing gibberish or if you can actually make some sense out of this, anyway, any help with this balancing formula would be much appreciated
 

Shura

New Member
Reaction score
45
Are you saying that with your numbers, the G value of a gladiator should be double the G value of a Brutal Knight? Of course a gladiator is going to be about 3 times as strong as a Brutal Knight. You're more than doubling their DPS as well as increasing their Hit Points.
The formula looks like it is working just fine, it seems like it will compare units accurately.
 

Thunder_Lord

New Member
Reaction score
0
I'm not sayin the g value of a gladiator would be exactly 2 times, but as it stands. If a galdiaors valuse is 3 x that of a brutal knight it should take 3 knights to kill one gladiator. If you do the math the brutal knights c value • 3 and f value •3 is alot more than the c and f values of a single gladiator. What I need is a formula that uses the variables c and e to give me g. Where g is Proportional to a units combat strength. For example (putting aside the effects of focus fire of one big unit bs smaller ones) it wod take 2 units with a G value of .5 to kill one unit with a g value of 1. Or 3 units with a G value of 2 to kill a unit with a g value of 6.
If that makes anysence
 

Shura

New Member
Reaction score
45
>putting aside the effects of focus fire of one big unit bs smaller ones

Then your formula would hold true. If by ignoring the effects of smaller units "ganging up" on the larger units, you assume that they can only fight one on one, then a knight would only be able to take out a third of a gladiators hit points.
The Knight has 3569 hp. The gladiator has 166 dps. If you do 3569/166 you get 21.5 hits to kill the knight. That would mean the knight gets 21.5 hits off with 76 dps. That would deal 21.5*76 which is 1634, which is about one third of the gladiators health.

Unless I'm misunderstanding something here.
 

Thunder_Lord

New Member
Reaction score
0
Sorry i guess I worded that wrong wheni say putting the effects of units ganging up aside I ment that all 3 knights are attacking at the same time only... The effects of one knight would die before the others for example unit X has 200 hp and 10 dps. Unit x is getting attacked by unit Y. Unit y has 100 hp and deals 5 dps. If the damage of unit x was evenly split between both of unit Ys then the battle would tie. But that is not how it works unit x would attack unit one of the unit Ys after 10 seconds oneof the unit Ys would die so it stops doing dps. The next 10 seconds unit x is only taking damage from the second unit y (5dps) so 10 seconds later the second unit Y dies and unit X is left with 50 hp
 

Shura

New Member
Reaction score
45
Your formula will only work when comparing a unit fighting one on one with other units. In order to compare how a unit would fight against multiple other units, you would need to include the number of units in your equation. Something like this:
(B/E)/(A*E) + (B/E)/(A*(E-1)) + (B/E)/(A*(E-2)) + ... + (B/E)/(A*1)=(D*E)/C
where:
A=Unit 1 DPS
B=Unit 2 HP
C=Unit 2 DPS
D=Unit 1 HP
E=Number of Unit 1

This way, you can compare 2 units while including the number of the weaker unit.

If any of that was confusing, I could try to explain it better.
 

Thunder_Lord

New Member
Reaction score
0
Okay after working on it for awhile I found that I take value G from my older formula (g being the number of units, with I G value of 1, a unit can kill.) and a square root the old G value and I get a new value H, H is the number of units with a G (or H) value of one a unit can kill when fighting them at the same time (assumeung all dps is evenly sores between targets)
 
General chit-chat
Help Users
  • No one is chatting at the moment.
  • Ghan Ghan:
    Still lurking
    +3
  • The Helper The Helper:
    I am great and it is fantastic to see you my friend!
    +1
  • The Helper The Helper:
    If you are new to the site please check out the Recipe and Food Forum https://www.thehelper.net/forums/recipes-and-food.220/
  • Monovertex Monovertex:
    How come you're so into recipes lately? Never saw this much interest in this topic in the old days of TH.net
  • Monovertex Monovertex:
    Hmm, how do I change my signature?
  • tom_mai78101 tom_mai78101:
    Signatures can be edit in your account profile. As for the old stuffs, I'm thinking it's because Blizzard is now under Microsoft, and because of Microsoft Xbox going the way it is, it's dreadful.
  • The Helper The Helper:
    I am not big on the recipes I am just promoting them - I use the site as a practice place promoting stuff
    +2
  • Monovertex Monovertex:
    @tom_mai78101 I must be blind. If I go on my profile I don't see any area to edit the signature; If I go to account details (settings) I don't see any signature area either.
  • The Helper The Helper:
    You can get there if you click the bell icon (alerts) and choose preferences from the bottom, signature will be in the menu on the left there https://www.thehelper.net/account/preferences
  • The Helper The Helper:
    I think I need to split the Sci/Tech news forum into 2 one for Science and one for Tech but I am hating all the moving of posts I would have to do
  • The Helper The Helper:
    What is up Old Mountain Shadow?
  • The Helper The Helper:
    Happy Thursday!
    +1
  • Varine Varine:
    Crazy how much 3d printing has come in the last few years. Sad that it's not as easily modifiable though
  • Varine Varine:
    I bought an Ender 3 during the pandemic and tinkered with it all the time. Just bought a Sovol, not as easy. I'm trying to make it use a different nozzle because I have a fuck ton of Volcanos, and they use what is basically a modified volcano that is just a smidge longer, and almost every part on this thing needs to be redone to make it work
  • Varine Varine:
    Luckily I have a 3d printer for that, I guess. But it's ridiculous. The regular volcanos are 21mm, these Sovol versions are about 23.5mm
  • Varine Varine:
    So, 2.5mm longer. But the thing that measures the bed is about 1.5mm above the nozzle, so if I swap it with a volcano then I'm 1mm behind it. So cool, new bracket to swap that, but THEN the fan shroud to direct air at the part is ALSO going to be .5mm to low, and so I need to redo that, but by doing that it is a little bit off where it should be blowing and it's throwing it at the heating block instead of the part, and fuck man
  • Varine Varine:
    I didn't realize they designed this entire thing to NOT be modded. I would have just got a fucking Bambu if I knew that, the whole point was I could fuck with this. And no one else makes shit for Sovol so I have to go through them, and they have... interesting pricing models. So I have a new extruder altogether that I'm taking apart and going to just design a whole new one to use my nozzles. Dumb design.
  • Varine Varine:
    Can't just buy a new heatblock, you need to get a whole hotend - so block, heater cartridge, thermistor, heatbreak, and nozzle. And they put this fucking paste in there so I can't take the thermistor or cartridge out with any ease, that's 30 dollars. Or you can get the whole extrudor with the direct driver AND that heatblock for like 50, but you still can't get any of it to come apart
  • Varine Varine:
    Partsbuilt has individual parts I found but they're expensive. I think I can get bits swapped around and make this work with generic shit though
  • Ghan Ghan:
    Heard Houston got hit pretty bad by storms last night. Hope all is well with TH.
  • The Helper The Helper:
    Power back on finally - all is good here no damage
    +2
  • V-SNES V-SNES:
    Happy Friday!
    +1
  • The Helper The Helper:
    New recipe is another summer dessert Berry and Peach Cheesecake - https://www.thehelper.net/threads/recipe-berry-and-peach-cheesecake.194169/

      The Helper Discord

      Staff online

      Members online

      Affiliates

      Hive Workshop NUON Dome World Editor Tutorials

      Network Sponsors

      Apex Steel Pipe - Buys and sells Steel Pipe.
      Top