1. Updated Resource Submission Rules: All model & skin resource submissions must now include an in-game screenshot. This is to help speed up the moderation process and to show how the model and/or texture looks like from the in-game camera.
    Dismiss Notice
  2. DID YOU KNOW - That you can unlock new rank icons by posting on the forums or winning contests? Click here to customize your rank or read our User Rank Policy to see a list of ranks that you can unlock. Have you won a contest and still havn't received your rank award? Then please contact the administration.
    Dismiss Notice
  3. The Lich King demands your service! We've reached the 19th edition of the Icon Contest. Come along and make some chilling servants for the one true king.
    Dismiss Notice
  4. The 4th SFX Contest has started. Be sure to participate and have a fun factor in it.
    Dismiss Notice
  5. The poll for the 21st Terraining Contest is LIVE. Be sure to check out the entries and vote for one.
    Dismiss Notice
  6. The results are out! Check them out.
    Dismiss Notice
  7. Don’t forget to sign up for the Hive Cup. There’s a 555 EUR prize pool. Sign up now!
    Dismiss Notice
  8. The Hive Workshop Cup contest results have been announced! See the maps that'll be featured in the Hive Workshop Cup tournament!
    Dismiss Notice
  9. Check out the Staff job openings thread.
    Dismiss Notice
Dismiss Notice
60,000 passwords have been reset on July 8, 2019. If you cannot login, read this.

Trigger to Loop Music?

Discussion in 'World Editor Help Zone' started by babmer, Aug 4, 2008.

  1. babmer

    babmer

    Joined:
    Dec 11, 2007
    Messages:
    53
    Resources:
    0
    Resources:
    0
    Hey, having some trouble with this, im in need of a way to loop one piece of custom music i have while ingame (eg - keep is playing over and over until i stop it with a different trigger)

    I have tried using this current trigger:

    Sound - Clear Music List
    Sound - Stop Music Immediatly
    Sound - Set Music to 100%
    Sound - Set volume of (my music) to 100%
    Sound - Play (my music)

    I have ticked the loop button in the sound editor, but it has had no effect ingame, any help would be greatly appreciated!
     
  2. Need_O2

    Need_O2

    Joined:
    Aug 24, 2007
    Messages:
    2,880
    Resources:
    0
    Resources:
    0
    Time Elapsed 0.00 seconds
    Play X music
    Wait (duration of X music)
    Run This trigger

    There is a way to make music loop but this one but I forgot how to
     
  3. babmer

    babmer

    Joined:
    Dec 11, 2007
    Messages:
    53
    Resources:
    0
    Resources:
    0
    Im afraid it didnt work ;(.

    Any other suggestions or ideas?
     
  4. Captain Griffen

    Captain Griffen

    Joined:
    Nov 20, 2005
    Messages:
    1,001
    Resources:
    3
    Maps:
    3
    Resources:
    3
    Set the music list to your music?
     
  5. babmer

    babmer

    Joined:
    Dec 11, 2007
    Messages:
    53
    Resources:
    0
    Resources:
    0
    Have tried, didnt work ;(

    Goddamn it why does everyone else not have this problem but i do ;<
     
  6. Hemske

    Hemske

    Joined:
    Mar 23, 2008
    Messages:
    1,568
    Resources:
    58
    Icons:
    56
    Packs:
    1
    Spells:
    1
    Resources:
    58
    You need 2 triggers if i remember right:
    • Events
      • Time - Time elapsed is equal to 0.1 seconds
    • Conditions
    • Action
      • Trigger - Run *the other trigger*
      • Music - stop play the currently music theme

    And:
    • Events
    • Conditions
    • Actions
      • Music - Play your music
      • Wait - *the length of your music*
      • Trigger - Run this trigger

    This worked for me when i had music in one of my maps.
     
    Last edited: Aug 5, 2008
  7. XX_Noob

    XX_Noob

    Joined:
    Apr 14, 2008
    Messages:
    159
    Resources:
    1
    Maps:
    1
    Resources:
    1
    there is no need for 2 triggers, easily done with 1:
    • Trigger
      • Events
        • Time - Elapsed game time is 0.01 seconds
      • Conditions
      • Actions
        • Sound - Play babmersMusic <gen>
        • Custom script: call TriggerSleepAction ( 60.00)
        • Custom script: call RunTrigger ( GetTriggeringTrigger())
     
  8. Dr Super Good

    Dr Super Good

    Spell Reviewer

    Joined:
    Jan 18, 2005
    Messages:
    25,589
    Resources:
    3
    Maps:
    1
    Spells:
    2
    Resources:
    3
    You can not make the music play without pauses or breaks at one point due to the way WC3 buffers music. RDZ pointed this out to me and said the only way to make endless music was to play it in the sound channel which can get annoying to so people and is not recomended.
     
  9. babmer

    babmer

    Joined:
    Dec 11, 2007
    Messages:
    53
    Resources:
    0
    Resources:
    0
    Thank you all for the replies, im off to bed for now ;o. will try it all in the morning however.
     
  10. Hemske

    Hemske

    Joined:
    Mar 23, 2008
    Messages:
    1,568
    Resources:
    58
    Icons:
    56
    Packs:
    1
    Spells:
    1
    Resources:
    58
    Forgot to mention in my trigger that you have to stop play the currently used music first :/ I have edited it and know it should work.