Package conditions - help needed

Post » Mon Nov 19, 2012 3:34 am

I don't want my AI package on a particular NPC to work if the player is in jail but I cannot find a working condition to achieve this. I have tried using GetArrestedState but when I set that to zero the package plays in and out of jail. When I set it to anything else, it does not work anywhere.

I would assume that it would be one if the player was in jail or zero if the player was not in jail but if thats the case the condition is broken (or I misunderstand how it works). Can anyone else do a quick test to confirm this? Or suggest other methods to achieve this?
User avatar
Bad News Rogers
 
Posts: 3356
Joined: Fri Sep 08, 2006 8:37 am

Post » Mon Nov 19, 2012 3:48 pm

I don't want my AI package on a particular NPC to work if the player is in jail but I cannot find a working condition to achieve this. I have tried using GetArrestedState but when I set that to zero the package plays in and out of jail. When I set it to anything else, it does not work anywhere.

I would assume that it would be one if the player was in jail or zero if the player was not in jail but if thats the case the condition is broken (or I misunderstand how it works). Can anyone else do a quick test to confirm this? Or suggest other methods to achieve this?
IF I REMEMBER CORRECTLY (my CK not open at the mo)

You can change what the Condition is running "ON"

It is probably defaulted to run On-Subject ... which will test if your NPC is in Jail.

IF YOU CAN, change it to run on the player.

IF YOU CAN"T do that (because I mis-remember) then you'll need have some script (Maybe via Story Manager?) to detect when the player goes to jail and disable the relevant package on the relevant NPC (and reenable when player leaves/escapes Jail)
User avatar
Kelsey Hall
 
Posts: 3355
Joined: Sat Dec 16, 2006 8:10 pm

Post » Mon Nov 19, 2012 5:30 am

Yes, I have been running the conditions on the player. I think GetArrestedState is bugged. Using story manager is a good idea so thanks, I will give it a try. Otherwise I will just just put trigger boxes in the jail cells and attach a script to stop my queston trigger enter.
User avatar
Claire Jackson
 
Posts: 3422
Joined: Thu Jul 20, 2006 11:38 pm


Return to V - Skyrim