Difference between revisions of "EVENT TYPE ABILITY ACQUIRED"

From Dragon Age Toolset Wiki
Jump to: navigation, search
m (Updating template)
 
(One intermediate revision by one other user not shown)
Line 1: Line 1:
 
{{needs review}}
 
{{needs review}}
 
{{event
 
{{event
|sourcefile=script.ldf
+
|sourcefile = script.ldf
|when=
+
|when       =
|from=[[engine]]
+
|from       = [[engine]]
|to=creatures
+
|to         = creatures
|object0name= oCreator
+
|tocategory1 = creature
|object1name= oSourceItem
+
|sortkey    = ABILITY_ACQUIRED
|int0name= nAquired
+
|object0name = oCreator
|int0desc= 1: ability acquired. -1: ability lost.
+
|object1name = oSourceItem
|int1name=nAbilityId
+
|int0name   = nAquired
 +
|int0desc   = 1: ability acquired. -1: ability lost.
 +
|int1name   = nAbilityId
 
}}
 
}}
 
+
== Remarks ==
Note: this event is not fired for ABILITY_TYPE_ITEM.
+
This event is not fired for [[ABILITY_TYPE_*|ABILITY_TYPE_ITEM]].
 
+
[[Category:Event types|ABILITY_ACQUIRED]]
+
[[Category:Creature events|ABILITY_ACQUIRED]]
+

Latest revision as of 18:55, 21 August 2011

The documentation on this page is incomplete, obsolete, or otherwise in need of a thorough review. The current content may provide a good starting point for this, but do not rely on its accuracy when using it to design content.

Source:
script.ldf
Sent when:
Sent from:
engine
Sent to:
creatures
Parameters:

Usage

case EVENT_TYPE_ABILITY_ACQUIRED:
{
int nAquired = GetEventInteger(ev, 0); // 1: ability acquired. -1: ability lost.
int nAbilityId = GetEventInteger(ev, 1); //
object oCreator = GetEventObject(ev, 0); //
object oSourceItem = GetEventObject(ev, 1); //

// insert event-handling code here

break;
}

Remarks

This event is not fired for ABILITY_TYPE_ITEM.