• 🏆 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!
  • It's time for the first HD Modeling Contest of 2024. Join the theme discussion for Hive's HD Modeling Contest #6! Click here to post your idea!

Help me edit this spell into MUI spell

Status
Not open for further replies.
Level 3
Joined
Apr 8, 2016
Messages
58
how to edit spell into MUI?

for example i have a imported spell in my map, but it's not MUI Spell, so, what should i do with this trigger, where the part i must change?

(im noob for triggering spell and sorry for my bad english :grin:)


  • Skill Connect
    • Events
      • Unit - A unit Starts the effect of an ability
    • Conditions
      • (Ability being cast) Equal to Starbrust Stream
    • Actions
      • Set StarbrustCast = (Triggering unit)
      • Set StarbrustTarg = (Target unit of ability being cast)
      • Set StarbrustPoint[0] = (Position of StarbrustCast)
      • Set StarbrustPoint[1] = (Position of StarbrustTarg)
      • Set StarbrustAngle[0] = (Angle from StarbrustPoint[0] to StarbrustPoint[1])
      • Set StarbrustAngle[1] = (Angle from StarbrustPoint[1] to StarbrustPoint[0])
      • Set StarbrustPoint[2] = (StarbrustPoint[1] offset by -120.00 towards (Angle from StarbrustPoint[0] to StarbrustPoint[1]) degrees)
      • Set StarbrustCount = 0
      • Unit - Pause StarbrustTarg
      • Unit - Pause StarbrustCast
      • Unit - Make StarbrustTarg Invulnerable
      • Unit - Make StarbrustCast Invulnerable
      • Camera - Shake the camera for (Owner of StarbrustCast) with magnitude 30.00
      • Camera - Shake the camera for (Owner of StarbrustTarg) with magnitude 30.00
      • Wait 0.05 seconds
      • Animation - Play StarbrustCast's spell animation
      • Special Effect - Create a special effect attached to the hand left of StarbrustCast using war3mapImported\BlueCharge4.mdx
      • Set StarbrustSFX[1] = (Last created special effect)
      • Special Effect - Create a special effect attached to the hand right of StarbrustCast using war3mapImported\BlueCharge4.mdx
      • Set StarbrustSFX[0] = (Last created special effect)
      • Wait 0.05 seconds
      • Animation - Play StarbrustCast's attack animation
      • Animation - Change StarbrustCast's animation speed to 150.00% of its original speed
      • Unit - Move StarbrustCast instantly to StarbrustPoint[2]
      • Wait 0.70 seconds
      • Trigger - Turn on Skill Connect End <gen>
      • Custom script: call RemoveLocation(udg_StarbrustPoint[0])
      • Custom script: call RemoveLocation(udg_StarbrustPoint[1])
      • Custom script: call RemoveLocation(udg_StarbrustPoint[2])
