• 🏆 Texturing Contest #33 is OPEN! Contestants must re-texture a SD unit model found in-game (Warcraft 3 Classic), recreating the unit into a peaceful NPC version. 🔗Click here to enter!
  • It's time for the first HD Modeling Contest of 2024. Join the theme discussion for Hive's HD Modeling Contest #6! Click here to post your idea!

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