I hope I'm understanding you correctly, but I could never get that to work myself, so I changed my plot script to this:
-------------------------------------------
#include "log_h"
#include "utility_h"
#include "wrappers_h"
#include "plot_h"
#include "plt_yourplot"
int StartingConditional()
{
event eParms = GetCurrentEvent(); // Contains all input parameters
int nType = GetEventType(eParms); // GET or SET call
string strPlot = GetEventString(eParms, 0); // Plot GUID
int nFlag = GetEventInteger(eParms, 1); // The bit flag # being affected
object oParty = GetEventCreator(eParms); // The owner of the plot table for this script
object oConversationOwner = GetEventObject(eParms, 0); // Owner on the conversation, if any
int nResult = FALSE; // used to return value for DEFINED GET events
object oPC = GetHero();
plot_GlobalPlotHandler(eParms); // any global plot operations, including debug info
if(nType == EVENT_TYPE_SET_PLOT) // actions -> normal flags only
{
int nValue = GetEventInteger(eParms, 2); // On SET call, 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(eParms, 3); // On SET call, the current flag value (can be either 1 or 0 regardless if it's a set or clear event)
// IMPORTANT: The flag value on a SET event is set only AFTER this script finishes running!
switch(nFlag)
{
case MAKE_TEAM_HOSTILE:
{
//This causes all members of the bandit's "team" (the bandit and
//the other bar patrons) to turn hostile. Since they're in the presence
//of the player already, they'll immediately percieve him and initiate
//combat.
UT_TeamGoesHostile(101);
break;
}
}
}
else // EVENT_TYPE_GET_PLOT -> defined conditions only
{
}
plot_OutputDefinedFlag(eParms, nResult);
return nResult;
}
Modifié par Balumpus, 14 décembre 2009 - 01:05 .