Difference between revisions of "EVENT TYPE COMMAND PENDING"
From Dragon Age Toolset Wiki
BryanDerksen (Talk | contribs) (split off of event) |
BryanDerksen (Talk | contribs) m (sort key) |
||
Line 11: | Line 11: | ||
*<b>Int 2:</b> ResistenceCheckResult (set in ability_core.nss) | *<b>Int 2:</b> ResistenceCheckResult (set in ability_core.nss) | ||
− | [[Category:Event types]] | + | [[Category:Event types|COMMAND_PENDING]] |
Revision as of 17:00, 20 July 2009
- 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)