Sound Help

Status
Not open for further replies.

DM Cross

You want to see a magic trick?
Reaction score
558
Never done sound stuff before...

Basically, this is more of a "fun" trigger.

I want to make it so that when a player types in a specified chat message, it places 1 little quote from a list of them (an array).

Now, I know the Event, but I can't seem to set Sounds to an array, or at least, not the ones I want. Can anyone help me out a bit?
 
For mine i just used:

Code:
          Events
             A player types -music1 as an exact match
          Conditions
          Actions
             Play ArthasTheme

Just when you goto the sound editor, remeber to do: Use as Music/Sound

But if your determined to use your Array trigger, than ignore this.
-Husky
 
Ah, ok, already working on it :) Thanks, I was just missing the Use as Sound/Music part :)

+Rep for you, husky ;)
 
Damn, doesn't work...

Code:
SetVoice
    Events
        Map initialization
    Conditions
    Actions
        Set Voice[1] = AcolytePissed3 <gen>
        Set Voice[2] = AcolytePissed5 <gen>
        Set Voice[3] = AcolytePissed7 <gen>
        Set Voice[4] = AcolytePissed8 <gen>
        Set Voice[5] = BloodElfMagePissed6 <gen>
        Set Voice[6] = CryptFiendPissed6 <gen>
        Set Voice[7] = DeathKnightPissed6 <gen>
        Set Voice[8] = EvilArthasPissed5 <gen>
        Set Voice[9] = HPitLordPissed1 <gen>
        Set Voice[10] = HPitLordPissed4 <gen>
        Set Voice[11] = HeroLichPissed5 <gen>
        Set Voice[12] = NecromancerPissed3 <gen>
        Set Voice[13] = NerubianCryptLordPissed4 <gen>
        Set Voice[14] = NerubianCryptLordPissed6 <gen>
        Set Voice[15] = ShadePissed6 <gen>
        Set Voice[16] = VarimathrasPissed3 <gen>
        Set Voice[17] = VarimathrasPissed4 <gen>
        Set Voice[18] = VarimathrasPissed7 <gen>
        Set Voice[19] = VarimathrasPissed8 <gen>
        Set Voice[20] = IllidanPissed7 <gen>

Code:
Voice
    Events
        Player - Player 1 (Red) types a chat message containing Speak as An exact match
        Player - Player 2 (Blue) types a chat message containing Speak as An exact match
    Conditions
        ((Name of (Triggering player)) Equal to Alexander) or ((Name of (Triggering player)) Equal to AlexanderStinda)
    Actions
        Sound - Play Voice[(Random integer number between 1 and 20)]

I was playing with my Single Player name of Alexander, so it shouldn't be the Condition. All the sounds are set to a variable... I was Player 1 (Red)

Why doesn't it work? :confused:

Also, if I just Play Music at Map Init, will it play and then stop, or start over?

If it just stops, how do I loop it?
 
Did you try it without the Condition? Try that first (just incase).
-Husky
 
Deleted the Condition and hit Test Map, but still doesn't Speak :(
 
Ahh, I think i know now. In your Sound Init, take a way, Map Initilization and make it: Elapsed Time is 1 second.
-Husky
 
Just tested it, both WITH and WITHOUT the String condition and no luck :(

By the way, do you know the answer to that other question? Do I have to Loop music, or will it just keep playing with Play <Theme>?
 
No, you dont need a Loop, it loops itself until you stop it.'

For the other part. I was saying, make your trigger look like this:
Code:
SetVoice
    Events
        Elasped Time is 1 second
    Conditions
    Actions
        Set Voice[1] = AcolytePissed3 <gen>
        Set Voice[2] = AcolytePissed5 <gen>
        Set Voice[3] = AcolytePissed7 <gen>
        Set Voice[4] = AcolytePissed8 <gen>
        etc...

Try that,
-Husky
 
Code:
SetVoice
    Events
        Time - Elapsed game time is 1.00 seconds
    Conditions
    Actions
        Set Voice[1] = AcolytePissed3 <gen>
        Set Voice[2] = AcolytePissed5 <gen>
        Set Voice[3] = AcolytePissed7 <gen>
        Set Voice[4] = AcolytePissed8 <gen>
        Set Voice[5] = BloodElfMagePissed6 <gen>
        Set Voice[6] = CryptFiendPissed6 <gen>
        Set Voice[7] = DeathKnightPissed6 <gen>
        Set Voice[8] = EvilArthasPissed5 <gen>
        Set Voice[9] = HPitLordPissed1 <gen>
        Set Voice[10] = HPitLordPissed4 <gen>
        Set Voice[11] = HeroLichPissed5 <gen>
        Set Voice[12] = NecromancerPissed3 <gen>
        Set Voice[13] = NerubianCryptLordPissed4 <gen>
        Set Voice[14] = NerubianCryptLordPissed6 <gen>
        Set Voice[15] = ShadePissed6 <gen>
        Set Voice[16] = VarimathrasPissed3 <gen>
        Set Voice[17] = VarimathrasPissed4 <gen>
        Set Voice[18] = VarimathrasPissed7 <gen>
        Set Voice[19] = VarimathrasPissed8 <gen>
        Set Voice[20] = IllidanPissed7 <gen>

That's what I did ;)

And thank you for the Music answer :D
 
Alexander said:
Just tested it, both WITH and WITHOUT the String condition and no luck :(

:D
 
But the sayings from the sound sets can only be used as sounds -.- ...

I think...
 
Got it! :)

I had to go to all 20 sound variable and change one of the properties from Sound to Music, like Ace gave me the idea of doing :)

