The following warnings occurred:
Warning [2] Use of undefined constant SAPI_NAME - assumed 'SAPI_NAME' (this will throw an Error in a future version of PHP) - Line: 3388 - File: inc/functions.php PHP 7.4.33-nmm7 (Linux)
File Line Function
/inc/functions.php 3388 errorHandler->error
/showthread.php 116 build_archive_link
Warning [2] Use of undefined constant IN_ARCHIVE - assumed 'IN_ARCHIVE' (this will throw an Error in a future version of PHP) - Line: 3331 - File: inc/functions.php PHP 7.4.33-nmm7 (Linux)
File Line Function
/inc/functions.php 3331 errorHandler->error
/inc/functions.php 3324 build_forum_breadcrumb
/showthread.php 195 build_forum_breadcrumb
Warning [2] Use of undefined constant IN_ARCHIVE - assumed 'IN_ARCHIVE' (this will throw an Error in a future version of PHP) - Line: 3331 - File: inc/functions.php PHP 7.4.33-nmm7 (Linux)
File Line Function
/inc/functions.php 3331 errorHandler->error
/showthread.php 195 build_forum_breadcrumb






Post Reply 
 
Thread Rating:
  • 0 Votes - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Custom armor rating calculation
Author Message
Murmur
Apprentice
*

Posts: 33
Likes Given: 3
Likes Received: 2 in 2 posts
Joined: Feb 2013
Reputation: 0



Post: #4
RE: Custom armor rating calculation
Thanks darksun84 and bmanny.

@bmanny - I'm completely re-writing it all from nothing. So with your example of dmg = WeaponDMG * (armorMod/100+1), I plugged my AR value (physical AR in modern terms), which, for instance, a full set of normal plate gives 28 AR. When I use your formula with my AR, it looks like this:

10 damage (dagger) * (28AR/100+1) = 12.8 damage
and then lets use a heavy crossbow
24 damage (heavy crossbow) * (28AR/100+1) = 30.72 damage

then I change the armor value from 28 to 100

10 damage (dagger) * (100AR/100+1) = 20.0 damage
and then lets use a heavy crossbow
24 damage (heavy crossbow) * (100AR/100+1) = 48 damage

So with the same weapon, with 100 AR, its doing more damage. So that wouldn't work, I'd have to rewrite how I get my armor value, which has already been done. Thanks for the suggestion though! I'm sure it will help someone at some point searching the forums in the future.

@darksun84 - I have tested this formula a lot tonight, and it looks like it will work for now. I think I want a gradual curve on the % of damage that is mitigated, and I'll probably have to write this out with like 4 different formulas depending on if my armor is less than 50, less than 100, less than 150 and less than 200 but the formula you suggested is almost exactly what I needed at this point.

Thank you again to both of you.
-Murmur

*you glance to your left to a region you just surveyed... you glimpse a magical being, more shadow than substance, caught midway in transformation... the figure smiles, the corners of his mouth jut upwards slightly on the edges, suddenly stretched to a length not at all human...*
05-11-2017 04:48 PM
Find all posts by this user Like Post Quote this message in a reply
Post Reply 


Messages In This Thread
Custom armor rating calculation - Murmur - 05-10-2017, 05:00 PM
RE: Custom armor rating calculation - Murmur - 05-11-2017 04:48 PM

Forum Jump:


User(s) browsing this thread: 3 Guest(s)