Difference between revisions of "EVENT TYPE CHARGEN SELECT CLASS"

From Dragon Age Toolset Wiki
Jump to: navigation, search
(Created page with '{{needs review}} {{event |sourcefile=script.ldf |when= |from= |to= }} CHARGEN_SELECT_CLASS')
 
m (Updating template)
 
(2 intermediate revisions by one other user not shown)
Line 1: Line 1:
 
{{needs review}}
 
{{needs review}}
 
{{event
 
{{event
|sourcefile=script.ldf
+
|sourcefile   = script.ldf
|when=
+
|sourcemodule =
|from=
+
|sortkey      = CHARGEN_SELECT_CLASS
|to=
+
|when         = This fires when the player selects the icon corresponding to any of the available classes
 +
|from         =  
 +
|to           =
 +
|tocategory1  =
 +
|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]]

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;
}