EVENT TYPE COMMAND PENDING

From Dragon Age Toolset Wiki
Revision as of 17:00, 20 July 2009 by BryanDerksen (Talk | contribs) (sort key)

Jump to: navigation, search
  • Sent When: Fires at the beginning of the attack part of the attack command OR at the beginning of an ability execution. The attack command includes walk->orient->attack - this event fires right before the attack part. When this event is received, the script is supposed to check if we need to disable a modal talent, verify mana/stamina values, verify valid target, calculate an attack roll (hit/miss/critical) and then calculate damage and inform the engine of the results.
  • Sent From: Engine
  • Sent To: creatures, players

Parameters:

  • Creator: attacking creature
  • Object 0: creature triggering the command
  • Object 1: target creature, if applicable
  • Int 0: command ID of the pending command
  • Int 1: command sub-type, if applicable - used mostly for ability ID for CommandUseAbility.
  • Int 2: ResistenceCheckResult (set in ability_core.nss)