• 🏆 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!
  • 🏆 Hive's 6th HD Modeling Contest: Mechanical is now open! Design and model a mechanical creature, mechanized animal, a futuristic robotic being, or anything else your imagination can tinker with! 📅 Submissions close on June 30, 2024. Don't miss this opportunity to let your creativity shine! Enter now and show us your mechanical masterpiece! 🔗 Click here to enter!

[Trigger] Enter region = play regional music

Status
Not open for further replies.
Level 1
Joined
Oct 9, 2017
Messages
2
Hey!

I just back to WC3 Editor and forgot many things. Please, explain me how I can create Region A with Music A, Region B with Music B and more? I don't know how to bind it; All I want is a music change when my unit enters a region.

What I did:
ff4f452f85.png
 
Level 1
Joined
Oct 9, 2017
Messages
2
Thanks for your reply.

My issue is double-playing music with your method: background music + ambience... any ideas? :)
 

Chaosy

Tutorial Reviewer
Level 40
Joined
Jun 9, 2011
Messages
13,184
How is that possible? Unless you got overlapping regions.

Regardless, your trigger should work.
However, might be a lot of triggers if you have a lot of regions. Though it could possibly be more logical to check where the camera is, and not where the unit is.

If you know jass I would suggest Creating a trigger with a script and attach the event/action to that, wont clutter your editor that way.
 

Dr Super Good

Spell Reviewer
Level 64
Joined
Jan 18, 2005
Messages
27,217
However, might be a lot of triggers if you have a lot of regions. Though it could possibly be more logical to check where the camera is, and not where the unit is.
So when one looks out the region the music changes... Basically one will only ever hear the start of songs!

To do this well is quite complex. First you are going to need to define which units control the music for each player. In an RPG this will be your main hero and only your main hero, not your summons, not your backpack, not your ability dummy units. Then one needs a timer per player which defines the minimum amount of time one must be in a region for music to change, this is to stop rapid music changes when moving along boarders. If your music is looping, consider randomizing the starting point. Apply a fade out of 1-2 seconds to avoid popping and other audible annoyances.
 
Status
Not open for further replies.
Top