Jump to content

Help with logical conditions


vmsfallout

Recommended Posts

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

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 AND

Condition B = True AND

Condition C = True OR

Condition A = True AND

Condition D = True AND

Condition E = True AND

Condition 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 AND

Condition B = True AND

Condition C = True ENDOR

Condition A = True AND

Condition D = True AND

Condition E = True AND

Condition 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

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

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

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

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

  • Recently Browsing   0 members

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