Author Topic: Help with Sound Firing in Events Tab  (Read 971 times)

DaveBullets

  • Jr. Member
  • **
  • Posts: 83
    • View Profile
Help with Sound Firing in Events Tab
« on: August 01, 2011, 10:36:50 PM »
I put in this formula in the events tab:

(state = 2) && (roundNum = 7 or 9 or 12) && (secondsLeft = 45) && (isRound = 1)

I want the sound to fire on rounds 7, 9, and 12, but when I run the tournament, the sound fires on ALL of the rounds...what am I doing wrong?

Stuart Murray

  • Hero Member
  • *****
  • Posts: 540
    • View Profile
Re: Help with Sound Firing in Events Tab
« Reply #1 on: August 02, 2011, 07:53:05 AM »
been a long time since I used an or in my variables but you have expressed it wrong:

(state = 2) && (secondsLeft = 45) && (isRound = 1) && ((roundNum = 7) or (roundNum = 9) or (roundNum = 12))
note the double brackets surrounding the or variables in order that the and variables are the first conditions that require to be satisfied

I had to load an old tourney to check that out:

(isRound) and (state = 2) and (secondsLeft = 63) and ((roundNum = 1) or (roundNum = 2) or (roundNum = 4) or (roundNum = 6) or (roundNum = 7) or (roundNum = 9) or (roundNum = 10) or (roundNum = 12) or (roundNum = 13) or (roundNum = 13) or (roundNum = 16) or (roundNum = 17) or (roundNum = 19) or (roundNum = 20) or (roundNum = 22) or (roundNum = 23) or (roundNum = 25) or (roundNum = 26) or (roundNum = 28) or (roundNum = 29))

Regards
Stuart
Stuart Murray

DaveBullets

  • Jr. Member
  • **
  • Posts: 83
    • View Profile
Re: Help with Sound Firing in Events Tab
« Reply #2 on: August 03, 2011, 05:53:16 AM »
Thanks again stuamurr.  That formula did exactly what I want it to do...