Author Topic: Sound Formula For blinds Going Up  (Read 2529 times)

Dweller

  • Newbie
  • *
  • Posts: 2
    • View Profile
Sound Formula For blinds Going Up
« on: October 02, 2009, 11:41:32 AM »
Hi, I am trying to create a formula for when the blinds goes up it plays the appropriate wav file. I created the formula.

"When a level starts roundNum 2 isRound 1,  play blinds50-100.wav"  

"When a level starts roundNum 3 isRound 1, play blinds100-200.wav".

My problem is that it only plays the wav file from round two. I have also noticed that the formulas are changing, when I go back to check them both rounds are showing roundNum 3 isRound 1

Thanks
« Last Edit: October 02, 2009, 02:11:12 PM by Dweller »

Corey Cooper

  • Administrator
  • Hero Member
  • *****
  • Posts: 5402
    • View Profile
Re: Sound Formula For blinds Going Up
« Reply #1 on: October 05, 2009, 09:43:42 AM »
Can you post the actual formula?

Dweller

  • Newbie
  • *
  • Posts: 2
    • View Profile
Re: Sound Formula For blinds Going Up
« Reply #2 on: October 05, 2009, 03:00:33 PM »
It's ok, I eventually got it working after a few hours of playing about with it.


bacchys

  • Newbie
  • *
  • Posts: 2
    • View Profile
Re: Sound Formula For blinds Going Up
« Reply #3 on: August 15, 2012, 04:52:25 PM »
Could you post it for those of us who haven't figured it out?

Kerry George DeVore

  • Newbie
  • *
  • Posts: 44
    • View Profile
Re: Sound Formula For blinds Going Up
« Reply #4 on: August 16, 2012, 10:50:10 AM »
Yes i would like to see it too.

Magic_fubu

  • Hero Member
  • *****
  • Posts: 1035
    • View Profile
Re: Sound Formula For blinds Going Up
« Reply #5 on: August 16, 2012, 12:22:33 PM »
Note: The following will be fully accurate if you're running TD3.

1. Go to the events tab.
2. Click New event.
3. Create a new event from scratch
4. Enter a description that's easy for you (When the second level begins, for example)
5. Trigger: A level starts
6. Conditions: roundNum=2 && isRound=1
7. Click on New Action.
8. Select Play Sound, and choose the wav file from the drop down box.

If the wav file isn't part of the sound library for TD, you'll have to add it first.

Testing via the dialogue box, I wasn't able to get the test to come back TRUE... however, I ran a mock tournament, and the test worked. If you have further issues, reply back and I'll see what I can do.
« Last Edit: August 16, 2012, 12:29:48 PM by Magic_fubu »
My cowboys shot down your rockets
---
If you send a request to me please send that you got me from here w/your TD name to confirm. Thanks!

Stuart Murray

  • Sr. Member
  • ****
  • Posts: 497
    • View Profile
Re: Sound Formula For blinds Going Up
« Reply #6 on: August 16, 2012, 04:37:53 PM »
or alternatively, if you have version 3:

Blinds
Trigger: A Level Starts
Conditions: isRound and (smallBlind = 150) and (bigBlind = 300) and (state = 2) and (roundNum > 1)
Actions: Play Sound; 150-300.wav

Antes
Trigger: The Clock Ticks
Conditions: isRound and (ante = 100) and (secondsElapsed = 6) and (state = 2) and (roundNum > 1)
Actions: Play Sound; A100.wav

That avoids the events file being dependant on the structure to announce the correct blinds, and allows different structures to be used with the same events file.

You can find the full events template for this here: http://www.thetournamentdirector.net/forums/index.php?topic=2293.0

Regards
Stuart
Stuart Murray

bacchys

  • Newbie
  • *
  • Posts: 2
    • View Profile
Re: Sound Formula For blinds Going Up
« Reply #7 on: September 01, 2012, 07:33:30 PM »
Thank you!

jodybingo

  • Hero Member
  • *****
  • Posts: 656
    • View Profile
    • Personal Web Site
Re: Sound Formula For blinds Going Up
« Reply #8 on: September 02, 2012, 11:26:28 AM »
I just finished programming sounds for some of my tournaments and made an embarrassing mistake. I was away from my desk when the blinds went up on the fifth level. I had a rather false sense of security when I saw the first 4 levels went well until....Level 5 was programmed with "The clock ticks" instead of "A level starts". After 5 seconds it was just pure noise and I ran faster than I have in the last 10 years.
I then went over the rest of my events and had 2 others check them one at a time after me to ensure it didn't happen again.