Difference between revisions of "ModAttackDamage"

From the Oblivion ConstructionSet Wiki
Jump to navigation Jump to search
imported>WereWolf
m
imported>DragoonWraith
(fixing example - GetEquippedObject returns an objectID, not a referenceID.)
 
(7 intermediate revisions by 2 users not shown)
Line 1: Line 1:
ModAttackDamage - modifies the base attack damage up or down.
A command for [[:Category:Oblivion Script Extender|Oblivion Script Extender]]
 
'''Syntax:'''
(nothing) ''reference.''ModAttackDamage modifyBy:float ''objectID:ref''


        (nothing) reference.ModAttackDamage modifyBy:float objectID:ref
Modifies the base attack damage up or down.


==Example==
'''Example:'''
ref Weapon
float WeaponDamage
set Weapon to player.[[GetEquippedObject]] 16
ModAttackDamage 10 Weapon
Add 10 to the current player's equipped weapon attack damage.


==See Also==
==See Also==
[[GetAttackDamage]]
*[[GetAttackDamage]]
[[SetAttackDamage]]
*[[SetAttackDamage]]
 
A command for [[:Category:Oblivion Script Extender|Oblivion Script Extender]]


[[Category: Functions]]
[[Category:Functions]]
[[Category: Functions (OBSE)]]
[[Category:Functions (OBSE)]]
[[Category:OBSE_Functions]]
[[Category:Inventory Functions]]
[[Category:Inventory Functions (OBSE)]]

Latest revision as of 14:27, 10 June 2008

A command for Oblivion Script Extender

Syntax:

(nothing) reference.ModAttackDamage modifyBy:float objectID:ref

Modifies the base attack damage up or down.

Example:

ref Weapon
float WeaponDamage
set Weapon to player.GetEquippedObject 16
ModAttackDamage 10 Weapon

Add 10 to the current player's equipped weapon attack damage.

See Also[edit | edit source]