Difference between revisions of "EVENT TYPE ABILITY ACQUIRED"
From Dragon Age Toolset Wiki
BryanDerksen (Talk | contribs) (Created page with '{{needs review}} {{event |sourcefile=script.ldf |when= |from= |to= }} ABILITY_ACQUIRED') |
BryanDerksen (Talk | contribs) (update with information from ccreaturestats.cpp) |
||
Line 3: | Line 3: | ||
|sourcefile=script.ldf | |sourcefile=script.ldf | ||
|when= | |when= | ||
− | |from= | + | |from=[[engine]] |
− | |to= | + | |to=creatures |
+ | |object0name= oCreator | ||
+ | |object1name= oSourceItem | ||
+ | |int0name= nAquired | ||
+ | |int0desc= 1: ability acquired. -1: ability lost. | ||
+ | |int1name=nAbilityId | ||
}} | }} | ||
+ | |||
+ | Note: this event is not fired for ABILITY_TYPE_ITEM. | ||
[[Category:Event types|ABILITY_ACQUIRED]] | [[Category:Event types|ABILITY_ACQUIRED]] |
Revision as of 19:18, 20 August 2009
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:
-
- Integer 0: 1: ability acquired. -1: ability lost.
- Integer 1: [Undocumented]
- Object 0: [Undocumented]
- Object 1: [Undocumented]
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;
}
{
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;
}
Note: this event is not fired for ABILITY_TYPE_ITEM.