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

[Trigger] What is MUI?

Status
Not open for further replies.
Level 25
Joined
Mar 23, 2008
Messages
1,813
Well, i know what MUI is. But how can you know if a trigger is MUI? What in the trigger is it that makes a spell MUI? Can someone explain this to me or link me to a tut or something (couldnt find one myself). Beacuse it would be really annoying to post every spell of mine in a thread here just so ppl could tell me if its MUI.
 
Level 8
Joined
Dec 16, 2007
Messages
252
Level 9
Joined
Aug 28, 2005
Messages
271
MUI means Multi Units Instanceable. It means that a spell can work for many units at the same time. All Blizzrd spells are mui and it's a problem only for coded spells.

There is another MPI - thats Multi Players Instanceable - the spell works once per player - it's useful in Aos and arena maps.
 
Level 12
Joined
Jul 27, 2008
Messages
1,181
For MUI spells you must:
a )avoid waits (not trouble if you do the next thing)
b )use arrays with many values and reset them when they reach the top
c )use locals (big time trouble, need jass)

To test MUI have 2 units cast the spell at the same time.
 
Level 25
Joined
Mar 23, 2008
Messages
1,813
What about if i have a passive spell, that has some percentage chance to trigger, that will be hard to test by using them at the same time, right? well i can show, and you can take a look and say if its MUI, i think i have got a pretty good idea of how it works, but just for sure :).

  • Rune of inscribed Lighting
    • Events
      • Unit - A unit Is attacked
    • Conditions
    • Actions
      • Set InscribedLightning = (Random integer number between 1 and 100)
      • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
        • If - Conditions
          • InscribedLightning Less than or equal to 8
          • (Level of Rune of inscribed Lighting for (Attacked unit)) Equal to 1
        • Then - Actions
          • Unit - Create 1 Inscribed Lightning Dummy for (Owner of (Attacked unit)) at (Position of (Attacked unit)) facing Default building facing degrees
          • Unit - Order (Last created unit) to Neutral Naga Sea Witch - Forked Lightning (Attacking unit)
        • Else - Actions
          • Do nothing
Does this work at the same time? The most of the spells i am doing atm is like this one, so would be good if i know how to make them work :)
 
Status
Not open for further replies.
Top