I’ve got a script set on an on enter bit for an area that works when I update my journal with the console from outside the area and enter. When I get the companion to join me before I leave ( she’s in the area with the script on it ), then update the journal and re enter it doesn’t work.
But when I update outside the area and enter without the companion joining up it works ! It seems to only work once ever when you enter. I wiped out the do once part completely and compiled it but it still did the same thing.
This is it…
void main()
{
object oPC=GetEnteringObject();
if(!GetIsPC(oPC))return;
int nInt;
nInt=GetLocalInt(oPC,"NW_JOURNAL_ENTRYgo_home");
if(nInt<2)return;
{
int DoOnce = GetLocalInt(OBJECT_SELF, GetTag(OBJECT_SELF));
if (DoOnce==TRUE) return;
SetLocalInt(OBJECT_SELF, GetTag(OBJECT_SELF), TRUE);
object oTarget;
oTarget=GetObjectByTag("marissa");
AssignCommand(oTarget,ActionStartConversation(oPC,"path_return",TRUE));
}
}
And it’s in a box ! First time ever ! Thanks andgalf. I had to go and read an old post to see how to do it, failed with the’’’ bit but used the button up above.
The companion’s tag is marissa but she’ll only talk when she’s not in the party and you’ve never entered that area before. I put in the include ginc companions thing at the beginning even though I didn’t know what it was or did ( I’d seen it in a script ) but it made no difference at all.
Any ideas ?