How to make NPCs stop a conversation

Post » Thu Jun 03, 2010 12:39 am

Hi,

I wrote a token to make NPCs flee (flee non combat package) to the chapel of the town. This works pretty good so far. They get their token, wenn they see the PC with vampireface and start running. In the cathedral/temple they get a wanderpackage and the token removes itself (removeme). They come out of the building after a short time and follow their standard routines. There is one situation when this does not work: Two NPCs having a conversation. They just pvssyr and after the conversation ends, they do nothing. My goal is that they start running immediately as well. I browsed the cswiki and tried around the last hours but cannot find a solution or workaround.

I need advice how I can make the stop talking immediately and execute the flee-package.

Thanks in advance

------------------------------------------------------------------------------------------------------------------------------

if (TokenOwner.GetInCell Anvil)
TokenOwner.addScriptPackage RMFleeFromVampireAnvilChapel
elseif (TokenOwner.GetInCell Bravil)
TokenOwner.addScriptPackage RMFleeFromVampireBravilChapel
elseif (TokenOwner.GetInCell Bruma)
TokenOwner.addScriptPackage RMFleeFromVampireBrumaChapel
elseif (TokenOwner.GetInCell Cheydinhal)
TokenOwner.addScriptPackage RMFleeFromVampireCheydinhalChapel
elseif (TokenOwner.GetInCell Chorrol)
TokenOwner.addScriptPackage RMFleeFromVampireChorrolChapel
elseif (TokenOwner.GetInCell IC)
TokenOwner.addScriptPackage RMFleeFromVampireICTempel
elseif (TokenOwner.GetInCell Leyawiin)
TokenOwner.addScriptPackage RMFleeFromVampireLeyawiinChapel
elseif (TokenOwner.GetInCell Skingrad)
TokenOwner.addScriptPackage RMFleeFromVampireSkingradChapel
else
TokenOwner.addScriptPackage RMFleeFromVampireKeepDistance
setPackDuration 600
endif

evaluatePackage
User avatar
Nick Pryce
 
Posts: 3386
Joined: Sat Jul 14, 2007 8:36 pm

Post » Thu Jun 03, 2010 6:12 am

Call forceFlee before adding your script package.
User avatar
Anna S
 
Posts: 3408
Joined: Thu Apr 19, 2007 2:13 am

Post » Thu Jun 03, 2010 5:34 am

Call forceFlee before adding your script package.


Thank you very much. Works great. :tops:
User avatar
Claudia Cook
 
Posts: 3450
Joined: Mon Oct 30, 2006 10:22 am


Return to IV - Oblivion