Difference between revisions of "EVENT TYPE ABILITY CAST IMPACT"

From Dragon Age Toolset Wiki
Jump to: navigation, search
(split from event)
 
(formatting)
Line 1: Line 1:
*<b>Sent When:</b> Fires for the moment of impact for every ability. This is where damage should be applied, fireballs explode, enemies get poisoned etc. We assume that stamina/mana have been deducted when the ability was triggered (COMMAND_PENDING stage)  
+
{{event
*<b>Sent From: engine</b>
+
|when=Fires for the moment of impact for every ability. This is where damage should be applied, fireballs explode, enemies get poisoned etc. We assume that stamina/mana have been deducted when the ability was triggered (COMMAND_PENDING stage)  
*<b>Sent To:</b>
+
|to=
 +
|from=engine
  
Parameters:
+
|object0name=
 
+
|object0desc=
*Object 1 - the item used to cast the ability (optional)
+
|object1name=oItem
*Object 2 - the object that the ability was targeted
+
|object1desc=the item used to cast the ability (optional)
 +
|object2name=oTarget
 +
|object2desc=the object that the ability was targeted
 +
}}
  
 
note: in case of a projectile impact, there might be more than one target (object 2+...) this allows doing things like lightning bolts going through targets, but this is not currently made use of in Dragon Age.
 
note: in case of a projectile impact, there might be more than one target (object 2+...) this allows doing things like lightning bolts going through targets, but this is not currently made use of in Dragon Age.
  
 
[[Category:Event types|ABILITY_CAST_IMPACT]]
 
[[Category:Event types|ABILITY_CAST_IMPACT]]

Revision as of 22:00, 23 July 2009

Source:
[Undocumented]
Sent when:
Fires for the moment of impact for every ability. This is where damage should be applied, fireballs explode, enemies get poisoned etc. We assume that stamina/mana have been deducted when the ability was triggered (COMMAND_PENDING stage)
Sent from:
engine
Sent to:
Parameters:
None.

Usage

case EVENT_TYPE_ABILITY_CAST_IMPACT:
{
object oItem = GetEventObject(ev, 1); // the item used to cast the ability (optional)
object oTarget = GetEventObject(ev, 2); // the object that the ability was targeted>

// insert event-handling code here

break;
}

note: in case of a projectile impact, there might be more than one target (object 2+...) this allows doing things like lightning bolts going through targets, but this is not currently made use of in Dragon Age.