Difference between revisions of "EVENT TYPE CODEX CHANGED"

From Dragon Age Toolset Wiki
Jump to: navigation, search
(Created page with '{{needs review}} {{event |sourcefile=script.ldf |when= |from= |to= }} CODEX_CHANGED')
 
(update with info from [[module_core)
Line 1: Line 1:
{{needs review}}
 
 
{{event
 
{{event
 
|sourcefile=script.ldf
 
|sourcefile=script.ldf
 
|when=
 
|when=
|from=
+
|from=[[engine]]
|to=
+
|to=[[module]]
 +
|tocategory1=module
 +
|sortkey=CODEX_CHANGED
 +
|int0name=iPrevious
 +
|int0desc=1 if the codex is unlocked, else it is an update
 +
|int1name=iTitle
 +
|int1desc=strref of the codex title
 +
|int2name=iDesc
 +
|int2desc=strref of the codex desc
 
}}
 
}}
 
[[Category:Event types|CODEX_CHANGED]]
 

Revision as of 17:38, 19 August 2009

Source:
script.ldf
Sent when:
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;
}