Jump to content

Is there Faction for prisoner NPC in jail? ( solved)


Recommended Posts

Hi I hope to add condition for current dialogue topic NPC, to check if the Actor is prisoner in jail or not.

(so, if the actor (NPC) in jail as prisoner, the dialogue topic will be shown)

 

Then I supposed, there may be faction to check it,, then I can use getInfaction as condtion check,, , but I can not find the faction for the purpose...

 

Then I tried to use another faction,,, , but can not find good way to check it for NPC...  Is there way to easy check it, like other factions, (isInBed etc) and get return value ? ?

What I hope to do is,, when I go jail, and there is prisoner, I hope to show the dialogue topic, with other condtion check >> it will start something..

 

any related advice is welcom...

 

Edited by greenmango12
Link to comment

NPC´s aren't supposed to be "Jailed" like the player can be, so there is no faction like this.

But for your case, you could use conditions like these:

isGuard != 1   AND

getParentCell = whiterunJailCell01 OR

getParentCell = RiftenJailCell01 OR

...

(Dont know the actual names of the Cells, so you'd have to check for yourself)

Link to comment
1 hour ago, Pamatronic said:

NPC´s aren't supposed to be "Jailed" like the player can be, so there is no faction like this.

But for your case, you could use conditions like these:

isGuard != 1   AND

getParentCell = whiterunJailCell01 OR

getParentCell = RiftenJailCell01 OR

...

(Dont know the actual names of the Cells, so you'd have to check for yourself)

Yes thanks, ?it seems what I needed.  I actualy planed to set cell,,  but hesitate,, to add conditions to avoid non captured NPC.. (isGuard etc),,  

(or I can not find good target to test it efficently)^^;

 

and after I ask about it,  I noticed, this condition maybe more useful, with mod,, which  generate or set NPC as prisoner  in jail.. but those mod already use some faction or effect for their captured NPC..

 

But I hoped to know, if there was already default Condtion Function / Faction to detect it.    So for default NPC prisoner in jail, I might need another way.. (or use your offered way thanks)

 

 

 

Edited by greenmango12
Link to comment
  • greenmango12 changed the title to Is there Faction for prisoner NPC in jail? ( solved)

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue. For more information, see our Privacy Policy & Terms of Use