Guest Posted February 17, 2023 Posted February 17, 2023 (edited) So here I go again messing around with things that I don't know trying, failling, correcting still failing ? What I'm trying to achieve is to have an AI package start based on criterias like: - specific item(s) in players inventory must exist. - player must be sitting I've tried out the functions "getsitting" and getinfurniture (or something like that) but it doesn't seem to work. I'm not sure if there is a function in CK that could help with the item in inventory condition. Edited February 17, 2023 by Thor2000 solution suggest below by Yinkle & JobiWanUK
Yinkle Posted February 17, 2023 Posted February 17, 2023 1 hour ago, Thor2000 said: So here I go again messing around with things that I don't know trying, failling, correcting still failing ? What I'm trying to achieve is to have an AI package start based on criterias like: - specific item(s) in players inventory must exist. - player must be sitting I've tried out the functions "getsitting" and getinfurniture (or something like that) but it doesn't seem to work. I'm not sure if there is a function in CK that could help with the item in inventory condition. Tried something like this in the CK? Equivalent in Xedit: PlayerRef [PLYR:00000014].GetSitting = 1.000000 AND PlayerRef [PLYR:00000014].GetItemCount(Ale "Ale" [ALCH:00034C5E]) = 1.000000 AND
JobiWanUK Posted February 17, 2023 Posted February 17, 2023 I was about to reply with GetItemCount on the player too. You're probably best using > 0 rather than ==1 just in case the player has more than one. But GetSitting needs to be = 3 not 1 GetSitting - Creation Kit 1
Guest Posted February 17, 2023 Posted February 17, 2023 59 minutes ago, Yinkle said: Tried something like this in the CK? Equivalent in Xedit: PlayerRef [PLYR:00000014].GetSitting = 1.000000 AND PlayerRef [PLYR:00000014].GetItemCount(Ale "Ale" [ALCH:00034C5E]) = 1.000000 AND This is scary shit.. like deja vu. Yes... I did exaclty as you have it above. In addition, I had a condition for getinworldspace == 1. The package worked with only getinworldspace condition, but when I added getItemCount (and the ale, lol), it didn't. I also tried with GetSitting condition together with getinworldspace,but that didn't work either. I'm using a template based on patrol. Does that have anything to do with?
Guest Posted February 17, 2023 Posted February 17, 2023 56 minutes ago, JobiWanUK said: I was about to reply with GetItemCount on the player too. You're probably best using > 0 rather than ==1 just in case the player has more than one. But GetSitting needs to be = 3 not 1 GetSitting - Creation Kit Yeah used 1, but later tried 3 because of the link you have. Still it didn't work. One thing though.... my character is sitting on a tree block that is provided from the camping mod. Maybe that something to do with it too. Should probably just place a ordinary furniture chair outside and test with that instead.
Guest Posted February 17, 2023 Posted February 17, 2023 Ok, I must have done something sligthly different when I tried! With the settings you to suggest above it works like a charm ?. So many thanks to both of you. jobiwanuk and yinkle
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now