vmsfallout Posted March 19, 2013 Share Posted March 19, 2013 I have an effect for an ability I want to trigger under the following conditions: If A, B, C = true or If A, D, E, F = true I have to be missing something about how these OR/AND conditions work, because I can't get it straight. Still trying, though, but if someone has some useful tips I would appreciate it (already using www.creationkit.com) Link to comment Share on other sites More sharing options...
Korodic Posted March 19, 2013 Share Posted March 19, 2013 if (((A)&&(B)&&©)||((A)&&(D)&&(E)&&(F))); your codeendif(A) means A==true shorthand&& = AND|| = ORParentheses are for order/grouping.EDIT: ( C ) seems to have auto changed to © Link to comment Share on other sites More sharing options...
vmsfallout Posted March 19, 2013 Author Share Posted March 19, 2013 Is that for writing a script or using the Condition window in the CK? I am looking for the latter. The way I interpret what you wrote as appearing in the CK is like this: Condition A = True ANDCondition B = True ANDCondition C = True ORCondition A = True ANDCondition D = True ANDCondition E = True ANDCondition F = True AND Is this the order of Condition Items you are suggesting I place in the Conditions section of the Effect Item window? If so, I do not think it will work. This order simply asks for A and B and (C or A) and D and E and F. I circumvented the need for the code by just placing to identical effects in the ability, each with its own set of conditions. Maybe a little clumsy, but I can't figure out how to do it with just AND and OR conditions. It would be nice if they had something like ENDOR, as in: Condition A = True ANDCondition B = True ANDCondition C = True ENDORCondition A = True ANDCondition D = True ANDCondition E = True ANDCondition F = True AND This would make the first 3 its own group and next 4 their own group. Link to comment Share on other sites More sharing options...
Korodic Posted March 19, 2013 Share Posted March 19, 2013 ohhhhh I see what you're asking now.I think the OR is what separates the AND groupings if im not mistaken. That is essentially what I showed above as well but CK code wise.The first thing you wrote should work. Give it a playtest. Link to comment Share on other sites More sharing options...
vmsfallout Posted March 19, 2013 Author Share Posted March 19, 2013 I did try it and it seemed to have the result I posted earlier (it was read as 'A and B and (C or A) and D and E and F'). There was an issue with a previous save overriding certain changes I was making to my esp, so it is possible this would have worked. But I doubt it. I did plenty of trials before coming here to ask and nothing worked. If I didn't use my workaround (2 or more effects listed, each with different conditions), then I would try it again. But I got it working and I don't want to screw around with it. Thanks for the input though. Link to comment Share on other sites More sharing options...
Korodic Posted March 19, 2013 Share Posted March 19, 2013 scripting the magic effect might give you the results you want as an alternative. Link to comment Share on other sites More sharing options...
Hangman4358 Posted March 19, 2013 Share Posted March 19, 2013 when in the CK and looking at conditions you need to read it line by line each line only has to do with the next, unlike in scripts you can't combine multiple conditions into a "group" so with having conditions the way you say you want it the only real way to do it is through a script. Link to comment Share on other sites More sharing options...
vmsfallout Posted March 19, 2013 Author Share Posted March 19, 2013 I guess scripts are the way to go , but I don't know what I am doing when it comes to scripting. Thankfully, I am able to get the effect I want via the method I have mentioned, though. Thanks for the input, however. Saves me from going crazy trying to figure out the impossible. Link to comment Share on other sites More sharing options...
Recommended Posts