• Listen to a special audio message from Bill Roper to the Hive Workshop community (Bill is a former Vice President of Blizzard Entertainment, Producer, Designer, Musician, Voice Actor) 🔗Click here to hear his message!
  • Read Evilhog's interview with Gregory Alper, the original composer of the music for WarCraft: Orcs & Humans 🔗Click here to read the full interview.
  • It's time for the first HD Modeling Contest of 2025. Join the theme discussion for Hive's HD Modeling Contest #7! Click here to post your idea!

[Trigger] I need help with fixing these triggers

Status
Not open for further replies.
Level 3
Joined
Jan 5, 2008
Messages
26
Can someone help me find out what keeps making me crash? I'm trying to make it so that buying an item will make one of my imported music play (Pirate's of the Caribbean theme). Here's the trigger


  • Pirates Music
  • Events
    • Unit - A unit Sells an item (from shop)
  • Conditions
    • (Item-type of (Sold Item)) Equal to Pirate's of the Caribbean Theme
  • Actions
    • Item - Remove (Sold Item)
    • Sound - Stop music After fading
    • Countdown Timer - Start (Expiring timer) as a One-shot timer that will expire in 156.00 seconds
    • Wait 5.00 seconds
    • Set MusicTimer = (Last started timer)
    • Neutral Building - Remove Pirate's of the Caribbean Theme from all marketplaces
    • Sound - Play Pirates_of_the_Caribbean___Jack_Sparrow <gen>
  • Events
    • Time - MusicTimer expires
  • Conditions
  • Actions
    • Neutral Building - Add Pirate's of the Caribbean Theme to all marketplaces with 0 in stock and a max stock of 1
    • Sound - Play PursuitTheme <gen>
I'm also trying to make it so that the item is removed from the merchant so that it cannot be bought until the song is over. The reason I'm not using a cooldown on the item is because there are two of these merchant shops, so I don't want people buying the item from both of them. When the song finishes, I also want it to go back to playing the original music (PursuitTheme). Any help would be appreciated :grin:
 
Level 3
Joined
Jan 5, 2008
Messages
26
I figured out the problem. For some reason the countdown timer was making it crash. Nevertheless, thanks for trying to help.
 
Status
Not open for further replies.
Top