EVENT TYPE CHARGEN SELECT RACE

From Dragon Age Toolset Wiki
Jump to: navigation, search

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 races.
Sent from:
Sent to:
Parameters:
  • Integer 0: A RACE_* constant
  • Integer 1: 1: race selected, 0: race unselected (unused)
  • Object 0: The creature going through character generation.

Usage

case EVENT_TYPE_CHARGEN_SELECT_RACE:
{
int nRace = GetEventInteger(ev, 0); // A RACE_* constant
int bSelected = GetEventInteger(ev, 1); // 1: race selected, 0: race unselected (unused)
object oCreature = GetEventObject(ev, 0); // The creature going through character generation.

// insert event-handling code here

break;
}