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 (Fixing parameters)
 
(2 intermediate revisions 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 value of the specified property on a creature.
|param1type=object
+
|param1type   = object
|param1name=oCreature
+
|param1name   = oCreature
|param1desc=the creature whose property we want to set
+
|param1desc   = the creature whose property will be modified
|param1default=
+
|param1default =  
|param2type=int
+
|param2type   = int
|param2name=nProperty
+
|param2name   = nProperty
|param2desc=the property (stat) we want to modify
+
|param2desc   = the property whose value will be modified
|param2default=
+
|param2default =  
|param3type=float
+
|param3type   = float
|param3name=fNewValue
+
|param3name   = fNewValue
|param3desc=
+
|param3desc   = the value to be used
|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 to modify (BASE, CURRENT, MODIFIER)
|param4default=PROPERTY_VALUE_BASE
+
|param4default = PROPERTY_VALUE_BASE
|returntype=void
+
|returntype   = void
|returndesc=Returns oCreature's Attribute Value
+
|returndesc   =  
|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]]

Latest revision as of 14:02, 11 January 2015

Set the value of the specified property on a creature.

void SetCreatureProperty(
object oCreature,
int nProperty,
float fNewValue,
int nValueType = PROPERTY_VALUE_BASE
);
Parameters:
oCreature
the creature whose property will be modified
nProperty
the property whose value will be modified
fNewValue
the value to be used
nValueType
the type of value of the property 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