Staredit Network

Staredit Network -> UMS Assistance -> Upgrade calculation!
Report, edit, etc...Posted by sckor on 2005-04-19 at 03:36:27
You all know you can upgrade units. And you all know that you're units do different amount of damage depending on what kind of unit it is. I was just wondering, because my friend at school had pointed it out.
Say, a reaver was attacking an SCV, with his scarab damage upgrade.
Since an SCV is "small" unit, it would only do 50% damage.
Question is,

would it calculate 100/2 then add 25 damage? =75 damage
Or would it calculate 125/2 which is 63? (sc always rounds up)
Report, edit, etc...Posted by LegacyWeapon on 2005-04-19 at 06:34:08
I'm pretty sure you add the damage first. Why don't you test it?
Report, edit, etc...Posted by sckor on 2005-04-19 at 07:16:37
I'm desperate at the moment!
I know I could just test if a reaver kill something with 75 hp small unit but I can't play game, and plus I'm grounded!

Edit- So, you mean you do 63 damage?
Man, that sucks.
Report, edit, etc...Posted by PCFredZ on 2005-04-19 at 10:10:43
Yeah the bonuses would be added first, otherwise the whole system would be skewed.
Report, edit, etc...Posted by Yenku on 2005-04-19 at 11:49:32
Woah, I didnt know it did less damage to small units, is this only the reaver that does this?
Report, edit, etc...Posted by SkiLLz on 2005-04-19 at 14:11:58
I find all these percentages to be difficult. Example: If your units doing 25 damage, thats how much damage it should do too all units. With my upgrades, it all depends what units shooting another unit. Is it just me or will units tend to do that?
Report, edit, etc...Posted by Mini Moose 2707 on 2005-04-19 at 16:57:05
First off, Reavers do normal type damage.

Secondly, read my tutorial "Armor and How it Works". http://www.staredit.net/index.php?tutorial=76
Report, edit, etc...Posted by chuiu on 2005-04-19 at 17:22:31
QUOTE(Yenku @ Apr 19 2005, 10:49 AM)
Woah, I didnt know it did less damage to small units, is this only the reaver that does this?
[right][snapback]191293[/snapback][/right]

Different units all have different attack types. So of course some units are going to do way less than others. Thats why in most games if you see a ghost and a marine, you should only get the ghost if it has more than 3x the attack and attack upgrade of the marine.
Report, edit, etc...Posted by Yenku on 2005-04-19 at 17:26:46
I know this is a newbish question, but say a zergling that does 5 damage is attacking a marine with one armor, how much does the ling do per hit?
Report, edit, etc...Posted by chuiu on 2005-04-19 at 17:29:02
4
Report, edit, etc...Posted by Yenku on 2005-04-19 at 17:34:10
oh, first of all sorry, i didnt see your link legacy,
and second, i found out myself how it works, just now.
Report, edit, etc...Posted by Mini Moose 2707 on 2005-04-19 at 17:44:41
While Legacy consistently cites the tutorial DB, I believe I posted the link. tongue.gif
Report, edit, etc...Posted by PCFredZ on 2005-04-19 at 17:54:46
QUOTE
Start with the damage.
Subtract shield upgrades from the damage.
Apply damage to shields.
Carry over the remaining damage to regular HP.
Subtract the unit's armor.
Multiply the damage by the percentage of the damage type and armor type of the target. (100%, 75%, 50%, 25%)

If the damage at any point is zero, it will take two attacks to do one point of damage.

Example...
Seiged Tank (70 damage) attacks a Zealot (60sh, 100hp) with 1 Armor Upgrades.
70 - 0 Shields, 70 Dmg to shields.
70 - 60, takes out shields with 10 left over.
10 - 2 factors in the base Armor plus the upgrade, bringing the damage to 8.
Zealot is a light armored unit, whereas Tank does explosive damage, cutting the damage in half.
8 / 2 = 4 damage to HP.
The Zealot has no shields left and 96 HP left.

It says nothing about weapon upgrades...
Report, edit, etc...Posted by KaboomHahahein on 2005-04-19 at 18:04:09
It talks about stuff like
QUOTE
Say, a reaver was attacking an SCV, with his scarab damage upgrade.
Since an SCV is "small" unit, it would only do 50% damage.
Report, edit, etc...Posted by LegacyWeapon on 2005-04-19 at 18:24:30
We have a completely different tutorial for things like that happy.gif
http://www.staredit.net/index.php?tutorial=110
Report, edit, etc...Posted by Mini Moose 2707 on 2005-04-19 at 18:27:34
Base Damage + Total Upgrade Damage is the damage. What else is to figure in? It gets treated the same way. If I have a Marine doing 10 damage or 5 + 5 damage, its the same thing.
Report, edit, etc...Posted by Yenku on 2005-04-19 at 19:47:06
Lol, sorry moose, im just so used to him doing it... I just instinctively said Legacy.
Report, edit, etc...Posted by sckor on 2005-04-20 at 05:24:58
Reaver does normal damage?
Do lurkers have one base armor? (one hit kill!)

Okay, anyways, thanks people!
Report, edit, etc...Posted by terrenblade on 2005-04-21 at 20:48:15
Also, SC does not Allways round Up. In HHH one of mooses maps, we have hydras with 20 attack as badguys and rines as good guys. Hydras do explosive attack and rines are small units so 50% dmg to rines, If you give your marine one point of armor the hydra will deal 10, 9, 10, 9, 10.... DMG So it looks like it Rounds the HP remaining down or something. Becuse the damage is realy 9.5 per shot.
Report, edit, etc...Posted by Rantent on 2005-04-22 at 01:00:27
I just thought that this should be posted here. Unit Listings It's a .pdf file.
Credit given to starcraft.org
Report, edit, etc...Posted by sckor on 2005-04-22 at 05:34:58
9.5, however.
You explained as you take the armor away before you do the reduced 50% damage.

but, if you divide 20 by half, and subtracted one, then that equals exactly 9. So I don't think SC rounded it down there.
Report, edit, etc...Posted by chuiu on 2005-04-22 at 06:14:11
No, its taking 19 and dividing it by half because Terrenblade is right. Blizzard probably made it so that it evens out or something.

Damage = (attack - foesArmor) * dmgModifier
Next Page (1)