• 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] Help Me To Convert This To MUI

Status
Not open for further replies.
Level 4
Joined
Mar 13, 2014
Messages
93
Help Me To Convert This To Mui
  • Flying Raijin LvL 2
    • Events
      • Unit - A unit Starts the effect of an ability
    • Conditions
      • (Ability being cast) Equal to Flying Raijin Level 2
    • Actions
      • Set Minato = (Casting unit)
      • Set MinatoOwner = (Owner of Minato)
      • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
        • If - Conditions
          • (Unit-type of Minato) Equal to Minato Namikaze
        • Then - Actions
          • Set EffectDT[1] = Minato
        • Else - Actions
          • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
            • If - Conditions
              • (Unit-type of Minato) Equal to Minato Namikaze (Kyuubi Mode)
            • Then - Actions
              • Set EffectDT[1] = Minato Kyuubi mode
            • Else - Actions
      • Set EffectDT[2] = Rasengan Effect
      • Set EffectDT[3] = Slam
      • Set EffectDT[4] = Smash
      • Set EffectDT[5] = Stomp
      • Set EffectDT[6] = Big Explode
      • Set EffectDT[7] = Dustwave
      • Set EffectDT[8] = Roar
      • Set EffectDT[9] = Explosion
      • Set EffectDT[10] = Kunai
      • Set EffectDT[11] = Dustwave
      • Set TargetUnitMinato = (Target unit of ability being cast)
      • Set LocMinato[1] = (Position of Minato)
      • Set LocMinato[2] = (Position of TargetUnitMinato)
      • Set MinatoReal[2] = (Real((Level of Flying Raijin Level 2 for Minato)))
      • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
        • If - Conditions
          • MinatoReal[2] Equal to 1.00
        • Then - Actions
          • Set MinatoReal[2] = ((Real((Agility of Minato (Include bonuses)))) x 30.00)
        • Else - Actions
          • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
            • If - Conditions
              • MinatoReal[2] Equal to 2.00
            • Then - Actions
              • Set MinatoReal[2] = ((Real((Agility of Minato (Include bonuses)))) x 35.00)
            • Else - Actions
              • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
                • If - Conditions
                  • MinatoReal[2] Equal to 3.00
                • Then - Actions
                  • Set MinatoReal[2] = ((Real((Agility of Minato (Include bonuses)))) x 40.00)
                • Else - Actions
      • Unit - Pause Minato
      • Unit - Pause TargetUnitMinato
      • Unit - Make Minato Invulnerable
      • Wait 0.01 seconds
      • Special Effect - Create a special effect attached to the left hand of Minato using newrasengan.mdx
      • Set Effect[1] = (Last created special effect)
      • Animation - Play Minato's spell one animation
      • Unit - Create 1 EffectDT[7] for MinatoOwner at LocMinato[1] facing LocMinato[1]
      • Set DummyUnits[1] = (Last created unit)
      • Unit - Add a 1.00 second Generic expiration timer to DummyUnits[1]
      • Unit - Create 1 EffectDT[8] for MinatoOwner at LocMinato[1] facing LocMinato[1]
      • Set DummyUnits[2] = (Last created unit)
      • Unit - Add a 1.00 second Generic expiration timer to DummyUnits[2]
      • Unit - Create 1 EffectDT[6] for MinatoOwner at LocMinato[1] facing LocMinato[1]
      • Set DummyUnits[3] = (Last created unit)
      • Unit - Add a 1.00 second Generic expiration timer to DummyUnits[3]
      • Set LocMinato[3] = (LocMinato[1] offset by 100.00 towards (Angle from LocMinato[1] to LocMinato[2]) degrees)
      • Wait 1.60 seconds
      • Unit - Create 1 EffectDT[10] for MinatoOwner at LocMinato[3] facing LocMinato[2]
      • Set DummyUnits[10] = (Last created unit)
      • Special Effect - Create a special effect attached to the origin of DummyUnits[10] using Abilities\Weapons\FaerieDragonMissile\FaerieDragonMissile.mdl
      • Set Effect[3] = (Last created special effect)
      • Animation - Play Minato's attack animation
      • Trigger - Turn on Kunai Move <gen>
  • Kunai Move FR lvl 2
    • Events
      • Time - Every 0.03 seconds of game time
    • Conditions
    • Actions
      • Set LocMinato[4] = (Position of DummyUnits[10])
      • Set LocMinato[5] = (LocMinato[4] offset by 50.00 towards (Angle from LocMinato[1] to LocMinato[2]) degrees)
      • Unit - Move DummyUnits[10] instantly to LocMinato[5]
      • Custom script: call RemoveLocation(udg_LocMinato[5])
      • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
        • If - Conditions
          • (Distance between LocMinato[4] and LocMinato[2]) Less than or equal to 100.00
        • Then - Actions
          • Unit - Hide Minato
          • Unit - Create 1 EffectDT[1] for MinatoOwner at LocMinato[2] facing LocMinato[2]
          • Set DummyUnits[4] = (Last created unit)
          • Animation - Play DummyUnits[4]'s spell two animation
          • Special Effect - Create a special effect attached to the left hand of DummyUnits[4] using newrasengan.mdx
          • Set Effect[2] = (Last created special effect)
          • Trigger - Turn on Fall Down <gen>
          • Trigger - Turn off (This trigger)
        • Else - Actions
  • Fall Down FR Lvl 2
    • Events
      • Time - Every 0.05 seconds of game time
    • Conditions
    • Actions
      • Set MinatoReal[1] = ((Current flying height of DummyUnits[4]) - 50.00)
      • Animation - Change DummyUnits[4] flying height to MinatoReal[1] at 100000.00
      • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
        • If - Conditions
          • (Current flying height of DummyUnits[4]) Equal to 150.00
        • Then - Actions
          • Trigger - Turn off (This trigger)
          • Special Effect - Destroy Effect[1]
          • Special Effect - Destroy Effect[2]
          • Special Effect - Destroy Effect[3]
          • Unit - Remove DummyUnits[4] from the game
          • Unit - Remove DummyUnits[10] from the game
          • Unit - Create 1 EffectDT[2] for MinatoOwner at LocMinato[2] facing LocMinato[2]
          • Set DummyUnits[5] = (Last created unit)
          • Unit - Add a 2.00 second Generic expiration timer to DummyUnits[5]
          • Unit - Create 1 EffectDT[3] for MinatoOwner at LocMinato[2] facing LocMinato[2]
          • Set DummyUnits[6] = (Last created unit)
          • Unit - Add a 2.00 second Generic expiration timer to DummyUnits[6]
          • Unit - Create 1 EffectDT[4] for MinatoOwner at LocMinato[2] facing LocMinato[2]
          • Set DummyUnits[7] = (Last created unit)
          • Unit - Add a 2.00 second Generic expiration timer to DummyUnits[7]
          • Unit - Create 1 EffectDT[5] for MinatoOwner at LocMinato[2] facing LocMinato[2]
          • Set DummyUnits[8] = (Last created unit)
          • Unit - Add a 2.00 second Generic expiration timer to DummyUnits[8]
          • Unit - Create 1 EffectDT[9] for MinatoOwner at LocMinato[2] facing LocMinato[2]
          • Set DummyUnits[9] = (Last created unit)
          • Unit - Add a 2.00 second Generic expiration timer to DummyUnits[9]
          • Unit - Create 1 EffectDT[11] for MinatoOwner at LocMinato[2] facing LocMinato[2]
          • Set DummyUnits[11] = (Last created unit)
          • Unit - Add a 2.00 second Generic expiration timer to DummyUnits[11]
          • Animation - Change DummyUnits[11]'s vertex coloring to (100.00%, 100.00%, 100.00%) with 30.00% transparency
          • Unit - Unpause Minato
          • Unit - Unpause TargetUnitMinato
          • Unit - Unhide Minato
          • Unit - Cause Minato to damage TargetUnitMinato, dealing MinatoReal[2] damage of attack type Spells and damage type Normal
          • Unit - Create 1 EffectDT[6] for MinatoOwner at LocMinato[1] facing LocMinato[1]
          • Set DummyUnits[12] = (Last created unit)
          • Unit - Add a 1.00 second Generic expiration timer to DummyUnits[12]
          • Animation - Change DummyUnits[12]'s vertex coloring to (100.00%, 100.00%, 0.00%) with 0.00% transparency
          • Custom script: call RemoveLocation(udg_LocMinato[1])
          • Custom script: call RemoveLocation(udg_LocMinato[2])
          • Custom script: call RemoveLocation(udg_LocMinato[3])
          • Custom script: call RemoveLocation(udg_LocMinato[4])
          • Unit - Make Minato Vulnerable
        • Else - Actions
 
Level 20
Joined
Jul 14, 2011
Messages
877
Tell us what you want the spell to do, maybe upload a map with the spell because its really annoying copying word by word 3 relatively long triggers.
Waits and MUI dont go together that good. I think they'd be ok if you use local variables, well not in this case.
Also waits are inaccurate, I think it was something like +0.27 of what is written.
 
Status
Not open for further replies.
Top