Edited:
  • Skill Connect End
    • Events
      • Time - Every 0.17 seconds of game time
    • Conditions
    • Actions
      • Set StarbrustCount = (StarbrustCount + 1)
      • Set StarbrustPoint[0] = (Position of StarbrustCast)
      • Set StarbrustPoint[1] = (Position of StarbrustTarg)
      • Animation - Play StarbrustCast's attack 2 animation
      • Animation - Play StarbrustCast's attack 1 animation
      • Animation - Play StarbrustTarg's death animation
      • Unit - Create 1 SlashOne for (Owner of StarbrustCast) at StarbrustPoint[1] facing (Random angle) degrees
      • Animation - Change (Last created unit)'s size to (80.00%, 80.00%, 80.00%) of its original size
      • Animation - Change (Last created unit)'s vertex coloring to (50.00%, 100.00%, 100.00%) with 15.00% transparency
      • Unit - Add a 1.00 second Generic expiration timer to (Last created unit)
      • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
        • If - Conditions
          • StarbrustCount Equal to 1
        • Then - Actions
          • Unit - Create 1 BlinkNew for (Owner of StarbrustCast) at StarbrustPoint[0] facing StarbrustAngle[0] degrees
          • Animation - Change (Last created unit)'s size to (120.00%, 120.00%, 120.00%) of its original size
          • Unit - Add a 1.00 second Generic expiration timer to (Last created unit)
          • Unit - Create 1 Lightningnova for (Owner of StarbrustCast) at StarbrustPoint[0] facing StarbrustAngle[0] degrees
          • Animation - Change (Last created unit)'s size to (120.00%, 120.00%, 120.00%) of its original size
          • Unit - Add a 1.00 second Generic expiration timer to (Last created unit)
        • Else - Actions
      • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
        • If - Conditions
          • StarbrustCount Equal to 2
        • Then - Actions
          • Unit - Create 1 effect for (Owner of StarbrustCast) at StarbrustPoint[0] facing StarbrustAngle[0] degrees
          • Animation - Change (Last created unit)'s size to (70.00%, 70.00%, 70.00%) of its original size
          • Unit - Add a 3.50 second Generic expiration timer to (Last created unit)
        • Else - Actions
      • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
        • If - Conditions
          • StarbrustCount Greater than or equal to 16
        • Then - Actions
          • Unit - Create 1 SlashExplosion for (Owner of StarbrustCast) at StarbrustPoint[1] facing StarbrustAngle[0] degrees
          • Animation - Change (Last created unit)'s size to (250.00%, 250.00%, 250.00%) of its original size
          • Unit - Add a 1.00 second Generic expiration timer to (Last created unit)
          • Unit - Create 1 Lightningnova for (Owner of StarbrustCast) at StarbrustPoint[1] facing Default building facing degrees
          • Animation - Change (Last created unit)'s size to (150.00%, 150.00%, 150.00%) of its original size
          • Unit - Add a 1.00 second Generic expiration timer to (Last created unit)
          • Unit - Create 1 effectDeckai for (Owner of StarbrustCast) at StarbrustPoint[1] facing Default building facing degrees
          • Animation - Change (Last created unit)'s size to (200.00%, 200.00%, 200.00%) of its original size
          • Unit - Add a 1.00 second Generic expiration timer to (Last created unit)
          • Unit - Make StarbrustTarg Vulnerable
          • Unit - Make StarbrustCast Vulnerable
          • Unit - Cause StarbrustCast to damage StarbrustTarg, dealing (Real(((Agility of StarbrustCast (Include bonuses)) x 100))) damage of attack type Spells and damage type Divine
          • Unit - Unpause StarbrustTarg
          • Unit - Unpause StarbrustCast
          • Special Effect - Destroy StarbrustSFX[1]
          • Special Effect - Destroy StarbrustSFX[0]
          • Camera - Stop swaying/shaking the camera for (Owner of StarbrustCast)
          • Camera - Stop swaying/shaking the camera for (Owner of StarbrustTarg)
          • Animation - Change StarbrustCast's animation speed to 100.00% of its original speed
          • Trigger - Turn off (This trigger)
        • Else - Actions
      • Custom script: call RemoveLocation(udg_StarbrustPoint[0])
      • Custom script: call RemoveLocation(udg_StarbrustPoint[1])
 
Last edited:
Level 3
Joined
Apr 8, 2016
Messages
58
hey sir, i have a new problem now, i used dynamic indexing.. but its not 100% MUI, in a really same time hero cast same spell, it will buggy(stuck), can you help me to fix it?

