Difference between revisions of "EVENT TYPE CHARGEN SELECT CLASS"

From Dragon Age Toolset Wiki
Jump to: navigation, search
(parameters from sys_chargen)
m (Updating template)
 
Line 1: Line 1:
 
{{needs review}}
 
{{needs review}}
 
{{event
 
{{event
|sourcefile=script.ldf
+
|sourcefile   = script.ldf
|when=This fires when the player selects the icon corresponding to any of the available classes
+
|sourcemodule =
|from=
+
|sortkey      = CHARGEN_SELECT_CLASS
|to=
+
|when         = This fires when the player selects the icon corresponding to any of the available classes
|int0name=nClass
+
|from         =  
|int0desc= Constant CLASS_* integer
+
|to           =
|int1name=bSelected
+
|tocategory1  =
|int1desc=1: class selected, 0: class unselected
+
|tocategory2  =  
 +
|int0name     = nClass
 +
|int0desc     = a [[CLASS_*]] constant
 +
|int1name     = bSelected
 +
|int1desc     = 1: class selected, 0: class unselected
 
}}
 
}}
  
[[Category:Event types|CHARGEN_SELECT_CLASS]]
 
 
[[Category:Character generation]]
 
[[Category:Character generation]]

Latest revision as of 19:07, 21 August 2011

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: a CLASS_* constant
  • Integer 1: 1: class selected, 0: class unselected

Usage

case EVENT_TYPE_CHARGEN_SELECT_CLASS:
{
int nClass = GetEventInteger(ev, 0); // a CLASS_* constant
int bSelected = GetEventInteger(ev, 1); // 1: class selected, 0: class unselected

// insert event-handling code here

break;
}