1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.
  2. Compete in Concept Art Contest - Bounty Hunter . May the best artist's bounty hunter execute!
    Dismiss Notice
  3. The Modeling Mini-Contest #5 - Familiar is up! Compete to design a pet companion to a lonely WC3 Hero of your preference.
    Dismiss Notice
  4. The present for our Christmas Mini-Texturing Contest finally arrived. Check out the results!
    Dismiss Notice
  5. The 6th installment of our Music Contest just got fired up! Now with an Apocalyptic taste. Get started and compete in this musical battle!
    Dismiss Notice
  6. Looking to expand an altered melee race of yours? Join the Advanced Techtree Contest - Recycle, Revise, Reinvent contest!
    Dismiss Notice

Custom Sound set from existing sounds; No import?

Discussion in 'World Editor Help Zone' started by map designer, Jul 21, 2013.

  1. map designer

    map designer
    Joined:
    May 2, 2011
    Messages:
    513
    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

    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


     
  2. map designer

    map designer
    Joined:
    May 2, 2011
    Messages:
    513
    Bump Bump!
     
  3. Daffa the Mage

    Daffa the Mage
    Joined:
    Jan 30, 2013
    Messages:
    5,102
    Use Shandris soundset?
     
  4. Abextadoo

    Abextadoo
    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.
     
  5. map designer

    map designer
    Joined:
    May 2, 2011
    Messages:
    513
    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.
     
  6. Derdan

    Derdan
    Joined:
    Nov 30, 2012
    Messages:
    187
    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:

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

    Mythic
    Joined:
    Apr 24, 2012
    Messages:
    7,402
    ^Unit is ordered targeting a point.

    Anyways, you should not use UnitData because it's only for unit Indexers. Everything would be fine without setting it.