Author Topic: New Events Help  (Read 731 times)

MickejMouse

  • Newbie
  • *
  • Posts: 23
    • View Profile
New Events Help
« on: April 24, 2010, 09:37:53 AM »
Hi Everybody,

I'm a little stuck in my events...
I need 3 events:

Level Start Event:

It plays a sound when the level starts except on the first level.

Break Start Event:

When the breaks starts a sounds plays

1m still resume Event

if there's only 1 minute left in the break a sounds must play



I have all the sounds but i can't let my events work at the correct moment...
If someone could help me, i would be very pleased!

Stuart Murray

  • Sr. Member
  • ****
  • Posts: 497
    • View Profile
Re: New Events Help
« Reply #1 on: April 24, 2010, 09:59:54 AM »
Hi,

Level Starts Event:

You would need the following event:

Trigger : A Level Starts
Conditions : (isRound) and (state = 2) and (secondsLeft = 67) and ((roundNum = 2) or (roundNum = 3) or (roundNum = 4) or (roundNum = 5) or (roundNum = 6) or (roundNum = 7) or (roundNum = 8) or (roundNum = 9) or (roundNum = 10) or (roundNum = 11) or (roundNum = 12) or (roundNum = 13) or (roundNum = 14) or (roundNum = 15) or (roundNum = 16) or (roundNum = 17) or (roundNum = 18))

OR you can have the above trigger with no conditions but you would need a separate event for the start of the tourney with
trigger : The Tournament Starts
conditions : isRound and roundNum = 1

and the other rounds would be
trigger : a level starts
conditions : isRound

The tournament starts event would need to be above the other event in order that the TD finds it first and fires it rather than the other event for the rest of the levels.

Break Start Event

Trigger : a level starts
conditions : not isRound

isRound = During Round; not = not during round

1m left of break

trigger  : the clock ticks
conditions : (!isRound) && (state = 2) && (secondsLeft =60)

!isRound = break state = 2 = during tournament secondsLeft = amount of time left in round for event to fire

Hope this all helps!
Regards
Stuart
Stuart Murray

Corey Cooper

  • Administrator
  • Hero Member
  • *****
  • Posts: 5401
    • View Profile
Re: New Events Help
« Reply #2 on: April 26, 2010, 11:45:26 AM »
An easier way to express "when the level starts except on the first level" would be:

Trigger: A level starts
Conditions: isRound and (state = 2) and (roundNum != 1)

The Conditions explained in English (as stuarmurr was kind enough to do) is:

 "isRound" means it is currently a round (not a break)

 "(state = 2)" means during the tournament (not before the tournament or in a countdown or after the tournament)

"(roundNum != 1)" means round number does not equal 1, thus any round but round 1