Jenova23 Posted October 31, 2023 Posted October 31, 2023 (edited) Hey, I'm currently attempting to figure out a method of incorporating comments from the mod Babo Dialogue. My goal is to make these comments work with all female NPC as I find it unrealistic that NPC don't coment on there apperance, bodyshape, outfit or lack there of. Specifically, I want to modify the alias in order for the conditions to activate when a female NPC possesses the correct faction or keywords. I tried using a quest alias to trigger some dialogue but it doesn't appear to work on this dilaogue for example. Therefore, I'm curious if anyone has any suggestions regarding why the dialogue fails to trigger and how to prevent creatures from speaking the dialogue. I've also uploaded the mod for anyone that's interested in making this work. I would greatly appreciate it if someone could explain to me how to include keywords for NPCs. For instance, I was trying to add comments to the mod Buxom Wench Yuriana which I use the keyword ArmorCuirass or Clothing Body, but Yuriana comments on herself and I'm trying to exlude her from doing that or any female npc that is naked. I only want other npc to comment on her if they are dressed for example but for some reason if I add the keyword armorclothing to the subject it prevents them from speaking the line. Thank you. Screenshots for YurianaWenchEdit BaboInteractiveDia.rar Screenshots for Babo Dialogue BaboInteractiveDia.rar Edited October 31, 2023 by Jenova23
traison Posted October 31, 2023 Posted October 31, 2023 (edited) Not an expert on dialogue by any stretch of the imagination, however that quest alias looks odd. As far as I know, if you do not tick the "In Loaded Area" and "Closest" boxes you can get an actor from anywhere in Skyrim. Probably not what you had in mind here? Edit: And if you omit the Closest box, it could still pick up an NPC from very far away. The way "actor scanners" (as I call them) typically work is that you cast a cloak spell on the actor in whose vincinity you want to "scan", then have that cloak spell cast a spell that adds a keyword *THEN* look for that keyword while populating the quest alias. The cloak spell range determines the "scan range". Edited October 31, 2023 by traison
Jenova23 Posted October 31, 2023 Author Posted October 31, 2023 (edited) 49 minutes ago, traison said: Not an expert on dialogue by any stretch of the imagination, however that quest alias looks odd. As far as I know, if you do not tick the "In Loaded Area" and "Closest" boxes you can get an actor from anywhere in Skyrim. Probably not what you had in mind here? Edit: And if you omit the Closest box, it could still pick up an NPC from very far away. The way "actor scanners" (as I call them) typically work is that you cast a cloak spell on the actor in whose vincinity you want to "scan", then have that cloak spell cast a spell that adds a keyword *THEN* look for that keyword while populating the quest alias. The cloak spell range determines the "scan range". I have experimented with both checked and unchecked options, although I am uncertain. I'm thinking it lies with the keyword armorcuirass not working with NPC. When I delete the keyword, the line will play but I need it to preventing npc from commenting on themselves. Edited October 31, 2023 by Jenova23
traison Posted October 31, 2023 Posted October 31, 2023 The conditions in the 2nd image are probably not correct: Alias HasKeyword: ArmorClothing == 1 AND Alias HasKeyword: ArmorClothing == 0 Also the conditions in the 5th image will not check if the actor is naked, if that's the goal: Alias HasKeyword: ArmorCuirass == 0 OR Alias HasKeyword: ClothingBody == 0 As far as I can remember, practically all armor items have one of the above keywords, i.e. one of those will be always true.
Jenova23 Posted November 1, 2023 Author Posted November 1, 2023 (edited) On 10/31/2023 at 11:25 AM, traison said: The conditions in the 2nd image are probably not correct: Alias HasKeyword: ArmorClothing == 1 AND Alias HasKeyword: ArmorClothing == 0 Also the conditions in the 5th image will not check if the actor is naked, if that's the goal: Alias HasKeyword: ArmorCuirass == 0 OR Alias HasKeyword: ClothingBody == 0 As far as I can remember, practically all armor items have one of the above keywords, i.e. one of those will be always true. Well, I managed to get it to work, but when I try adding either Clothing body == 0.00 OR ArmorCuirass == 0.00 OR my follower or naked npc will still comment on themselves. I'm not sure if it has to do with my alias? Is it necassary to add both clothing body and armor cuirass? I'm not sure if maybe it's checking for both and that's why my follower is still speaking the line since she's still showing up as positive for one or the other. I'm simply just using a quest alias and targeting yuriana as the reference alias to test it out. Edited November 1, 2023 by Jenova23
traison Posted November 1, 2023 Posted November 1, 2023 https://www.creationkit.com/index.php?title=Operator_Reference#Logical_Operators ArmorCuirass == 0 AND ClothingBody == 0 You may have to restructure the entire condition list because of operator precedence though.
Jenova23 Posted November 2, 2023 Author Posted November 2, 2023 (edited) 7 hours ago, traison said: https://www.creationkit.com/index.php?title=Operator_Reference#Logical_Operators ArmorCuirass == 0 AND ClothingBody == 0 You may have to restructure the entire condition list because of operator precedence though. I'm not entirely sure why why you don't include "AND" or "OR" when typing ClothingBody == 0. Can you please clarify as this confuses me? My main issue is excluding NPCs from speaking that dialogue. I've tried adjusting the order, but I honestly don't understand why it dosen't work. Based on my understanding, it's best to use "AND" first because once "OR" triggers, it stops searching for anything else. I have attempted this multiple times but I am unsure how to exclude NPC females. Additionally, I also need help preventing dialogues for creatures. For instance, the chicken will also utter the same line that is intended for male human NPC. However, it seems to not work for females when I add a condition to exclude them if they are not wearing any clothing or amror on their torso. I'm assuming males will do the same thing once I try to prevent them from speaking if they are not wearing anything on there torso. Here's what I have currently tried. Edited November 2, 2023 by Jenova23
traison Posted November 2, 2023 Posted November 2, 2023 4 hours ago, Jenova23 said: I'm not entirely sure why why you don't include "AND" or "OR" when typing ClothingBody == 0. Because I do not remember how the logical operators are evaluated in the CK. My point is ArmorCuirass == 0 OR ClothingBody == 0 will not equal true when the actor is naked. ArmorCuirass == 0 AND ClothingBody == 0 will equal true when the actor is naked (unless you factor in additional complexity added by SLA). Changing the OR to an AND however changes the order in which the operators are evaluated, this is why I dropped you that link to the logical operators documentation. This may be a better link for explaining the problem. The example on that page states that what would typically be written as (a and b) or (c and d) becomes this mess in the CK: a or c and b or c and a or d and b or d. This is because we can't control operator precedence with parenthesis. So changing the OR to an AND would do this in your condition list: (EroticArmor == 1 OR ArmorCuirass == 0) AND (ClothingBody == 0 OR SLA_ArmorHalfNaked == 1 OR ...) What you'd need is: EroticArmor == 1 OR (ArmorCuirass == 0 AND ClothingBody == 0) OR SLA_ArmorHalfNaked == 1 OR ...
Jenova23 Posted November 5, 2023 Author Posted November 5, 2023 (edited) On 11/1/2023 at 11:37 PM, traison said: Because I do not remember how the logical operators are evaluated in the CK. My point is ArmorCuirass == 0 OR ClothingBody == 0 will not equal true when the actor is naked. ArmorCuirass == 0 AND ClothingBody == 0 will equal true when the actor is naked (unless you factor in additional complexity added by SLA). Changing the OR to an AND however changes the order in which the operators are evaluated, this is why I dropped you that link to the logical operators documentation. This may be a better link for explaining the problem. The example on that page states that what would typically be written as (a and b) or (c and d) becomes this mess in the CK: a or c and b or c and a or d and b or d. This is because we can't control operator precedence with parenthesis. So changing the OR to an AND would do this in your condition list: (EroticArmor == 1 OR ArmorCuirass == 0) AND (ClothingBody == 0 OR SLA_ArmorHalfNaked == 1 OR ...) What you'd need is: EroticArmor == 1 OR (ArmorCuirass == 0 AND ClothingBody == 0) OR SLA_ArmorHalfNaked == 1 OR ... Do you happen to know if the alias conditions should e set to subject or target when an NPC comments on another NPC? I assume it won't function properly if set as a subject, as that refers to the speaker. I noticed that all my aliases referring to the NPC being spoken to were set as subjects, which I believe is the main reason it wasen't working. Also, do you know what keyword I should use when referring to the NPC's clohting type? Should I be using wornhaskeyword or haskeyword? I just want to double check as there are times some of these functions often don't work. Edited November 5, 2023 by Jenova23
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