About: EffectDamageReduction   Sponge Permalink

An Entity of Type : owl:Thing, within Data Space : 134.155.108.49:8890 associated with source dataset(s)

The EffectDamageReduction() NWScript command creates an effect that will provide damage reduction to the object to which it is applied. This effect can be applied to anything with hit points — namely creatures, placeables, and doors. It must be applied temporarily or permanently (not instantly).

AttributesValues
rdfs:label
  • EffectDamageReduction
rdfs:comment
  • The EffectDamageReduction() NWScript command creates an effect that will provide damage reduction to the object to which it is applied. This effect can be applied to anything with hit points — namely creatures, placeables, and doors. It must be applied temporarily or permanently (not instantly).
  • This function is used for physical Damage Reduction. The DRType and DRSubType define what sort of attack bypasses the reduction. For elemental Damage Resistance, use EffectDamageResistance. Note: Two of the constants that may be used in this function, DAMAGE_TYPE_ALL and DAMAGE_TYPE_BLUDGEONING as nDRSubType (if nDRType = DR_TYPE_DMGTYPE), are reversed. - Not quite correct, see below. Correct functioning of this function First thing to note is the script parameters as listed above are confusing to the new scripter and overall badly documented. This is the correct version:
param3desc
  • The total amount of damage than can be absorbed before the effect is used up. If set to zero, there is no limit.
dcterms:subject
dbkwik:nwn2/proper...iPageUsesTemplate
returns
Name
  • EffectDamageReduction
param
  • int nAmount
  • int nDamagePower
  • int nLimit
param2desc
  • A DAMAGE_POWER_* constant indicating the enhancement or attack bonus required to pierce the damage reduction.
param1desc
  • The amount by which each instance of physical damage is reduced.
param3default
  • 0(xsd:integer)
dbkwik:nwn/property/wikiPageUsesTemplate
abstract
  • This function is used for physical Damage Reduction. The DRType and DRSubType define what sort of attack bypasses the reduction. For elemental Damage Resistance, use EffectDamageResistance. Note: Two of the constants that may be used in this function, DAMAGE_TYPE_ALL and DAMAGE_TYPE_BLUDGEONING as nDRSubType (if nDRType = DR_TYPE_DMGTYPE), are reversed. - Not quite correct, see below. Correct functioning of this function First thing to note is the script parameters as listed above are confusing to the new scripter and overall badly documented. This is the correct version: effect EffectDamageReduction(int nAmount, int nDRSubType=DAMAGE_POWER_NORMAL, int nLimit=0, nDRType=DR_TYPE_MAGICBONUS); Parameter values are as described at the top except that nDmgBonus is the nDRSubType.
  • The EffectDamageReduction() NWScript command creates an effect that will provide damage reduction to the object to which it is applied. This effect can be applied to anything with hit points — namely creatures, placeables, and doors. It must be applied temporarily or permanently (not instantly).
Alternative Linked Data Views: ODE     Raw Data in: CXML | CSV | RDF ( N-Triples N3/Turtle JSON XML ) | OData ( Atom JSON ) | Microdata ( JSON HTML) | JSON-LD    About   
This material is Open Knowledge   W3C Semantic Web Technology [RDF Data] Valid XHTML + RDFa
OpenLink Virtuoso version 07.20.3217, on Linux (x86_64-pc-linux-gnu), Standard Edition
Data on this page belongs to its respective rights holders.
Virtuoso Faceted Browser Copyright © 2009-2012 OpenLink Software