Difference between revisions of "EVENT TYPE COMMAND COMPLETE"
From Dragon Age Toolset Wiki
BryanDerksen (Talk | contribs) m (sort key) |
BryanDerksen (Talk | contribs) (formatting) |
||
Line 1: | Line 1: | ||
− | + | {{event | |
− | + | |when= creature finishes doing a command(attack, special ability, spell, conversation, etc) | |
− | + | |from= [[Engine]] | |
− | + | |to= [[creature]]s, player | |
− | + | |creatorname=oActor | |
− | + | |creatordesc= creature acting | |
− | + | |int0name= nLastCommand | |
− | + | |int0desc= Type of the last command (e.g. COMMAND_TYPE_ATTACKED) | |
− | + | |int1name= nStatus | |
− | + | |int1desc= The status of the execution (COMMAND_SUCCESSFUL, etc) | |
+ | |int2name= nLastSubCommand | ||
+ | |int2desc= last sub command | ||
+ | |object0name = oTarget | ||
+ | |object0desc= The target that command was applied to | ||
+ | }} | ||
[[Category:Event types|COMMAND_COMPLETE]] | [[Category:Event types|COMMAND_COMPLETE]] |
Revision as of 17:28, 24 July 2009
- Source:
- [Undocumented]
- Sent when:
- creature finishes doing a command(attack, special ability, spell, conversation, etc)
- Sent from:
- Engine
- Sent to:
- creatures, player
- Parameters:
-
- Creator: creature acting
- Integer 0: Type of the last command (e.g. COMMAND_TYPE_ATTACKED)
- Integer 1: The status of the execution (COMMAND_SUCCESSFUL, etc)
- Integer 2: last sub command
- Object 0: The target that command was applied to
Usage
case EVENT_TYPE_COMMAND_COMPLETE:
{
object oActor = GetEventCreator(ev); // creature acting
int nLastCommand = GetEventInteger(ev, 0); // Type of the last command (e.g. COMMAND_TYPE_ATTACKED)
int nStatus = GetEventInteger(ev, 1); // The status of the execution (COMMAND_SUCCESSFUL, etc)
int nLastSubCommand = GetEventInteger(ev, 2); // last sub command
object oTarget = GetEventObject(ev, 0); // The target that command was applied to
// insert event-handling code here
break;
}
{
object oActor = GetEventCreator(ev); // creature acting
int nLastCommand = GetEventInteger(ev, 0); // Type of the last command (e.g. COMMAND_TYPE_ATTACKED)
int nStatus = GetEventInteger(ev, 1); // The status of the execution (COMMAND_SUCCESSFUL, etc)
int nLastSubCommand = GetEventInteger(ev, 2); // last sub command
object oTarget = GetEventObject(ev, 0); // The target that command was applied to
// insert event-handling code here
break;
}