• 🏆 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!
  • 🏆 Hive's 6th HD Modeling Contest: Mechanical is now open! Design and model a mechanical creature, mechanized animal, a futuristic robotic being, or anything else your imagination can tinker with! 📅 Submissions close on June 30, 2024. Don't miss this opportunity to let your creativity shine! Enter now and show us your mechanical masterpiece! 🔗 Click here to enter!

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