here is my new trigger:

  • Skill Connect
    • Events
      • Unit - A unit Starts the effect of an ability
    • Conditions
      • (Ability being cast) Equal to Starbrust Stream
    • Actions
      • Set StarbrustIndex = (StarbrustIndex + 1)
      • Set StarbrustCast[StarbrustIndex] = (Triggering unit)
      • Set StarbrustTarg[StarbrustIndex] = (Target unit of ability being cast)
      • Set StarbrustPoint[0] = (Position of StarbrustCast[StarbrustIndex])
      • Set StarbrustPoint[1] = (Position of StarbrustTarg[StarbrustIndex])
      • Set StarbrustAngle[0] = (Angle from StarbrustPoint[0] to StarbrustPoint[1])
      • Set StarbrustAngle[1] = (Angle from StarbrustPoint[1] to StarbrustPoint[0])
      • Set StarbrustPoint[2] = (StarbrustPoint[1] offset by -120.00 towards (Angle from StarbrustPoint[0] to StarbrustPoint[1]) degrees)
      • Set StarbrustCount[StarbrustIndex] = 0
      • Unit - Pause StarbrustTarg[StarbrustIndex]
      • Unit - Pause StarbrustCast[StarbrustIndex]
      • Unit - Make StarbrustTarg[StarbrustIndex] Invulnerable
      • Unit - Make StarbrustCast[StarbrustIndex] Invulnerable
      • Camera - Shake the camera for (Owner of StarbrustCast[StarbrustIndex]) with magnitude 30.00
      • Camera - Shake the camera for (Owner of StarbrustTarg[StarbrustIndex]) with magnitude 30.00
      • Wait 0.05 seconds
      • Animation - Play StarbrustCast[StarbrustIndex]'s spell animation
      • Special Effect - Create a special effect attached to the hand left of StarbrustCast[StarbrustIndex] using war3mapImported\BlueCharge4.mdx
      • Set StarbrustSFX[1] = (Last created special effect)
      • Special Effect - Create a special effect attached to the hand right of StarbrustCast[StarbrustIndex] using war3mapImported\BlueCharge4.mdx
      • Set StarbrustSFX[0] = (Last created special effect)
      • Wait 0.05 seconds
      • Animation - Play StarbrustCast[StarbrustIndex]'s attack animation
      • Animation - Change StarbrustCast[StarbrustIndex]'s animation speed to 150.00% of its original speed
      • Unit - Move StarbrustCast[StarbrustIndex] instantly to StarbrustPoint[2]
      • Wait 0.70 seconds
      • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
        • If - Conditions
          • StarbrustIndex Equal to 1
        • Then - Actions
          • Trigger - Turn on Skill Connect End <gen>
        • Else - Actions
      • Custom script: call RemoveLocation(udg_StarbrustPoint[0])
      • Custom script: call RemoveLocation(udg_StarbrustPoint[1])
      • Custom script: call RemoveLocation(udg_StarbrustPoint[2])
  • Skill Connect End
    • Events
      • Time - Every 0.20 seconds of game time
    • Conditions
    • Actions
      • For each (Integer StarburstLoopInteger) from 1 to StarbrustIndex, do (Actions)
        • Loop - Actions
          • Set StarbrustCount[StarburstLoopInteger] = (StarbrustCount[StarburstLoopInteger] + 1)
          • Set StarbrustPoint[0] = (Position of StarbrustCast[StarburstLoopInteger])
          • Set StarbrustPoint[1] = (Position of StarbrustTarg[StarburstLoopInteger])
          • Animation - Play StarbrustCast[StarburstLoopInteger]'s attack 2 animation
          • Animation - Play StarbrustCast[StarburstLoopInteger]'s attack 1 animation
          • Animation - Play StarbrustTarg[StarburstLoopInteger]'s death animation
          • Unit - Create 1 SlashOne for (Owner of StarbrustCast[StarburstLoopInteger]) at StarbrustPoint[1] facing (Random angle) degrees
          • Animation - Change (Last created unit)'s size to (80.00%, 80.00%, 80.00%) of its original size
          • Animation - Change (Last created unit)'s vertex coloring to (50.00%, 100.00%, 100.00%) with 15.00% transparency
          • Unit - Add a 1.00 second Generic expiration timer to (Last created unit)
          • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
            • If - Conditions
              • StarbrustCount[StarburstLoopInteger] Equal to 1
            • Then - Actions
              • Unit - Create 1 BlinkNew for (Owner of StarbrustCast[StarburstLoopInteger]) at StarbrustPoint[0] facing StarbrustAngle[0] degrees
              • Animation - Change (Last created unit)'s size to (120.00%, 120.00%, 120.00%) of its original size
              • Unit - Add a 1.00 second Generic expiration timer to (Last created unit)
              • Unit - Create 1 Lightningnova for (Owner of StarbrustCast[StarburstLoopInteger]) at StarbrustPoint[0] facing StarbrustAngle[0] degrees
              • Animation - Change (Last created unit)'s size to (120.00%, 120.00%, 120.00%) of its original size
              • Unit - Add a 1.00 second Generic expiration timer to (Last created unit)
            • Else - Actions
          • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
            • If - Conditions
              • StarbrustCount[StarburstLoopInteger] Equal to 2
            • Then - Actions
              • Unit - Create 1 effect for (Owner of StarbrustCast[StarburstLoopInteger]) at StarbrustPoint[0] facing StarbrustAngle[0] degrees
              • Animation - Change (Last created unit)'s size to (70.00%, 70.00%, 70.00%) of its original size
              • Unit - Add a 3.50 second Generic expiration timer to (Last created unit)
            • Else - Actions
          • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
            • If - Conditions
              • StarbrustCount[StarburstLoopInteger] Greater than or equal to 16
            • Then - Actions
              • Unit - Create 1 SlashExplosion for (Owner of StarbrustCast[StarburstLoopInteger]) at StarbrustPoint[1] facing StarbrustAngle[0] degrees
              • Animation - Change (Last created unit)'s size to (250.00%, 250.00%, 250.00%) of its original size
              • Unit - Add a 1.00 second Generic expiration timer to (Last created unit)
              • Unit - Create 1 Lightningnova for (Owner of StarbrustCast[StarburstLoopInteger]) at StarbrustPoint[1] facing Default building facing degrees
              • Animation - Change (Last created unit)'s size to (150.00%, 150.00%, 150.00%) of its original size
              • Unit - Add a 1.00 second Generic expiration timer to (Last created unit)
              • Unit - Create 1 effectDeckai for (Owner of StarbrustCast[StarburstLoopInteger]) at StarbrustPoint[1] facing Default building facing degrees
              • Animation - Change (Last created unit)'s size to (200.00%, 200.00%, 200.00%) of its original size
              • Unit - Add a 1.00 second Generic expiration timer to (Last created unit)
              • Unit - Make StarbrustTarg[StarburstLoopInteger] Vulnerable
              • Unit - Make StarbrustCast[StarburstLoopInteger] Vulnerable
              • Unit - Cause StarbrustCast[StarburstLoopInteger] to damage StarbrustTarg[StarburstLoopInteger], dealing ((Real((Agility of StarbrustCast[StarburstLoopInteger] (Include bonuses)))) x 100.00) damage of attack type Spells and damage type Divine
              • Unit - Unpause StarbrustTarg[StarburstLoopInteger]
              • Unit - Unpause StarbrustCast[StarburstLoopInteger]
              • Special Effect - Destroy StarbrustSFX[1]
              • Special Effect - Destroy StarbrustSFX[0]
              • Camera - Stop swaying/shaking the camera for (Owner of StarbrustCast[StarburstLoopInteger])
              • Camera - Stop swaying/shaking the camera for (Owner of StarbrustTarg[StarburstLoopInteger])
              • Animation - Change StarbrustCast[StarburstLoopInteger]'s animation speed to 100.00% of its original speed
              • Set StarbrustCast[StarburstLoopInteger] = StarbrustCast[StarbrustIndex]
              • Set StarbrustTarg[StarburstLoopInteger] = StarbrustTarg[StarbrustIndex]
              • Set StarbrustCount[StarburstLoopInteger] = StarbrustCount[StarbrustIndex]
              • Set StarbrustIndex = (StarbrustIndex - 1)
              • Set StarburstLoopInteger = (StarburstLoopInteger - 1)
              • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
                • If - Conditions
                  • StarbrustIndex Equal to 0
                • Then - Actions
                  • Trigger - Turn off (This trigger)
                • Else - Actions
            • Else - Actions
      • Custom script: call RemoveLocation(udg_StarbrustPoint[0])
      • Custom script: call RemoveLocation(udg_StarbrustPoint[1])
 
Status
Not open for further replies.
Top