• 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.

Help please?

Status
Not open for further replies.
Level 3
Joined
Sep 28, 2012
Messages
21
How do I make it so if a certain item (x) is bought then the music stops, waits 2 seconds, then plays a different music? Help is appreciated.
 
Level 12
Joined
Sep 11, 2011
Messages
1,176
How do I make it so if a certain item (x) is bought then the music stops, waits 2 seconds, then plays a different music? Help is appreciated.

1. Create a Timer Variable.
2.
  • Bought Item
    • Events
      • Unit - A unit Sells an item (from shop)
    • Conditions
      • (Item-type of (Sold Item)) Equal to Tome of Experience
    • Actions
      • Sound - Stop the currently playing music theme
      • Countdown Timer - Start tempTimer as a One-shot timer that will expire in 2.00 seconds
  • Play Any Music
    • Events
      • Time - tempTimer expires
    • Conditions
    • Actions
      • Sound - Play Music
 
Status
Not open for further replies.
Top