Difference between revisions of "EVENT TYPE PLAYERLEVELUP"

From Dragon Age Toolset Wiki
Jump to: navigation, search
(info from DragonAgeGUISystem.cpp)
m (Added when the event fires and who causes it. Info based on sys_chargen.nss)
Line 2: Line 2:
 
{{event
 
{{event
 
|sourcefile=script.ldf
 
|sourcefile=script.ldf
|when=
+
|when=Fires every time the player requests to enter the levelup screen and causes the Chargen UI to show up.
 
|from=
 
|from=
 
|to= [[module]]
 
|to= [[module]]
Line 8: Line 8:
 
|sortkey=PLAYERLEVELUP
 
|sortkey=PLAYERLEVELUP
 
|object0name=oLevelUpCreature
 
|object0name=oLevelUpCreature
|object0desc=
+
|object0desc=The creature that fired the event.
 
}}
 
}}

Revision as of 08:00, 17 November 2009

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:
Fires every time the player requests to enter the levelup screen and causes the Chargen UI to show up.
Sent from:
Sent to:
module
Parameters:
  • Object 0: The creature that fired the event.

Usage

case EVENT_TYPE_PLAYERLEVELUP:
{
object oLevelUpCreature = GetEventObject(ev, 0); // The creature that fired the event.

// insert event-handling code here

break;
}