Difference between revisions of "EVENT TYPE CODEX CHANGED"

From Dragon Age Toolset Wiki
Jump to: navigation, search
(update with info from [[module_core)
m
Line 1: Line 1:
 
{{event
 
{{event
 
|sourcefile=script.ldf
 
|sourcefile=script.ldf
|when=
+
|when= A codex was added or changed (excludes tutorial codex)
 
|from=[[engine]]
 
|from=[[engine]]
 
|to=[[module]]
 
|to=[[module]]

Revision as of 18:48, 19 August 2009

Source:
script.ldf
Sent when:
A codex was added or changed (excludes tutorial codex)
Sent from:
engine
Sent to:
module
Parameters:
  • Integer 0: 1 if the codex is unlocked, else it is an update
  • Integer 1: strref of the codex title
  • Integer 2: strref of the codex desc

Usage

case EVENT_TYPE_CODEX_CHANGED:
{
int iPrevious = GetEventInteger(ev, 0); // 1 if the codex is unlocked, else it is an update
int iTitle = GetEventInteger(ev, 1); // strref of the codex title
int iDesc = GetEventInteger(ev, 2); // strref of the codex desc

// insert event-handling code here

break;
}