Skip to content

!(OR)

chimericchimeric Member Posts: 1,163
I have a situation where something bad happens to the player unless he is either shrewd (wise) or can foresee the outcome (intelligent). Either Wis or Int over 14 can prevent it and open the right dialogue option. But if the player has neither, I want him to see only the stupid option. I've never used OR with a negative, and it's kind of difficult to test. So, is this combination of triggers going to work for the BAD (stupid) response?

!OR(2) CheckStatGT(14,INT) CheckStatGT(14,WIS)

Comments

  • DavidWDavidW Member Posts: 823
    edited November 2018
    This won't work as coded, but it's easily fixed.

    As a matter of logic, NOT (A or B ) is equivalent to (NOT A) AND (NOT B )

    So just do

    !CheckStatGT(14,INT) !CheckStatGT(14,WIS)
    Post edited by DavidW on
  • chimericchimeric Member Posts: 1,163
    Hmm, that's true. Thanks.
  • GrimLefourbeGrimLefourbe Member Posts: 637
    A wild DavidW appears :o
Sign In or Register to comment.