Difference between revisions of "UpdateCreatureProperty"

From Dragon Age Toolset Wiki
Jump to: navigation, search
m (1 revision: Importing auto-generated function articles)
m (Fixing parameters)
 
(2 intermediate revisions by the same user not shown)
Line 1: Line 1:
{{Generated with errors}}
 
 
{{dafunction
 
{{dafunction
|name=UpdateCreatureProperty
+
|name         = UpdateCreatureProperty
|brief=Update the specified attribute base value on a oCreature
+
|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 updated
+
|param1desc   = the creature whose property will be modified
|param2type=int
+
|param1default =
|param2name=nProperty
+
|param2type   = int
|param2desc=the property (stat) whose value we want to update
+
|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 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 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
+
  
 +
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: 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.

void UpdateCreatureProperty(
object oCreature,
int nProperty,
float fNewValue,
int nValueType
);
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.

See also