SphereCommunity
Damage of NPC - Printable Version

+- SphereCommunity (https://forum.spherecommunity.net)
+-- Forum: Sphere 0.56d (/Forum-Sphere-0-56d)
+--- Forum: General Help (/Forum-General-Help)
+--- Thread: Damage of NPC (/Thread-Damage-of-NPC)



Damage of NPC - Jhobean - 11-12-2019 12:01 AM

We are in transition from 55i to 56d.

I'm surprise that on 56d the STR have no effect on the damage the NPC do. Only damage=x,x is effective.

EX:
I put STR=5000 on my npc and he do the same damage if he has 50.

It's normal or not?

Thx


RE: Damage of NPC - Coruja - 11-15-2019 02:10 PM

NPC damage calculation doesn't use any bonus, so it will use weapon damage (if there's any weapon) otherwise it will use chardef DAM=min,max value. There's no STR bonus, DAMINCREASE bonus, nor any other bonus from CombatDamageEra .ini setting

It works in this way to match OSI charts, where if an NPC X have DAM=10,20 you just need to set DAM=10,20 on scripts and it will cause the expected DAM=10,20 without need to worry about nothing increasing this value to 30, which should not happen

PS¹: note that this is only valid for ~damage~ calculation. After calculate the damage, it will hit the target and the target will apply parry chance formula, armor resist formula, etc

PS²: you can easily customize these combat formulas using scripts (eg: apply custom STR bonus on damage using an event to change ARGN1 on @Hit trigger, etc)
https://wiki.spherecommunity.net/index.php?title=@Hit


RE: Damage of NPC - Jhobean - 11-15-2019 09:26 PM

A better respond than I expected! Thx for all these explainations