Difference between revisions of "EVENT TYPE CHARGEN SELECT GENDER"

From Dragon Age Toolset Wiki
Jump to: navigation, search
(adding the parameter CID-78 mentions on talk)
m
 
(One intermediate revision by the same user not shown)
Line 1: Line 1:
 
{{needs review}}
 
{{needs review}}
 
{{event
 
{{event
|sourcefile=script.ldf
+
|sourcefile   = script.ldf
|when= This fires whenever the gender selection on the create a character screen is modified. It also fires when the screen is entered the first time, defaulting the character to male.
+
|sourcemodule =
|from=
+
|sortkey      = CHARGEN_SELECT_GENDER
|to=
+
|when         = This fires whenever the gender selection on the create a character screen is modified. It also fires when the screen is entered the first time, defaulting the character to male.
|int0name=nGender
+
|from         =  
|int0desc=Character gender, GENDER_MALE or GENDER_FEMALE
+
|to           =
|object0name=oCreature
+
|tocategory1  =
|object0desc=The creature going through character generation.
+
|tocategory2  =  
 +
|int0name     = nGender
 +
|int0desc     = A [[GENDER_*]] constant
 +
|object0name = oCreature
 +
|object0desc = The creature going through character generation
 
}}
 
}}
  
[[Category:Event types|CHARGEN_SELECT_GENDER]]
 
 
[[Category:Character generation]]
 
[[Category:Character generation]]

Latest revision as of 19:16, 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 whenever the gender selection on the create a character screen is modified. It also fires when the screen is entered the first time, defaulting the character to male.
Sent from:
Sent to:
Parameters:
  • Integer 0: A GENDER_* constant
  • Object 0: The creature going through character generation

Usage

case EVENT_TYPE_CHARGEN_SELECT_GENDER:
{
int nGender = GetEventInteger(ev, 0); // A GENDER_* constant
object oCreature = GetEventObject(ev, 0); // The creature going through character generation

// insert event-handling code here

break;
}