Difference between revisions of "UpdateCreatureProperty"
From Dragon Age Toolset Wiki
BryanDerksen (Talk | contribs) m (1 revision: Importing auto-generated function articles) |
m (Adding links and category, fixing text) |
||
Line 1: | Line 1: | ||
− | |||
{{dafunction | {{dafunction | ||
− | |name=UpdateCreatureProperty | + | |name = UpdateCreatureProperty |
− | |brief=Update the specified attribute base value on a oCreature | + | |brief = Update the specified attribute base value on a oCreature |
− | |param1type=object | + | |param1type = object |
− | |param1name=oCreature | + | |param1name = oCreature |
− | |param1desc=the creature whose property will be updated | + | |param1desc = the creature whose property will be updated |
− | |param2type=int | + | |param1default = |
− | |param2name=nProperty | + | |param2type = int |
− | |param2desc=the property (stat) whose value we want to update | + | |param2name = nProperty |
− | |param3type=float | + | |param2desc = the property (stat) whose value we want to update |
− | |param3name=fNewValue | + | |param2default = |
− | |param3desc= | + | |param3type = float |
− | |param4type=int | + | |param3name = fNewValue |
− | |param4name=nValueType | + | |param3desc = |
− | |param4desc=the type of value of the property we want to update (CURRENT, MODIFIER) | + | |param3default = |
− | |returntype=void | + | |param4type = int |
− | |returndesc=Returns oCreature's Attribute Value | + | |param4name = nValueType |
− | |sourcefile=script.ldf | + | |param4desc = the type of value of the property we want to update (CURRENT, MODIFIER) |
− | |sourcemodule= | + | |param4default = |
+ | |returntype = void | ||
+ | |returndesc = Returns oCreature's Attribute Value | ||
+ | |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 == --> | <!-- == 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:Creature functions]] | ||
[[Category: Stats functions]] | [[Category: Stats functions]] |
Revision as of 13:35, 11 January 2015
Update the specified attribute base value on a oCreature
- Parameters:
- oCreature
- the creature whose property will be updated
- nProperty
- the property (stat) whose value we want to update
- fNewValue
- [Undocumented]
- nValueType
- the type of value of the property we want to update (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.