Difference between revisions of "EVENT TYPE CHARGEN SELECT BACKGROUND"

From Dragon Age Toolset Wiki
Jump to: navigation, search
(parameter)
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 backgrounds
+
|sourcemodule =
|from=
+
|sortkey      = CHARGEN_SELECT_BACKGROUND
|to=
+
|when         = This fires when the player selects the icon corresponding to any of the available backgrounds
|int0name=nBG
+
|from         =  
|int0desc=Constant BACKGROUND_* integer
+
|to           =
 +
|tocategory1  =
 +
|tocategory2  =  
 +
|int0name     = nBG
 +
|int0desc     = a [[BACKGROUND_*]] constant
 
}}
 
}}
  
The code used in the Single Player module for this event is found in [[sys_chargen]].
+
== Remarks ==
 +
 
 +
The code used in the Single Player campaign for this event is found in [[sys_chargen]].
  
[[Category:Event types|CHARGEN_SELECT_BACKGROUND]]
 
 
[[Category:Character generation]]
 
[[Category:Character generation]]

Latest revision as of 19:03, 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 backgrounds
Sent from:
Sent to:
Parameters:

Usage

case EVENT_TYPE_CHARGEN_SELECT_BACKGROUND:
{
int nBG = GetEventInteger(ev, 0); // a BACKGROUND_* constant

// insert event-handling code here

break;
}

Remarks

The code used in the Single Player campaign for this event is found in sys_chargen.