Pocket Plane Group

Miscellany, Inc. => Infinity Engine Modding Q&A => Topic started by: Diana on June 06, 2005, 09:59:59 AM

Title: Preventing the Kickout dialog from Kicking in
Post by: Diana on June 06, 2005, 09:59:59 AM
When Jaheira leaves the group after being collected the harper Merona her kickout dialog doesn't activate.  I would like to do the same for an NPC that leaves the group on his own.  In looking at JaheiraJ.d I see the following code:

ChangeAIScript("",DEFAULT)
SetLeavePartyDialogFile()
EscapeArea()

I always thought the SetLeavePartyDialogFile() would trigger the kickout speech so what prevents it in Jahaeira's case?  Also, since most of us used Ghrey's tutorial on npc making, wouldn't the equivalent of SetGlobal("VondoJoined","LOCALS") still be at 1 from his joning dialog or does it somehow magically get set to 0?

Thanks.
Title: Re: Preventing the Kickout dialog from Kicking in
Post by: jcompton on June 06, 2005, 11:45:53 AM
Offhand I can't remember the answer to the first question, but to the second, the way you'd avoid any issues there is having something weighted at the top of your P dialogue file so that when the NPC is encountered again, the special dialogue for this situation will kick in rather than the generic "hello again" stuff.
Title: Re: Preventing the Kickout dialog from Kicking in
Post by: The_Swordalizer on June 06, 2005, 11:54:59 AM
Doesn't the EscapeArea() directly after the LeaveParty mean the script never gets to initiate dialogue before the charcter has left the area? I had a problem with this where a GLOBAL woldn't set if it was listed after EscapeArea(), because the character no longer existed and so couldn't perform the action.
Title: Re: Preventing the Kickout dialog from Kicking in
Post by: jcompton on June 06, 2005, 11:59:46 AM
That's likely the case. We have Kelsey run off a couple of times as well, you could peek at what we did.