Difference between revisions of "EVENT TYPE CHARGEN SELECT CLASS"
From Dragon Age Toolset Wiki
BryanDerksen (Talk | contribs) |
BryanDerksen (Talk | contribs) (parameters from sys_chargen) |
||
Line 2: | Line 2: | ||
{{event | {{event | ||
|sourcefile=script.ldf | |sourcefile=script.ldf | ||
− | |when= | + | |when=This fires when the player selects the icon corresponding to any of the available classes |
|from= | |from= | ||
|to= | |to= | ||
+ | |int0name=nClass | ||
+ | |int0desc= Constant CLASS_* integer | ||
+ | |int1name=bSelected | ||
+ | |int1desc=1: class selected, 0: class unselected | ||
}} | }} | ||
[[Category:Event types|CHARGEN_SELECT_CLASS]] | [[Category:Event types|CHARGEN_SELECT_CLASS]] | ||
[[Category:Character generation]] | [[Category:Character generation]] |
Revision as of 21:47, 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 when the player selects the icon corresponding to any of the available classes
- Sent from:
- Sent to:
- Parameters:
-
- Integer 0: Constant CLASS_* integer
- Integer 1: 1: class selected, 0: class unselected
Usage
case EVENT_TYPE_CHARGEN_SELECT_CLASS:
{
int nClass = GetEventInteger(ev, 0); // Constant CLASS_* integer
int bSelected = GetEventInteger(ev, 1); // 1: class selected, 0: class unselected
// insert event-handling code here
break;
}
{
int nClass = GetEventInteger(ev, 0); // Constant CLASS_* integer
int bSelected = GetEventInteger(ev, 1); // 1: class selected, 0: class unselected
// insert event-handling code here
break;
}