Difference between revisions of "SetCreatureProperty"

From Dragon Age Toolset Wiki
Jump to: navigation, search
m (1 revision: re-import with default parameter value parameters set)
m (Adding links and category, fixing text)
(One intermediate revision by the same user not shown)
Line 1: Line 1:
{{Generated with errors}}
 
 
{{dafunction
 
{{dafunction
|name=SetCreatureProperty
+
|name         = SetCreatureProperty
|brief=Set the specified value of a given property on a oCreature
+
|brief         = Set the specified value of a given property on a oCreature
|param1type=object
+
|param1type   = object
|param1name=oCreature
+
|param1name   = oCreature
|param1desc=the creature whose property we want to set
+
|param1desc   = the creature whose property we want to set
|param1default=
+
|param1default =  
|param2type=int
+
|param2type   = int
|param2name=nProperty
+
|param2name   = nProperty
|param2desc=the property (stat) we want to modify
+
|param2desc   = the property (stat) we want to modify
|param2default=
+
|param2default =  
|param3type=float
+
|param3type   = float
|param3name=fNewValue
+
|param3name   = fNewValue
|param3desc=
+
|param3desc   = the value the property will be set to
|param3default=
+
|param3default =  
|param4type=int
+
|param4type   = int
|param4name=nValueType
+
|param4name   = nValueType
|param4desc=the type of value of the property we want to modify (BASE, CURRENT, MODIFIER)
+
|param4desc   = the type of value of the property we want to modify (BASE, CURRENT, MODIFIER)
|param4default=PROPERTY_VALUE_BASE
+
|param4default = PROPERTY_VALUE_BASE
|returntype=void
+
|returntype   = void
|returndesc=Returns oCreature's Attribute Value
+
|returndesc   = Returns oCreature's Attribute Value
|sourcefile=script.ldf
+
|sourcefile   = script.ldf
|sourcemodule=
+
|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. -->
 
Sets the specified value of the selected property on a creature.  
 
Sets the specified value of the selected property on a creature.  
Doesnt work for TOTAL values. Use BASE instead. See GetCreatureProperty for more details
 
  
 +
It does not work for TOTAL values: use the BASE value instead. 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. -->
 +
* [[UpdateCreatureProperty]]
 +
* [[PROPERTY_VALUE_*]]
  
[[Category: Stats functions]]
+
[[Category:Creature functions]]
 +
[[Category:Stats functions]]

Revision as of 13:35, 11 January 2015

Set the specified value of a given property on a oCreature

void SetCreatureProperty(
object oCreature,
int nProperty,
float fNewValue,
int nValueType = PROPERTY_VALUE_BASE
);
Parameters:
oCreature
the creature whose property we want to set
nProperty
the property (stat) we want to modify
fNewValue
the value the property will be set to
nValueType
the type of value of the property we want to modify (BASE, CURRENT, MODIFIER)
Returns:

Nothing.

Source:

script.ldf

Description

Sets the specified value of the selected property on a creature.

It does not work for TOTAL values: use the BASE value instead. See GetCreatureProperty for more details.

See also