• 🏆 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!

Levelling up Forked Drama

Status
Not open for further replies.
Level 6
Joined
Aug 5, 2017
Messages
251
  • FD
    • Events
      • Unit - A unit Starts the effect of an ability
    • Conditions
      • (Ability being cast) Equal to Forked Drama
    • Actions
      • Unit Group - Pick every unit in (Units within 1000.00 of (Position of (Casting unit))) and do (Actions)
        • Loop - Actions
          • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
            • If - Conditions
              • (Level of Forked Drama for (Casting unit)) Equal to 1
            • Then - Actions
              • Unit - Set (Picked unit) movement speed to ((Current movement speed of (Picked unit)) - 50.00)
              • Special Effect - Create a special effect attached to the overhead of (Picked unit) using ReplaceableTextures\Models\Emoji\RedSadEmoji.mdx
              • Wait 8.00 seconds
              • Special Effect - Destroy (Last created special effect)
              • Unit - Set (Picked unit) movement speed to (Default movement speed of (Picked unit))
              • Special Effect - Create a special effect attached to the origin of (Picked unit) using Abilities\Spells\Human\DispelMagic\DispelMagicTarget.mdl
              • Special Effect - Destroy (Last created special effect)
            • Else - Actions
              • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
                • If - Conditions
                  • (Level of Forked Drama for (Casting unit)) Equal to 2
                • Then - Actions
                  • Unit - Set (Picked unit) movement speed to ((Current movement speed of (Picked unit)) - 100.00)
                  • Special Effect - Create a special effect attached to the overhead of (Picked unit) using ReplaceableTextures\Models\Emoji\RedSadEmoji.mdx
                  • Wait 8.00 seconds
                  • Special Effect - Destroy (Last created special effect)
                  • Unit - Set (Picked unit) movement speed to (Default movement speed of (Picked unit))
                  • Special Effect - Create a special effect attached to the origin of (Picked unit) using Abilities\Spells\Human\DispelMagic\DispelMagicTarget.mdl
                  • Special Effect - Destroy (Last created special effect)
                • Else - Actions
              • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
                • If - Conditions
                  • (Level of Forked Drama for (Casting unit)) Equal to 3
                • Then - Actions
                  • Unit - Set (Picked unit) movement speed to ((Current movement speed of (Picked unit)) - 150.00)
                  • Special Effect - Create a special effect attached to the overhead of (Picked unit) using ReplaceableTextures\Models\Emoji\RedSadEmoji.mdx
                  • Wait 8.00 seconds
                  • Special Effect - Destroy (Last created special effect)
                  • Unit - Set (Picked unit) movement speed to (Default movement speed of (Picked unit))
                  • Special Effect - Create a special effect attached to the origin of (Picked unit) using Abilities\Spells\Human\DispelMagic\DispelMagicTarget.mdl
                  • Special Effect - Destroy (Last created special effect)
                • Else - Actions
When I tested the code, I found a few problems, like the enemy units not slowing down and the hero having the red sad emoji besides the enemy units. Anyway to fix this? And is there a way to make the attack speed of the enemy units faster/slower in triggers?
 
Level 22
Joined
Aug 27, 2013
Messages
3,973
First of all, it's not good to use waits.
Secondly, that's the main reason it doesn't work as intended or "buggy".
Thirdly, I recommend you to learn about MUI.

Here are some good tutorials covering MUI with waits.
MUI Triggers with Waits
MUI Spells Using Artificial Waits
Visualize: Dynamic Indexing

And is there a way to make the attack speed of the enemy units faster/slower in triggers?
There isn't. The workaround is to use aura or abilities with negative buff. For example, Cripple or Slow.
 
Level 11
Joined
May 16, 2016
Messages
730
And is there a way to make the attack speed of the enemy units faster/slower in triggers?
You need 6 10-leveled dummy abilities: all of them are based on gloves of haste passive item.
1st ability increases attack speed by 1,2,3...9%
2nd - 10,20,30..90
3rd 100,200,300...900
4th -1 -2 -3... -9
5th -10 -20 -30 -40...
6th -100 -200 -300...

Here is more "normal" variant of your spell. I used the Thunder Clap as a base.
 

Attachments

  • Drama.w3x
    20.1 KB · Views: 52
Status
Not open for further replies.
Top