EVENT TYPE SET PLOT
From Dragon Age Toolset Wiki
- Source:
- script.ldf
- Sent when:
- A plot is setting a plot flag
- Sent from:
- engine
- Sent to:
- plot script
- Parameters:
-
- Creator: owner of the plot table, should be a player
- Integer 1: bit flag number being affected
- Integer 2: the value about to be written (on a normal SET that should be '1', and on a 'clear' it should be '0')
- Integer 3: On SET call, the current flag value (can be either 1 or 0 regardless if it's a set or clear event)
- Integer 4: 1 if the current flag (Int 1) is defined, 0 for normal flag.
- String 0: plot GUID, defined as string constant
Usage
case EVENT_TYPE_SET_PLOT:
{
object oCreator = GetEventCreator(ev); // owner of the plot table, should be a player
int nFlag = GetEventInteger(ev, 1); // bit flag number being affected
int nValue = GetEventInteger(ev, 2); // the value about to be written (on a normal SET that should be '1', and on a 'clear' it should be '0')
int nOldValue = GetEventInteger(ev, 3); // On SET call, the current flag value (can be either 1 or 0 regardless if it's a set or clear event)
int nIsDefined = GetEventInteger(ev, 4); // 1 if the current flag (Int 1) is defined, 0 for normal flag.
string sPlot = GetEventString(ev, 0); // plot GUID, defined as string constant
// insert event-handling code here
break;
}
{
object oCreator = GetEventCreator(ev); // owner of the plot table, should be a player
int nFlag = GetEventInteger(ev, 1); // bit flag number being affected
int nValue = GetEventInteger(ev, 2); // the value about to be written (on a normal SET that should be '1', and on a 'clear' it should be '0')
int nOldValue = GetEventInteger(ev, 3); // On SET call, the current flag value (can be either 1 or 0 regardless if it's a set or clear event)
int nIsDefined = GetEventInteger(ev, 4); // 1 if the current flag (Int 1) is defined, 0 for normal flag.
string sPlot = GetEventString(ev, 0); // plot GUID, defined as string constant
// insert event-handling code here
break;
}
IMPORTANT: The flag value on a SET event is set only AFTER this script finishes running!