I keep seeing reference to how to fix this but no actual example scripts. I have no scripting experience at all so could someone please help me out. I have figured out how to do a lot in the last few days, including writing my own join script combined with my plot script but this keeps evading me. So far I understand that I need to clear the flags in a separate script, which I have made as a new plot script as follows
#include "log_h"
#include "utility_h"
#include "wrappers_h"
#include "plot_h"
#include "plt_fun_party"
#include "fun_consts_h"
// Space for easy reading
int StartingConditional()
{
event eParms = GetCurrentEvent();
int nType = GetEventType(eParms);
string strPlot = GetEventString(eParms, 0);
int nFlag = GetEventInteger(eParms, 1);
object oParty = GetEventCreator(eParms);
object oConversationOwner = GetEventObject(eParms, 0);
int nResult = FALSE;
object oPC = GetHero();
plot_GlobalPlotHandler(eParms);
if(nType == EVENT_TYPE_SET_PLOT)
{
int nValue = GetEventInteger(eParms, 2);
int nOldValue = GetEventInteger(eParms, 3);
switch(nFlag)
{
case PARTY_JOINED:
{
object oFollower = GetObjectByTag("FUN_LYNDRA");
WR_SetFollowerState(oFollower, FOLLOWER_STATE_ACTIVE, TRUE, 0, FALSE);
SetLocalInt(oFollower, CREATURE_REWARD_FLAGS, 0);
}
{
object oFollower = GetObjectByTag("FUN_SELENE");
WR_SetFollowerState(oFollower, FOLLOWER_STATE_ACTIVE, TRUE, 0, FALSE);
SetLocalInt(oFollower, CREATURE_REWARD_FLAGS, 0);
}
break;
}
}
plot_OutputDefinedFlag(eParms, nResult);
return nResult;
}
It compiles but does not allow XP gain. I know its probably totally wrong but as I said, I am no scripter hehe. It would be great if someone could help out with a sample of how set the params and clear the CREATURE_REWARD_FLAGS.
Sorry about the n00b question