EVENT TYPE CHARGEN ASSIGN ABILITIES

From Dragon Age Toolset Wiki
Revision as of 21:53, 19 August 2009 by BryanDerksen (Talk | contribs) (properties from sys_chargen)

Jump to: navigation, search

The documentation on this page is incomplete, obsolete, or otherwise in need of a thorough review. The current content may provide a good starting point for this, but do not rely on its accuracy when using it to design content.

Source:
script.ldf
Sent when:
This fires whenever the player assings an ability (skill/talent/spell/specialization)
Sent from:
Sent to:
Parameters:
  • Integer 0: ABILITY_* constant integer. If <0 the ability is removed not added
  • Integer 1: If 1, we're dealing with a specialization, if 0 any other ability.

Usage

case EVENT_TYPE_CHARGEN_ASSIGN_ABILITIES:
{
int nAbiNo = GetEventInteger(ev, 0); // ABILITY_* constant integer. If <0 the ability is removed not added
int bSpecialization = GetEventInteger(ev, 1); // If 1, we're dealing with a specialization, if 0 any other ability.

// insert event-handling code here

break;
}