Difference between revisions of "UpdateCreatureProperty"
From Dragon Age Toolset Wiki
BryanDerksen (Talk | contribs) m (1 revision: Importing auto-generated function articles) |
m (Fixing parameters) |
||
(2 intermediate revisions by the same user not shown) | |||
Line 1: | Line 1: | ||
− | |||
{{dafunction | {{dafunction | ||
− | |name=UpdateCreatureProperty | + | |name = UpdateCreatureProperty |
− | |brief=Update the specified | + | |brief = Update the value of the specified property value on a creature. |
− | |param1type=object | + | |param1type = object |
− | |param1name=oCreature | + | |param1name = oCreature |
− | |param1desc=the creature whose property will be | + | |param1desc = the creature whose property will be modified |
− | |param2type=int | + | |param1default = |
− | |param2name=nProperty | + | |param2type = int |
− | |param2desc=the property | + | |param2name = nProperty |
− | |param3type=float | + | |param2desc = the property whose value will be modified |
− | |param3name=fNewValue | + | |param2default = |
− | |param3desc= | + | |param3type = float |
− | |param4type=int | + | |param3name = fNewValue |
− | |param4name=nValueType | + | |param3desc = the value to be added |
− | |param4desc=the type of value of the property | + | |param3default = |
− | |returntype=void | + | |param4type = int |
− | |returndesc= | + | |param4name = nValueType |
− | |sourcefile=script.ldf | + | |param4desc = the type of value of the property to modify (CURRENT, MODIFIER) |
− | |sourcemodule= | + | |param4default = |
+ | |returntype = void | ||
+ | |returndesc = | ||
+ | |sourcefile = script.ldf | ||
+ | |sourcemodule = | ||
}} | }} | ||
== Description == | == Description == | ||
<!-- This section contains the full description from the functions comments. Do not change unless you are confident these are incomplete or incorrect. --> | <!-- This section contains the full description from the functions comments. Do not change unless you are confident these are incomplete or incorrect. --> | ||
− | Updates (adds the given value to the current value) the specified value of the | + | Updates (adds the given value to the current value) the specified value of the selected property of a creature. |
− | selected property of a creature. | + | |
− | + | ||
+ | Only works for MODFIER and CURRENT values. See [[GetCreatureProperty]] for more details. | ||
<!-- == Remarks == --> | <!-- == Remarks == --> | ||
<!-- This section contains additional comments, observations and known issues. --> | <!-- This section contains additional comments, observations and known issues. --> | ||
− | |||
<!-- == Examples == --> | <!-- == Examples == --> | ||
<!-- This section contains examples transcluded from the snippet library. --> | <!-- This section contains examples transcluded from the snippet library. --> | ||
− | + | == See also == | |
− | + | ||
<!-- This section contains links to articles, functions or constant groups. --> | <!-- This section contains links to articles, functions or constant groups. --> | ||
+ | * [[SetCreatureProperty]] | ||
+ | * [[PROPERTY_VALUE_*]] | ||
− | [[Category: Stats functions]] | + | [[Category:Creature functions]] |
+ | [[Category:Stats functions]] |
Latest revision as of 14:02, 11 January 2015
Update the value of the specified property value on a creature.
- Parameters:
- oCreature
- the creature whose property will be modified
- nProperty
- the property whose value will be modified
- fNewValue
- the value to be added
- nValueType
- the type of value of the property to modify (CURRENT, MODIFIER)
- Returns:
- Nothing.
- Source:
- script.ldf
Description
Updates (adds the given value to the current value) the specified value of the selected property of a creature.
Only works for MODFIER and CURRENT values. See GetCreatureProperty for more details.