• 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.
  • Create a faction for Warcraft 3 and enter Hive's 19th Techtree Contest: Co-Op Commanders! Click here to enter!
  • Create a void inspired texture for Warcraft 3 and enter Hive's 34th Texturing Contest: Void! Click here to enter!
  • The Hive's 21st Texturing Contest: Upgrade is now concluded, time to vote for your favourite set of icons! Click here to vote!

[Spell] Adding voice line when using the ability

How do I fixed this, when using level 6 ability...
  • Ultimate Voice Line
    • Events
      • Unit - A unit Begins casting an ability
    • Conditions
      • (Ability being cast) Equal to Summon Water Elemental
    • Actions
      • For each (Integer A) from 1 to 256, do (Actions)
        • Loop - Actions
          • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
            • If - Conditions
              • (Ability being cast) Equal to Summon Water Elemental
            • Then - Actions
              • Sound - Play HOTSJainaUltimate <gen> at 100.00% volume, attached to (Casting unit)
            • Else - Actions
But nothing happened when testing on the game for my contest entry. Is there any solution?
 
Level 32
Joined
Aug 29, 2012
Messages
1,466
You want to play the sound 256 times? Why XD

That if/then/else is not necessary since you're already checking that it's summon water elemental in the first conditions check (and now you're checking 256 times, again, why is this a thing?)
The problem might come from the sound itself, did you check "3D sound" in the sound editor?
 

Uncle

Warcraft Moderator
Level 74
Joined
Aug 10, 2018
Messages
7,951
What Chaosium said. Your trigger is doing some very unnecessary things.

I think this is what you wanted?
  • Ultimate Voice Line
    • Events
      • Unit - A unit Starts the effect of an ability
    • Conditions
      • (Ability being cast) Equal to Summon Water Elemental
      • (Level of (Ability being cast) for (Triggering unit)) Equal 6
    • Actions
      • Sound - Play HOTSJainaUltimate <gen> at 100.00% volume, attached to (Triggering unit)
If you cast Summon Water Elemental and it's Level 6 (you spent 6 skill points on it), then it will play a sound on the casting unit.

If the Ability Level doesn't matter then delete that Condition. You also want to use the "Starts the effect of an ability" Event since "Begins casting" happens too early and can be cancelled.
 
Last edited:
Top