Jump to content

Conditional logic - brain scrambled.


csbx

Recommended Posts

Trying to add (1) ~C * (A V B) to a condition check.

It seems to me that to include all possibilities, the condition on the other alternative needs to be

~( ~C * (A V B) ) == C V (~A * ~B)

If this is right all cases are covered. Does that look right ?

 

Second, what is the right form for these to take with the limitations of the conditions section as it is ?

 

Do I add (1) as

~C and

A or

~C and

B

 

What is the right way to expand these to have them in the right order ?

 

 

 

 

 

Link to comment
Share on other sites

Here's the thing: your issue arises from the fact, that how the game logic reads it, differs from the mathematical point of view. In mathematics an operation of conjunction has a priority over disjunction. The way the gents at Bethesda Game Studios see the world is built upon that disjuction here has an advantage over conjuction.

 

You tried to write it, based on math, and that would be correct (though overcomplicated). But taking into account what I have just told you, that wouldn't work as you intend it.

 

Here's how I would arranged the conditions (in correlation with game) if I was to implement this

-C * (A v B)

I would write:

Condition A == 1    OR
Condition B == 1    AND
Condition C == 0    AND

Here's the pic for your convinience:

 

 

UraED0p.jpg

 

 

Edited by werr92
Link to comment
Share on other sites

  • Recently Browsing   0 members

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