Music List

killbuzz

Member
Reaction score
9
How do I use the music list feature in the trigger editor? There is the default "music" but it doesn't seem to do anything. I just need it to play normal wc3 music at random. Thanks in advance :D

Edit: Ok let me rephrase what i said: I want to make a trigger that when a player types: "-randommusic" random music will start playing, but i want it like a playlist so the player doesnt have to type it over, and over again.
 
you can make a sound variable with an array, and set every song you want to play as different array
then make a sound trigger that plays YourSound[random integer between (min num) and (max num)
 
you can make a sound variable with an array, and set every song you want to play as different array
then make a sound trigger that plays YourSound[random integer between (min num) and (max num)

*sigh* i was hoping for an eaisy way out but that's never the case with the editor lol, ok if noone else posts i'll try that. thx
 
Sound - Play Music Theme

if that's what your asking for, i was kinda confused

ok let me rephrase what i said: I want to make a trigger that when a player types: "-randommusic" random music will start playing, but i want it like a playlist so the player doesnt have to type it over, and over again.
 
I just realized, it's not really that hard, hers two triggers to do it
Edit: The coundown time in the second trigger must be longer than your longest song ^^ If they have very different lenghts, there can be abit bugs.

Code:
Initializion
    Events
        Map initialization
    Conditions
    Actions
        Set Music[1] = Comradeship <gen>
        Set Music[2] = Credits <gen>
        Set Music[3] = DarkAgents <gen>
        Set Music[4] = DarkVictory <gen>
        Set Music[5] = Doom <gen>
        Set Music[6] = HeroicVictory <gen>
        Set Music[7] = Human1 <gen>
        Set Music[8] = Human2 <gen>
        Set Music[9] = Human3 <gen>
        Set Music[10] = HumanDefeat <gen>
Okay hers other trigger
Code:
Music
    Events
        Player - Player 1 (Red) types a chat message containing -randommusic as An exact match
        Time - MusicTimer expires
    Conditions
    Actions
        Sound - Stop music Immediately
        Set MusicNumber = (Random integer number between 1 and 10)
        Sound - Play Music[MusicNumber]
        Countdown Timer - Start MusicTimer as a One-shot timer that will expire in 60.00 seconds
 
Thanks for the triggers, sadly the songs are different lengths (maybe i could put a condition that if no music is playing then play a random song...) Thanks again :D
EDIT: I just had a thought... what kind of variable is "music" that you used? (sound?)
 
if your variable is Sound Type, and all the fields are blank, or have no sounds to pick, then thats telling you its the wrong variable :p

whereas if you use a Sound variable, you'll be able to pick from the list.


EDIT: hm how does Sound - Music List work?
 
if your variable is Sound Type, and all the fields are blank, or have no sounds to pick, then thats telling you its the wrong variable :p

whereas if you use a Sound variable, you'll be able to pick from the list.


EDIT: hm how does Sound - Music List work?

Hmm well let me rephrase what I said: I want to know what "Variable Type" he used in the trigger. I tryed using sound, but no music appeared, im trying "sound type" now.
EDIT doesn't work. >.> And I can't seem to find Sound - Music List

(Just to make sure this is the variable list im wondering about)
 
its not sound type lol
did you go to the sound editor, and for the music/sound you want to use right on it and click "use as sound"
 
its not sound type lol
did you go to the sound editor, and for the music/sound you want to use right on it and click "use as sound"

yes i did try that, i had everything set up but for some reason it would not allow me to use the variable i had created for a random pick to play the sound. :( so thats why i was wondering about that list (in above post) My other concern is what if there are sounds playing when the player types "-randommusic" will that make that sound stop as well?

Edit: Ok here is my current trigger I am going to test it shortly:

PHP:
Music Init
    Events
        Map initialization
    Conditions
    Actions
        Set Music_List[1] = ArthasTheme <gen>
        Set Music_List[2] = BloodElfTheme <gen>
        Set Music_List[3] = Comradeship <gen>
        Set Music_List[4] = DarkAgents <gen>
        Set Music_List[5] = Doom <gen>
        Set Music_List[6] = Human1 <gen>
        Set Music_List[7] = Human2 <gen>
        Set Music_List[8] = Human3 <gen>
        Set Music_List[9] = HumanX1 <gen>
        Set Music_List[10] = IllidansTheme <gen>
        Set Music_List[11] = LichKingTheme <gen>
        Set Music_List[12] = NagaTheme <gen>
        Set Music_List[13] = NightElf1 <gen>
        Set Music_List[14] = NightElf2 <gen>
        Set Music_List[15] = NightElf3 <gen>
        Set Music_List[15] = NightElf3 <gen>
        Set Music_List[16] = NightElfX1 <gen>
        Set Music_List[17] = Orc1 <gen>
        Set Music_List[18] = Orc2 <gen>
        Set Music_List[19] = Orc3 <gen>
        Set Music_List[20] = OrcTheme <gen>
        Set Music_List[21] = OrcX1 <gen>
        Set Music_List[22] = PursuitTheme <gen>
        Set Music_List[23] = SadMystery <gen>
        Set Music_List[24] = Undead1 <gen>
        Set Music_List[25] = Undead2 <gen>
        Set Music_List[26] = Undead3 <gen>
        Set Music_List[27] = UndeadX1 <gen>
And to play them:
PHP:
Random Music
    Events
        Player - Player 1 (Red) types a chat message containing -randommusic as An exact match
    Conditions
    Actions
        Sound - Stop music After fading
        Sound - Stop (Last played sound) After fading
        Wait 2.00 seconds
        Sound - Play Music_List[(Random integer number between 1 and 27)]

EDIT: Test'd it and it works good... (wonder why it didnt work before....) Anyways thanks for your help and time +rep to you guys :)
 
General chit-chat
Help Users
  • The Helper The Helper:
    News portal has been retired. Main page of site goes to Headline News forum now
  • The Helper The Helper:
    I am working on getting access to the old news portal under a different URL for those that would rather use that for news before we get a different news view.
  • Ghan Ghan:
    Easily done
    +1
  • The Helper The Helper:
    https://www.thehelper.net/pages/news/ is a link to the old news portal - i will integrate it into the interface somewhere when i figure it out
  • Ghan Ghan:
    Need to try something
  • Ghan Ghan:
    Hopefully this won't cause problems.
  • Ghan Ghan:
    Hmm
  • Ghan Ghan:
    I have converted the Headline News forum to an Article type forum. It will now show the top 20 threads with more detail of each thread.
  • Ghan Ghan:
    See how we like that.
  • The Helper The Helper:
    I do not see a way to go past the 1st page of posts on the forum though
  • The Helper The Helper:
    It is OK though for the main page to open up on the forum in the view it was before. As long as the portal has its own URL so it can be viewed that way I do want to try it as a regular forum view for a while
  • Ghan Ghan:
    Yeah I'm not sure what the deal is with the pagination.
  • Ghan Ghan:
    It SHOULD be there so I think it might just be an artifact of having an older style.
  • Ghan Ghan:
    I switched it to a "Standard" article forum. This will show the thread list like normal, but the threads themselves will have the first post set up above the rest of the "comments"
  • The Helper The Helper:
    I don't really get that article forum but I think it is because I have never really seen it used on a multi post thread
  • Ghan Ghan:
    RpNation makes more use of it right now as an example: https://www.rpnation.com/news/
  • The Helper The Helper:
  • The Helper The Helper:
    What do you think Tom?
  • tom_mai78101 tom_mai78101:
    I will have to get used to this.
  • tom_mai78101 tom_mai78101:
    The latest news feed looks good
  • The Helper The Helper:
    I would like to see it again like Ghan had it the first time with pagination though - without the pagination that view will not work but with pagination it just might...
  • The Helper The Helper:
    This drink recipe I have had more than a few times back in the day! Mind Eraser https://www.thehelper.net/threads/cocktail-mind-eraser.194720/

      The Helper Discord

      Members online

      No members online now.

      Affiliates

      Hive Workshop NUON Dome World Editor Tutorials

      Network Sponsors

      Apex Steel Pipe - Buys and sells Steel Pipe.
      Top