• 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.
  • The Hive's 22nd Icon Contest: Creep Abilities is now concluded, time to vote for your favourite set of icons! Click here to vote!
  • ✅ The POLL for Hive's Texturing Contest #34 is OPEN! Vote for the TOP 3 SKINS! 🔗Click here to cast your vote!
  • ✅ The POLL for Hive's Techtree Contest #20 is OPEN! Vote for the TOP 3 FACTIONS! 🔗Click here to cast your 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?
 
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:
Back
Top