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

Its not MUI

Status
Not open for further replies.
Why is this spell not MUI?
  • EchoStompCast
    • Events
      • Unit - A unit Begins channeling an ability
    • Conditions
      • (Ability being cast) Equal to Echo Stomp
    • Actions
      • Set ESCaster = (Triggering unit)
      • Set ESCasterLoc = (Position of ESCaster)
      • Unit - Create 1 Tauren Chieften (Dummy) for (Owner of ESCaster) at ESCasterLoc facing (Facing of ESCaster) degrees
      • Set ESDummy[1] = (Last created unit)
      • Set ESDummyLoc = (Position of ESDummy[1])
      • Unit - Order ESDummy[1] to Night Elf Keeper Of The Grove - Tranquility
      • Unit - Add a 1.80 second Generic expiration timer to ESDummy[1]
      • Animation - Change ESDummy[1]'s vertex coloring to (100.00%, 100.00%, 100.00%) with 30.00% transparency
      • Countdown Timer - Start ESTimer as a One-shot timer that will expire in 1.60 seconds
  • EchoStompCancel
    • Events
      • Unit - A unit Stops casting an ability
    • Conditions
      • (Triggering unit) Equal to ESCaster
    • Actions
      • Unit - Remove ESDummy[1] from the game
      • Custom script: call RemoveLocation (udg_ESCasterLoc)
      • Custom script: call RemoveLocation (udg_ESDummyLoc)
  • EchoStompFinish
    • Events
      • Time - ESTimer expires
    • Conditions
    • Actions
      • Unit - Create 1 Tauren Chieften (Dummy Stomper) for (Owner of ESCaster) at ESCasterLoc facing (Facing of ESCaster) degrees
      • Set ESDummy[2] = (Last created unit)
      • Unit Group - Add ESDummy[2] to ESDummyGroup
      • Unit - Create 1 Tauren Chieften (Dummy Stomper) for (Owner of ESCaster) at ESDummyLoc facing (Facing of ESDummy[1]) degrees
      • Set ESDummy[3] = (Last created unit)
      • Unit Group - Add ESDummy[3] to ESDummyGroup
      • Unit Group - Pick every unit in ESDummyGroup and do (Actions)
        • Loop - Actions
          • Unit - Set level of Echo Stomp (Dummy Stomper) for (Picked unit) to (Level of Echo Stomp for ESCaster)
          • Animation - Change (Picked unit)'s vertex coloring to (100.00%, 100.00%, 100.00%) with 100.00% transparency
          • Unit - Add a 0.40 second Generic expiration timer to (Picked unit)
          • Unit - Order (Picked unit) to Orc Tauren Chieftain - War Stomp
      • Custom script: call RemoveLocation (udg_ESCasterLoc)
      • Custom script: call RemoveLocation (udg_ESDummyLoc)
 
Last edited:
Because it uses a timer. Timers don't provide MUI enhanced effects in GUI. Timers can result MUI effect only in Jass. Use a dummy unit and give it an expiration timer instead. When it dies, make the effects you want.
  • Trigger
  • Events
    • Unit - A unit dies
  • Conditions
    • (Unit-type of (Triggering unit)) Equal to Dummy
  • Actions
    • //Make your effects here, just like the trigger you posted
You also need hashtables or index system. ECaster is a global variable, so, it can't be MUI. You will need to save the caster to the dummy unit with the expiration timer, which will define the duration of the spell:
  • Hashtable - Save handle of (Triggering unit) as Key(caster) of (Key(Last created unit)) in Hashtable
 
Status
Not open for further replies.
Top