Is there a way to increase actor damage by determined factor

Post » Mon Sep 13, 2010 1:56 am

Hi all.

Currently i have small mod in development, and i would like a feature in it which increses actor (NPC) damage for some time. Surely, i can increase actor's stats or skills by some amount - but afaik it wont have the result i desire - which is "do 5x ranged damage for 10 seconds".

Is there a way to achieve this goal?

Such a change for ranged dmg only (not melee/magic) will be enough for mod.

Thx in advance.
User avatar
Felix Walde
 
Posts: 3333
Joined: Sat Jun 02, 2007 4:50 pm

Post » Mon Sep 13, 2010 1:39 am

Hi all.

Currently i have small mod in development, and i would like a feature in it which increses actor (NPC) damage for some time. Surely, i can increase actor's stats or skills by some amount - but afaik it wont have the result i desire - which is "do 5x ranged damage for 10 seconds".

Is there a way to achieve this goal?

Such a change for ranged dmg only (not melee/magic) will be enough for mod.

Thx in advance.

You can use the 'AttackBonus' stat to increase/decrease the amount of damage done by any actor, including the player. The value of the stat is added to the calculated damage for the current weapon.
You can set the stat safely using the new OBSE actor value functions:
targetactor.ModAVMod AttackBonus Max 25   ;; add 25 points to damage output of targetactor  ;; -later-targetactor.ModAVMod AttackBonus Max -25   ;; return targetactor damage to original state


If you want to multiply the damage done by an actor, you will probably need to calculate how much damage they'd do normally and figure out an appropriate bonus from that.
User avatar
Stryke Force
 
Posts: 3393
Joined: Fri Oct 05, 2007 6:20 am

Post » Sun Sep 12, 2010 7:37 pm

Thx alot JRoush!

Now i gotta figure a way how to calculate said normal damage. There's a formula for it in UESP Wiki - will try to use it.
User avatar
Loane
 
Posts: 3411
Joined: Wed Apr 04, 2007 6:35 am


Return to IV - Oblivion