Перейти к содержимому

Фотография

[GUIDE] Damage Calculations, updated


  • Пожалуйста, авторизуйтесь, чтобы ответить
5 ответов в этой теме

#1
Rynas

Rynas
  • Members
  • 412 сообщений

GhoXen's excellent thread hasn't been updated in a while.  A lot of the information is still correct, but some of it is outdated, either due to patching, more complete testing, or better data available.

 

The fine folks at DAITools have produced an LUA script explorer that allows us to look at script source code.  One of the major scripts is apparently responsible for computing combat damage.  The info below is taken from that script (and related ones).  There are still some unknowns, but there's a lot of helpful stuff here.

 

The formulas below are incomplete, but I've tried to capture the most important elements.

 

PLAYER DAMAGE CALCULATION

Spoiler

 

CREATURE vs. PLAYER DAMAGE CALCULATION

Spoiler

 

Please post corrections/questions/additions below.  (If you're posting a correction or addition, please make sure you have independently verifiable evidence, such as a code snippet or screenshots/video!)

 

[Edit: Formatting, clarity]


  • Это нравится: Arvaarad и Karolis

#2
mesmerizedish

mesmerizedish
  • Members
  • 7 776 сообщений
Do you have any idea if it's possible to edit, recompile, and replace LUA scripts in game?

#3
Rynas

Rynas
  • Members
  • 412 сообщений

You can export, edit, and recompile the scripts, but I don't think they've figured out how to re-import them yet.  I believe they're working on it, though.



#4
Kaylon

Kaylon
  • Members
  • 22 сообщений

Does that mean that spells are also affected by armor?



#5
PapaCharlie9

PapaCharlie9
  • Members
  • 2 849 сообщений

 

 

PLAYER DAMAGE CALCULATION

Spoiler

 

 

 

"Shielded" must mean an enemy knight using a shield.

 

Question about the formula:

Spoiler


#6
Cyberpunk

Cyberpunk
  • Members
  • 361 сообщений

Thanks a lot for this! Would it be possible to make an excel dmg calculator? Only if you have the time!