Difference between revisions of "EVENT TYPE CODEX CHANGED"
From Dragon Age Toolset Wiki
BryanDerksen (Talk | contribs) m |
BryanDerksen (Talk | contribs) (add a parameter from Journal.cpp) |
||
Line 12: | Line 12: | ||
|int2name=iDesc | |int2name=iDesc | ||
|int2desc=strref of the codex desc | |int2desc=strref of the codex desc | ||
+ | |string0name=sCodexResRef | ||
}} | }} |
Revision as of 21:29, 20 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
- String 0: [Undocumented]
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
string sCodexResRef = GetEventString(ev, 0); //
// insert event-handling code here
break;
}
{
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
string sCodexResRef = GetEventString(ev, 0); //
// insert event-handling code here
break;
}