Difference between revisions of "EVENT TYPE CHARGEN ASSIGN ABILITIES"

From Dragon Age Toolset Wiki
Jump to: navigation, search
(Created page with '{{needs review}} {{event |sourcefile=script.ldf |when= |from= |to= }} CHARGEN_ASSIGN_ABILITIES Category:Character generation')
 
(properties from sys_chargen)
Line 2: Line 2:
 
{{event
 
{{event
 
|sourcefile=script.ldf
 
|sourcefile=script.ldf
|when=
+
|when= This fires whenever the player assings an ability (skill/talent/spell/specialization)
 
|from=
 
|from=
 
|to=
 
|to=
 +
|int0name= nAbiNo
 +
|int0desc= ABILITY_* constant integer. If <0 the ability is removed not added
 +
|int1name= bSpecialization
 +
|int1desc= If 1, we're dealing with a specialization, if 0 any other ability.
 
}}
 
}}
  
 
[[Category:Event types|CHARGEN_ASSIGN_ABILITIES]]
 
[[Category:Event types|CHARGEN_ASSIGN_ABILITIES]]
 
[[Category:Character generation]]
 
[[Category:Character generation]]

Revision as of 21:53, 19 August 2009

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;
}