EVENT TYPE CHARGEN ASSIGN ABILITIES
From Dragon Age Toolset Wiki
Revision as of 20:13, 20 August 2009 by BryanDerksen (Talk | contribs) (info fromGUICharGenBase.cpp)
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:
- module
- Parameters:
-
- Creator: [Undocumented]
- 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.
- Object 0: [Undocumented]
Usage
case EVENT_TYPE_CHARGEN_ASSIGN_ABILITIES:
{
object oModule = GetEventCreator(ev); //
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.
object oCreature = GetEventObject(ev, 0); //
// insert event-handling code here
break;
}
{
object oModule = GetEventCreator(ev); //
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.
object oCreature = GetEventObject(ev, 0); //
// insert event-handling code here
break;
}