Thank you Husky, for your help, and Ace for yours! :)
 
Just read the caption at the bottom of that action. It says, "Sounds cannot be played at map initialization. Use the Sound Editor to create sound variables. Note that a 3D sound must be positioned to be played." So you cant use "Sound - Play Sound" actions you have to use the "Sound - Play Sound At Point" or "Sound - Play Sound On Unit" action if you're going to be using those 3D sounds.

edit: Ok your way works too, would have been easier to just use the right action, though.
 
The Sounds weren't played at Map Init. They never were.

The only thing Map Init did at all was Set the Voices variable.

The Sounds played when I typed something in, not at times.

My Event was right, thank you.
 
Alexander said:
The Sounds weren't played at Map Init. They never were.

The only thing Map Init did at all was Set the Voices variable.

The Sounds played when I typed something in, not at times.

My Event was right, thank you.
did you even read what i said? i didnt say you cant play them at map initialization, i said 3D sounds have to be positioned to play. and i didnt say your event was wrong, i said your action was wrong. you dont have to mess with the sounds at all if you use the right action.
 
They're not 3D Sounds.

I wasn't trying to play them at Map Init, so I have no idea where you pulled that from.

Obviously my action is right if it works :)

Thank you Ace and Husky for your help.
 
Status
Not open for further replies.
General chit-chat
Help Users
  • No one is chatting at the moment.
  • Ghan Ghan:
    Bot readable, not human usable.
  • The Helper The Helper:
    got it
  • The Helper The Helper:
    Happy Thursday!
  • The Helper The Helper:
    Check out the new Featured Content feature we apparently got with the forum software upgrade! https://www.thehelper.net/featured/
  • The Helper The Helper:
    Also on the bottom right side bar we now have a Trending Content Box!
    +1
  • The Helper The Helper:
    Not on the Headline News page just on the Forums page can we get that Featured and Trending on the home page?
  • Ghan Ghan:
    Since the home page is technically a forum, it now shows on all forum views. Still in the sidebar.
    +1
  • The Helper The Helper:
    Happy Friday! Hope everyone has a fantastic day and an even better weekend!
  • The Helper The Helper:
    Happy Sunday!
  • The Helper The Helper:
    I lovc that I can post webp and X links now! :)
  • The Helper The Helper:
    Happy Thursday!
  • V-SNES V-SNES:
    Happy Friday!
    +1
  • The Helper The Helper:
    we were down for a minute - think a log file or something got too big
    +1
  • Ghan Ghan:
    The alerts say it was down for a while unfortunately.
  • Ghan Ghan:
    Didn't know what was going on while I was at work.
  • Ghan Ghan:
    Disk filled up with logs. Fixed now.
    +1
  • The Helper The Helper:
    not a problem at all thanks for getting us back up
  • The Helper The Helper:
    I think the bots are finding a way to get through the anubis
  • The Helper The Helper:
    Happy Wednesday Everyone! Hope everyone has a Fantastic Day!
    +1
  • The Helper The Helper:
    Yeah, stats are showing big bot influx like 12k page views.
  • Wizard Wizard:
    :wave:
    +1
  • Ghan Ghan:
    TH changed his avatar again. 6 more weeks of summer.
    +3
  • Wizard Wizard:
    lol
    +1
  • The Helper The Helper:
    Guys just a heads up I am going to be shutting the site down soon. I am just waiting on the NUON people to decide whether they want to transfer forum data and keep the discord. My email is [email protected] for anyone that wants to keep in touch and I have a facebook too. I will make an official post later. Love you guys and will miss everyone!
    +1
  • V-SNES V-SNES:
    Sent a pm @The Helper

The Helper Discord

Staff online

Members online

Affiliates

Hive Workshop NUON Dome World Editor Tutorials
Back
Top