Sound played at point in leaderboard score

Fragglez

New Member
Reaction score
4
Heya,

okay, i have a problem with a trigger activating during game play.

the subject?

I want a sound to play when a player (8 players total in the game) reaches 165-170 (in between them somewhere) on the leader board score.

How does the game work?

You cast a spell on an enemy that grants +5 to your score.
An enemy can cast a spell on you which reduces your score by -1.
You die = you lose.
(the rest isn't important)
What do i want?

I want to make the sound play for only one time throughout the entire game for the first player that reaches the score position of 165,166,167,168,169, or 170 (whatever one they reach within there, because there's -1 and +5's in the game)

So.. heres the problem (or one of them, i think)

I have custom imported sound playing throughout the entire game. Will this sound over-ride the one playing throughout the entire game? (if i ever get it to work)

I need to find a working trigger to do this, I've tried this:

Code:
 Godlike sound
    Events
    Conditions
    Actions
        For each (Integer A) from 1 to 8, do (Actions)
            Loop - Actions
                If (All Conditions are True) then do (Then Actions) else do (Else Actions)
                    If - Conditions
                        Score[(Integer A)] Greater than or equal to 165
                    Then - Actions
                        Game - Display to (All players) the text: ((Name of (Player((Integer A)))) + is |cffff0000GODLIKE|r!!!!!)
                        Sound - Play GodLike <gen>
                        Trigger - Turn off (This trigger)
                    Else - Actions
                        Do nothing

but this doesn't work, for some reason.

Any suggestions or ideas on how to do this?

Thanks

~Fragglez
 

Joker(Div)

Always Here..
Reaction score
86
Can you post us the trigger that runs this trigger? Also, the "Do Nothing" function is not necesary. Just leave the else blank. I dont really see anything wrong with the trigger, so it must be the one that runs it
 

hell_knight

Playing WoW
Reaction score
126
Is Godlike sound a 3d sound cause if it is it needs to be played a certain point simply uncheck the box, oh and yes we need to see the trigger that runs the trigger which plays godlike sound.
 

Fragglez

New Member
Reaction score
4
Can you post us the trigger that runs this trigger?


so it must be the one that runs it



This is where i must have gone wrong.

I don't have a trigger that runs this. it's just a passive.

should it be something like this?

Code:
 GodLike sound player
    Events
        Time - Every 2.00 seconds of game time
    Conditions
    Actions
        Trigger - Run Godlike sound <gen> (checking conditions)

Is Godlike sound a 3d sound cause if it is it needs to be played a certain point simply uncheck the box, oh and yes we need to see the trigger that runs the trigger which plays godlike sound.


Hah it was a 3D sound, ty! i've changed it to non 3d

---------------------

Edit:

Okay. i tested it out and i got a screen that continued to spam godlike for everyone beyond the points every 2 seconds ( for interval times)

So i had put a trigger to turn off the running one.

I have finished it and it works perfectly!

Thank you!

+rep

~Fragglez
 
General chit-chat
Help Users
  • No one is chatting at the moment.

      The Helper Discord

      Staff online

      Members online

      Affiliates

      Hive Workshop NUON Dome World Editor Tutorials

      Network Sponsors

      Apex Steel Pipe - Buys and sells Steel Pipe.
      Top