Difference between revisions of "EVENT TYPE CHARGEN START"
From Dragon Age Toolset Wiki
BryanDerksen (Talk | contribs) (split out of event) |
BryanDerksen (Talk | contribs) m (remove redundant category) |
||
(11 intermediate revisions by 2 users not shown) | |||
Line 1: | Line 1: | ||
− | + | {{needs review}} | |
+ | {{event | ||
+ | |sourcefile=script.ldf | ||
+ | |when= | ||
+ | |from= | ||
+ | |to=[[module]] | ||
+ | |tocategory1=module | ||
+ | |sortkey=CHARGEN_START | ||
+ | |int0name=nMode | ||
+ | |int0desc=the mode in which chargen was started, either 0 ("create") or 1 ("levelup"). | ||
+ | |object0name=oCreature | ||
+ | |object0desc=The creature going through character generation. | ||
+ | }} | ||
− | + | A range of event constants (nEvent >= EVENT_TYPE_CHARGEN_START && nEvent <= EVENT_TYPE_CHARGEN_END) that occur during character generation. | |
− | + | ||
− | + | ||
− | + | sys_chargen_engine defines the constants CHARGEN_MODE_CREATE = 0 and CHARGEN_MODE_LEVELUP = 1, nMode's values are referred to in this manner in the default core character generation scripts. | |
− | [[Category: | + | [[Category:Character generation]] |
Latest revision as of 00:45, 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:
- Sent from:
- Sent to:
- module
- Parameters:
-
- Integer 0: the mode in which chargen was started, either 0 ("create") or 1 ("levelup").
- Object 0: The creature going through character generation.
Usage
case EVENT_TYPE_CHARGEN_START:
{
int nMode = GetEventInteger(ev, 0); // the mode in which chargen was started, either 0 ("create") or 1 ("levelup").
object oCreature = GetEventObject(ev, 0); // The creature going through character generation.
// insert event-handling code here
break;
}
{
int nMode = GetEventInteger(ev, 0); // the mode in which chargen was started, either 0 ("create") or 1 ("levelup").
object oCreature = GetEventObject(ev, 0); // The creature going through character generation.
// insert event-handling code here
break;
}
A range of event constants (nEvent >= EVENT_TYPE_CHARGEN_START && nEvent <= EVENT_TYPE_CHARGEN_END) that occur during character generation.
sys_chargen_engine defines the constants CHARGEN_MODE_CREATE = 0 and CHARGEN_MODE_LEVELUP = 1, nMode's values are referred to in this manner in the default core character generation scripts.