EVENT TYPE COMMAND COMPLETE

From Dragon Age Toolset Wiki
Revision as of 17:28, 24 July 2009 by BryanDerksen (Talk | contribs) (formatting)

Jump to: navigation, search
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;
}