Heroes of Might and Magic Community
visiting hero! Register | Today's Posts | Games | Search! | FAQ/Rules | AvatarList | MemberList | Profile


Age of Heroes Headlines:  
5 Oct 2016: Heroes VII development comes to an end.. - read more
6 Aug 2016: Troubled Heroes VII Expansion Release - read more
26 Apr 2016: Heroes VII XPack - Trial by Fire - Coming out in June! - read more
17 Apr 2016: Global Alternative Creatures MOD for H7 after 1.8 Patch! - read more
7 Mar 2016: Romero launches a Piano Sonata Album Kickstarter! - read more
19 Feb 2016: Heroes 5.5 RC6, Heroes VII patch 1.7 are out! - read more
13 Jan 2016: Horn of the Abyss 1.4 Available for Download! - read more
17 Dec 2015: Heroes 5.5 update, 1.6 out for H7 - read more
23 Nov 2015: H7 1.4 & 1.5 patches Released - read more
31 Oct 2015: First H7 patches are out, End of DoC development - read more
5 Oct 2016: Heroes VII development comes to an end.. - read more
[X] Remove Ads
LOGIN:     Username:     Password:         [ Register ]
HOMM1: info forum | HOMM2: info forum | HOMM3: info mods forum | HOMM4: info CTG forum | HOMM5: info mods forum | MMH6: wiki forum | MMH7: wiki forum
Heroes Community > Heroes 3.5 - WoG and Beyond > Thread: The damage/defence/creaturenumber formula?
Thread: The damage/defence/creaturenumber formula?
sindert
sindert

Tavern Dweller
posted September 30, 2008 12:06 AM

The damage/defence/creaturenumber formula?

Hello!

I'm a big homm fan, and I recently decided to make my own version of it (mostly for learning more about programming)

I've made the base combat system, and I'd like to use the same damage calculations as Heroes III.


Does anybody know the formula?

My first try was something like this:
other.losehp= floor(damage*armynumber)*(1-(other.defence/1000))/10
(floor removes all decimals of the variables inside "()")
...but that doesn't work very well.

 Send Instant Message | Send E-Mail | View Profile | Quote Reply | Link
metalpiss
metalpiss


Adventuring Hero
fail
posted September 30, 2008 12:35 AM
Edited by metalpiss at 00:48, 30 Sep 2008.

of course it doesn't because it seems to me that you forgot about the attackers attack points
The formula for Heroes 2 was something like:
if a hits b:
Total_Dmg = Dmg_a + Dmg_b x (Att_a - Def_b) x 10%
All that multiplied with the number of creatures in a stack, of course.
But I don't know if this still stands for Heroes 3...

and I just copied that from an old games magazine I have, so don't curse me if it's bogus
____________
Lair of metalpiss

 Send Instant Message | Send E-Mail | View Profile | Quote Reply | Link
sindert
sindert

Tavern Dweller
posted September 30, 2008 11:14 AM

What, the dmg of the defender (b) affects the damage it takes?

 Send Instant Message | Send E-Mail | View Profile | Quote Reply | Link
Warmonger
Warmonger


Promising
Legendary Hero
fallen artist
posted September 30, 2008 11:20 AM

As far as I remember:

For every point of attack over defense, creature inflicts 5% more damage (capped at 300%)
For every defense point over attack, the creature takes 2% less damage (capped at 40%)

This system has its limits, that is why I prefer H5 one

 Send Instant Message | Send E-Mail | View Profile | Quote Reply | Link
Rainalcar
Rainalcar


Promising
Famous Hero
Heroji su zakon
posted September 30, 2008 11:32 AM

http://heroescommunity.com/viewthread.php3?TID=27539

You have everything explained in a PDF.

 Send Instant Message | Send E-Mail | View Profile | Quote Reply | Link
sindert
sindert

Tavern Dweller
posted September 30, 2008 12:37 PM

Thanks for the link!
That will help me solve a lot of the problems.

But I didn't understand much of the damage calculations, so (at least for a temporary solution) I'll go for Warmonger's solution

 Send Instant Message | Send E-Mail | View Profile | Quote Reply | Link
angelito
angelito


Honorable
Undefeatable Hero
proud father of a princess
posted September 30, 2008 12:38 PM

It is 2,5% each point less...not 2%...for Heroes 3 that is.
____________
Better judged by 12 than carried by 6.

 Send Instant Message | Send E-Mail | View Profile | Quote Reply | Link
Hell_Wizard
Hell_Wizard


Famous Hero
posted October 02, 2008 08:58 PM

Why didn't any of you said me this here?
____________

 Send Instant Message | Send E-Mail | View Profile | Quote Reply | Link
Jump To: « Prev Thread . . . Next Thread »
Post New Poll    Post New Topic    Post New Reply

Page compiled in 0.0269 seconds