Difference between revisions of "EVENT TYPE CHARGEN ASSIGN ABILITIES"
From Dragon Age Toolset Wiki
BryanDerksen (Talk | contribs) (properties from sys_chargen) |
BryanDerksen (Talk | contribs) m (remove redundant category) |
||
(2 intermediate revisions by 2 users not shown) | |||
Line 4: | Line 4: | ||
|when= This fires whenever the player assings an ability (skill/talent/spell/specialization) | |when= This fires whenever the player assings an ability (skill/talent/spell/specialization) | ||
|from= | |from= | ||
− | |to= | + | |to=module |
+ | |tocategory1=module | ||
|int0name= nAbiNo | |int0name= nAbiNo | ||
|int0desc= ABILITY_* constant integer. If <0 the ability is removed not added | |int0desc= ABILITY_* constant integer. If <0 the ability is removed not added | ||
|int1name= bSpecialization | |int1name= bSpecialization | ||
|int1desc= If 1, we're dealing with a specialization, if 0 any other ability. | |int1desc= If 1, we're dealing with a specialization, if 0 any other ability. | ||
+ | |sortkey=CHARGEN_ASSIGN_ABILITIES | ||
+ | |creatorname=oModule | ||
+ | |object0name=oCreature | ||
}} | }} | ||
− | |||
− | |||
[[Category:Character generation]] | [[Category:Character generation]] |
Latest revision as of 00:47, 12 February 2010
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;
}