Difference between revisions of "Category talk:Conditions"
→Odd number of Conditions
imported>Falconerd |
imported>Falconerd |
||
Line 77: | Line 77: | ||
== Odd number of Conditions == | == Odd number of Conditions == | ||
I | The conditions I need are as follows: ('''''A''''') OR ('''''B''''' AND '''''C'''''). Now the only way I've managed this is with a whopping 6 conditions. | ||
With context: | |||
: A = 4 Pieces of Heavy Armour | |||
: B = 3 Pieces of Heavy Armour | |||
: C = Heavy Shield | |||
: Problem: Actor has either 4 pieces of heavy armour or 3 pieces of heavy armour and a shield | |||
: Solution: ('''''A''''' OR '''''B''''') AND ('''''A''''' OR '''''C''''') AND ('''''!A''''' OR '''''!B''''') | |||
: | : Explanation: Since A and B cannot be true at the same time, this works. I'm wondering if anyone knows a better way to do this. |