Difference between revisions of "EVENT TYPE GET PLOT"
From Dragon Age Toolset Wiki
BryanDerksen (Talk | contribs) m (|sourcefile=script.ldf) |
BryanDerksen (Talk | contribs) m (remove redundant category) |
||
(3 intermediate revisions by 3 users not shown) | |||
Line 1: | Line 1: | ||
{{event | {{event | ||
|sourcefile=script.ldf | |sourcefile=script.ldf | ||
− | |when= A plot is | + | |when= A plot is getting a plot flag |
|from= [[engine]] | |from= [[engine]] | ||
|to= plot script | |to= plot script | ||
+ | |tocategory1=plot | ||
+ | |sortkey=GET_PLOT | ||
|creatorname = oPlayer | |creatorname = oPlayer | ||
|creatordesc = owner of the plot table, should be a player | |creatordesc = owner of the plot table, should be a player | ||
Line 13: | Line 15: | ||
|int4desc= 1 if the current flag (Int 1) is defined, 0 for normal flag. | |int4desc= 1 if the current flag (Int 1) is defined, 0 for normal flag. | ||
}} | }} | ||
− | |||
− | |||
− |
Latest revision as of 01:12, 12 February 2010
- Source:
- script.ldf
- Sent when:
- A plot is getting 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 4: 1 if the current flag (Int 1) is defined, 0 for normal flag.
- String 0: plot GUID, defined as string constants
Usage
case EVENT_TYPE_GET_PLOT:
{
object oPlayer = GetEventCreator(ev); // owner of the plot table, should be a player
int nFlagAffected = GetEventInteger(ev, 1); // bit flag number being affected
int nDefined = GetEventInteger(ev, 4); // 1 if the current flag (Int 1) is defined, 0 for normal flag.
string sPlotGUID = GetEventString(ev, 0); // plot GUID, defined as string constants
// insert event-handling code here
break;
}
{
object oPlayer = GetEventCreator(ev); // owner of the plot table, should be a player
int nFlagAffected = GetEventInteger(ev, 1); // bit flag number being affected
int nDefined = GetEventInteger(ev, 4); // 1 if the current flag (Int 1) is defined, 0 for normal flag.
string sPlotGUID = GetEventString(ev, 0); // plot GUID, defined as string constants
// insert event-handling code here
break;
}