Author Topic: Different Break lengths  (Read 1427 times)

Jolly Bodger

  • Newbie
  • *
  • Posts: 22
    • View Profile
Different Break lengths
« on: October 29, 2012, 11:35:28 AM »
I have 3 different break lengths in one of the tournaments I'm organising. 15 mins for colouring up, 30 mins for a buffet and 10 mins comfort break. How do I create an event for each seperate break with different sound files?

JB

Corey Cooper

  • Administrator
  • Hero Member
  • *****
  • Posts: 6216
    • View Profile
Re: Different Break lengths
« Reply #1 on: October 29, 2012, 12:45:32 PM »
Assuming you want a sound file to play when each break starts:

- Create a new Event, select "Create a new event from scratch"
- Trigger: "A level starts"
- Conditions: "isBreak and breakNum=1"
- Add an Action to the event to play the sound file for the first break

Repeat, changing the Conditions to "isBreak and breakNum=2" and "isBreak and breakNum=3" for the second and third breaks, respectively.

Jolly Bodger

  • Newbie
  • *
  • Posts: 22
    • View Profile
Re: Different Break lengths
« Reply #2 on: October 31, 2012, 07:29:43 PM »
OK I’ve tried:

Trigger: “A level starts”
Conditions: “isBreak and breakNum=1”

Trigger: “A level starts”
Conditions: “(isBreak) and (breakNum = 1)”

Trigger: “The clock ticks”
Conditions: “(isBreak) and (breakNum = 1) and (secondsLeft = 899)”

Each time I get:

The conditions expression has an error. Are you sure you want to continue?

And obviously it doesn’t work.

I’ve got a funny suspicion that you’re going to tell me it’s because I’m using Ver. 2.5.13

JB

Corey Cooper

  • Administrator
  • Hero Member
  • *****
  • Posts: 6216
    • View Profile
Re: Different Break lengths
« Reply #3 on: November 01, 2012, 06:46:03 AM »
Yes, it is because you are using 2.5.13 and isBreak is not a valid variable in 2.5.13.  It wasn't added until version 3.  Luckily, it's easy to workaround.

(!isRound) and (breakNum = 1)

Jolly Bodger

  • Newbie
  • *
  • Posts: 22
    • View Profile
Re: Different Break lengths
« Reply #4 on: November 01, 2012, 12:21:01 PM »
That works. Thanks

JB