• 🏆 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!

Custom Sound set from existing sounds; No import?

Status
Not open for further replies.
Level 16
Joined
May 2, 2011
Messages
1,345
Hello Guys,
I want to make some new unit sound set, and I am aware that I should use one of the existing sound sets to make my sound set. But I am wondering, if I want to make the sound set from some sounds existing in warcraft already, in other unit's sound sets, do I have to export these sounds and importing them again and using that imported sound in my sound set? Or is there a way where I can use these existing sounds and putting them in any set I want? (and if I have to import, is there some path trick to just import pseudo file and set his path to the sounds I want? like can I just import 5.txt files and then set there custom path as Units/Arthas/YesAttack1 or something like that?)


What I exactly want to do is basically use the sounds existing in SylvanusWindrunner soundset as followis:
Particular Sound of my unit = Particular sound of the original set
what 1 (of my unit) = what 2 (of Sylvanus Windrunner)
what 2 = what 3
what 3 = pissed 1
pissed 1 = pissed 2
Yes 1 = what 1
Yes 2 = what 4
Attack 1 = Warcry
Attack 2 = pissed 3
attack 3 = pissed 4
Warcry = pissed 5


 
Level 3
Joined
Nov 1, 2012
Messages
27
left click the sound editor; right click the sound you want to use. Select "use as sound".
Now go to the trigger editor and the sound you want to use should be available there.
 
Level 16
Joined
May 2, 2011
Messages
1,345
Use Shandris soundset?
I did think of that, but I am not really a fond of her sound set, she sound more like a woman than Ranger

Look at sylvanus pissed 5 "COME TASTE THE WRATH OF THE ELVES" (which i will use to warcry)
and Shandris Warcry (Fa yer!) she just sound.... unporffesional ranger

Besides, I might even use shandris herself for the night elven hero so i gotta use another soundset.
 
Level 5
Joined
Nov 30, 2012
Messages
200
You could easily trigger it, I suppose. I don't think there would be any other way other than to re-import the sounds.

I used Shandris' sounds because I didn't spend the time to find Sylvanas' :p

Anyways, I made some triggers:

  • Init
    • Events
      • Map initialization
    • Conditions
    • Actions
      • -------- Pissed Sounds --------
      • Set SylvanasSounds[0] = ShandrisPissed1 <gen>
      • Set SylvanasSounds[1] = ShandrisPissed2 <gen>
      • -------- What Sounds --------
      • Set SylvanasSounds[2] = ShandrisWhat1 <gen>
      • Set SylvanasSounds[3] = ShandrisWhat2 <gen>
      • -------- Attack Sounds --------
      • Set SylvanasSounds[4] = ShandrisWarcry1 <gen>
      • -------- Yes Sounds --------
      • Set SylvanasSounds[5] = ShandrisYes1 <gen>
      • Set SylvanasSounds[6] = ShandrisYes2 <gen>
      • -------- Death Sound --------
      • Set SylvanasSounds[7] = ArcherDeath1 <gen>
      • Custom script: call DestroyTrigger( GetTriggeringTrigger() )
  • Add Selected Event
    • Events
      • Unit - A unit enters (Playable map area)
    • Conditions
      • (Unit-type of (Triggering unit)) Equal to Shandris
    • Actions
      • Trigger - Add to Shandris What Pissed <gen> the event (Unit - (Triggering unit) Is selected)
  • Pissed Delay
    • Events
      • Time - Every 2.00 seconds of game time
    • Conditions
    • Actions
      • Unit Group - Pick every unit in (Units of type Shandris) and do (Actions)
        • Loop - Actions
          • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
            • If - Conditions
              • (Custom value of Unit) Greater than 0
            • Then - Actions
              • Unit - Set the custom value of Unit to ((Custom value of Unit) + -1)
            • Else - Actions
              • Unit - Set the custom value of Unit to 0
  • Shandris What Pissed
    • Events
      • Unit - Shandris 0012 <gen> Is selected
    • Conditions
    • Actions
      • Trigger - Turn off (This trigger)
      • Set Unit = (Triggering unit)
      • Set Player = (Owner of Unit)
      • Unit - Set the custom value of Unit to ((Custom value of Unit) + 1)
      • Set Volume = 0.00
      • Custom script: if GetLocalPlayer() == udg_Player then
      • Set Volume = 100.00
      • Custom script: endif
      • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
        • If - Conditions
          • (Custom value of Unit) Greater than or equal to 5
        • Then - Actions
          • Set Int = (Random integer number between 0 and 1)
          • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
            • If - Conditions
              • (Custom value of Unit) Greater than 6
            • Then - Actions
              • Unit - Set the custom value of Unit to 0
            • Else - Actions
        • Else - Actions
          • Set Int = (Random integer number between 2 and 3)
      • Sound - Play SylvanasSounds[Int] at Volume% volume, attached to Unit
      • Wait for (Last played sound) to be 0.00 seconds from finished playing
      • Trigger - Turn on (This trigger)
  • Shandris Yes
    • Events
      • Unit - A unit Is issued an order targeting a point
    • Conditions
      • (Unit-type of (Ordered unit)) Equal to Shandris
      • Or - Any (Conditions) are true
        • Conditions
          • (Issued order) Equal to (Order(move))
          • (Issued order) Equal to (Order(patrol))
    • Actions
      • Trigger - Turn off (This trigger)
      • Set Unit = (Ordered unit)
      • Set Player = (Owner of Unit)
      • Set Int = (Random integer number between 5 and 6)
      • Set Volume = 0.00
      • Custom script: if GetLocalPlayer() == udg_Player then
      • Set Volume = 100.00
      • Custom script: endif
      • Sound - Play SylvanasSounds[Int] at Volume% volume, attached to Unit
      • Wait for (Last played sound) to be 0.00 seconds from finished playing
      • Trigger - Turn on (This trigger)
  • Shandris Warcry
    • Events
      • Unit - A unit Is issued an order targeting an object
    • Conditions
      • (Unit-type of (Ordered unit)) Equal to Shandris
      • Or - Any (Conditions) are true
        • Conditions
          • (Issued order) Equal to (Order(attack))
          • (Issued order) Equal to (Order(smart))
    • Actions
      • Trigger - Turn off (This trigger)
      • Set Unit = (Ordered unit)
      • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
        • If - Conditions
          • (Current order of Unit) Equal to (Order(attack))
        • Then - Actions
          • Set Int = (Random integer number between 4 and 4)
        • Else - Actions
      • Set Volume = 0.00
      • Custom script: if GetLocalPlayer() == udg_Player then
      • Set Volume = 100.00
      • Custom script: endif
      • Sound - Play SylvanasSounds[Int] at Volume% volume, attached to Unit
      • Wait for (Last played sound) to be 0.00 seconds from finished playing
      • Trigger - Turn on (This trigger)
  • Shandris Death
    • Events
      • Unit - A unit Dies
    • Conditions
      • (Unit-type of (Ordered unit)) Equal to Shandris
    • Actions
      • Trigger - Turn off (This trigger)
      • Set Unit = (Dying unit)
      • Set Int = 7
      • Sound - Play SylvanasSounds[Int] at 100.00% volume, attached to Unit
      • Wait for (Last played sound) to be 0.00 seconds from finished playing
      • Trigger - Turn on (This trigger)
Now, there are a few problems with this system. First, the portrait does not look like it's talking. Second, I couldn't get it to work when the unit moves. It plays no sound when you order her to move. Perhaps someone can help with that. Anyways, I really hope this works for you!

~Derdan
 
Status
Not open for further replies.
Top