Author Topic: Tournament Variable  (Read 702 times)

Mac_09

  • Newbie
  • *
  • Posts: 27
    • View Profile
Tournament Variable
« on: July 29, 2012, 09:43:31 AM »
Is there a tournament variable that would tell me the duration of the current round or break?  I want to trigger an event at the mid-point of each round or break but they vary duration.

I was thinking of something like this -

secondsLeft = duration / 2

Corey Cooper

  • Administrator
  • Hero Member
  • *****
  • Posts: 5402
    • View Profile
Re: Tournament Variable
« Reply #1 on: July 30, 2012, 11:20:40 AM »
Version 3 has two variables: secondsLeft and secondsElapsed.  Add them together to get the full length of the current level.

secondsLeft = round((secondsLeft + secondsElapsed) / 2)

Mac_09

  • Newbie
  • *
  • Posts: 27
    • View Profile
Re: Tournament Variable
« Reply #2 on: July 31, 2012, 08:51:47 AM »
Thanks Corey!  Worked like a charm.