• 🏆 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!
  • ✅ Time to vote for the top 3 models! The POLL for Hive's 6th HD Modeling Contest: Mechanical is now open! 📅 Poll close on July 16, 2024! 🔗 Cast your vote now!

AoE slow

Status
Not open for further replies.
Level 2
Joined
Jun 12, 2010
Messages
6
Hi! I need help with triggers.
First i must warning I from Slovakia and my english is bad.

I want create Aoe slow so I making him like that:

Example name AoE Slow:
Level 1 - 50% slow for 4 seconds
Level 2 - 50% slow for 4 seconds
Level 3 - 50% slow for 4 seconds
Level 3 - 50% slow for 4 seconds

Mana:100/90/80/70
CD:15/14/13/12 seconds

Its form spell Flaming Strike (because of AoE) / I set all damage in Flaming Stirke to 0, add custom buff with name Aoe Slow and making this trigger:

  • Aoe Slow
  • Events
  • Unit - A unit Begins casting the Ability
  • Conditions
    • (Ability being cast) Equal to Aoe slow
  • Actions
    • Unit Group - Pick every unit in (Units in (Playable Map area)) and do (Actions)
    • Loop -Actions
      • Set Movement = (Integer((Current movement speed of (Picked unit)))
  • Trigger - Turn on Slow<gen>
  • Wait 3.90 seconds
  • Trigger - Turn off Slow<gen>
  • Unit Group - Pick every unit in (Units in (Playable Map area)) and do (Actions)
    • Loop -Actions
      • If (All Conditions are True) then do (Then Actions) else do (else Actions)
        • If - Conditions
          • ((Picked unit)) has buff Aoe Slow) Equal to True
        • Then - Actions
          • Unit -Set (Picked unit) movement speed to ((Real(Movement))x2.00)
        • Else - Actions
Else this trigger:
  • Slow
  • Events
    • Time - Every 0.01 seconds of game time
  • Conditions
  • Actions
    • Unit Group - Pick every unit in (Units in (Playable Map area)) and do (Actions)
    • Loop -Actions
      • If (All Conditions are True) then do (Then Actions) else do (else Actions)
        • If - Conditions
          • ((Picked unit)) has buff Aoe Slow) Equal to True
        • Then - Actions
          • Unit -Set (Picked unit) movement speed to ((Real(Movement))x0.50)
        • Else - Actions
But this work bad..Units dont slow or after spell moving very fast.
Is easier way for this Slow?
 
Level 37
Joined
Mar 6, 2006
Messages
9,240
  • Untitled Trigger 004
    • Events
      • Unit - A unit Starts the effect of an ability
    • Conditions
      • (Ability being cast) Equal to *Your ability*
    • Actions
      • Set p1 = (Target point of ability being cast)
      • Set g1 = (Units within 512.00 of p1)
      • Unit Group - Pick every unit in g1 and do (Actions)
        • Loop - Actions
          • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
            • If - Conditions
              • ((Picked unit) is alive) Equal to True
              • ((Picked unit) is A structure) Equal to False
              • ((Picked unit) is Magic Immune) Equal to False
              • ((Picked unit) belongs to an enemy of (Owner of (Triggering unit))) Equal to True
            • Then - Actions
              • Unit - Create 1 Footman for Neutral Passive at p1 facing Default building facing degrees
              • Unit - Order (Last created unit) to Human Sorceress - Slow (Picked unit)
              • Unit - Add a 2.00 second Generic expiration timer to (Last created unit)
            • Else - Actions
      • Custom script: call DestroyGroup(udg_g1)
      • Custom script: call RemoveLocation(udg_p1)
g1 = unit group variable
p1 = point variable

Create a dummy unit with no collision, no shadow,movement type "fly", model path NONE.mdl, animation cast point 0. Create custom slow spell with no mana cost and give it to the dummy unit.
 
Level 16
Joined
May 1, 2008
Messages
1,605
Moin moin =)

Hmm I just want say that the trigger of Maker is 100% correct so maybe you make something wrong. Anyway I make it a little different with that trigger:

  • AOE Slow
    • Events
      • Unit - A unit Starts the effect of an ability
    • Conditions
      • (Ability being cast) Equal to AOE Slow
    • Actions
      • Set TempLoc = (Target point of ability being cast)
      • Set TempGrp = (Units within 500.00 of TempLoc)
      • Unit Group - Pick every unit in TempGrp and do (Actions)
        • Loop - Actions
          • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
            • If - Conditions
              • ((Picked unit) is dead) Equal to False
              • ((Picked unit) is Magic Immune) Equal to False
              • ((Picked unit) is A structure) Equal to False
              • ((Picked unit) belongs to an enemy of (Owner of (Triggering unit))) Equal to True
            • Then - Actions
              • Unit - Create 1 Dummy for (Owner of (Triggering unit)) at TempLoc facing Default building facing degrees
              • Unit - Add a 3.00 second Generic expiration timer to (Last created unit)
              • Unit - Add Slow [Ability for the Dummy] to (Last created unit)
              • Unit - Set level of Slow [Ability for the Dummy] for (Last created unit) to (Level of (Ability being cast) for (Triggering unit))
              • Unit - Order (Last created unit) to Human Sorceress - Slow (Picked unit)
            • Else - Actions
      • Custom script: call RemoveLocation(udg_TempLoc)
      • Custom script: call DestroyGroup(udg_TempGrp)
In addition I will edit the map for this ability, so you can check what you missed, because there isn't just the trigger. You have to create a dummy, a dummy ability, mod the dummy ability and so on, so you can look for yourself =)

Greetings
~ The Bomb King > Dr. Boom
 

Attachments

  • AOE SLow.w3x
    18.2 KB · Views: 235
Status
Not open for further replies.
Top