Difference between revisions of "EVENT TYPE CHARGEN ASSIGN ABILITIES"
From Dragon Age Toolset Wiki
BryanDerksen (Talk | contribs) (Created page with '{{needs review}} {{event |sourcefile=script.ldf |when= |from= |to= }} CHARGEN_ASSIGN_ABILITIES Category:Character generation') |
BryanDerksen (Talk | contribs) m (remove redundant category) |
||
(3 intermediate revisions by 2 users not shown) | |||
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=module |
+ | |tocategory1=module | ||
+ | |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. | ||
+ | |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;
}