Difference between revisions of "Itemproperty keyword"

From Dragon Age Toolset Wiki
Jump to: navigation, search
m
m (Updating links)
 
(3 intermediate revisions by the same user not shown)
Line 4: Line 4:
 
== Literals ==
 
== Literals ==
  
A literal is a textual representation of a particular value of a type.
+
There is no [[Scripting terminology#literal|literal]] for an itemproperty.
 
+
There is no literal for an itemproperty.
+
  
 
== Conversion ==
 
== Conversion ==
Line 43: Line 41:
 
[[Itemproperty functions]]
 
[[Itemproperty functions]]
  
[[Category: DAScript types]]
+
[[Category:Keywords]]

Latest revision as of 12:23, 15 August 2011

The itemproperty type represents a dynamic property which can be added to or removed from an item.

Literals

There is no literal for an itemproperty.

Conversion

There is no explicit or implicit conversion to or from an itemproperty.

Persistence

The following functions allow an itemproperty to exist outside of the scope of the current script by storing it on an object, effect or event:

The following functions allow an itemproperty which exists outside of the scope of the current script to be used in the current script by retrieving it from an object, effect or event:

Remarks

Item properties are added to an item using AddItemProperty and removed using RemoveItemProperty. An array of the item properties on an item can be retrieved using GetItemProperties.

Examples

void main()
{
    // uninitialised
    itemproperty ipDefault;
 
    // initialised using a function
    itemproperty ipExample = GetLocalItemProperty(OBJECT_SELF, "example");    
}

See Also

Itemproperty functions