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

[Trigger] Wind Thrust (Knockback spell)

Status
Not open for further replies.
Level 9
Joined
Dec 4, 2007
Messages
562
Hey, I need help with a spell called Wind Thrust wich basicly is like a Carrion Swarm wich takes all units that it hits with it untill it disapear (when it reach position of ability being cast)

This is what I got so faar.

  • Wind Thrust
    • Events
      • Unit - A unit Begins casting an ability
    • Conditions
      • (Ability being cast) Equal to Wind Thrust
    • Actions
      • Set WindThrust_Caster = (Casting unit)
      • Set WindThrustDirection = (Facing of WindThrust_Caster)
      • Unit - Create 1 Wind Thrust (Dummy) for (Owner of WindThrust_Caster) at (Position of WindThrust_Caster) facing Default building facing degrees
      • Set WindThrust_Dummy = (Last created unit)
      • Trigger - Turn on Wind Thrust Knockback <gen>
      • Wait until ((Distance between (Position of WindThrust_Dummy) and (Target point of ability being cast)) Less than or equal to 15.00), checking every 0.10 seconds
      • Trigger - Turn off Wind Thrust Knockback <gen>
      • Unit - Remove WindThrust_Dummy from the game
      • Set WindThrust_Real = 0.00
And this is the other trigger that pushes all units near the dummy and damage them. :p
  • Wind Thrust Knockback
    • Events
      • Time - Every 0.05 seconds of game time
    • Conditions
    • Actions
      • Unit - Move WindThrust_Dummy instantly to ((Position of WindThrust_Dummy) offset by (0.00 + WindThrust_Real) towards WindThrustDirection degrees)
      • Set WindThrust_Real = (WindThrust_Real + 3.00)
      • Unit Group - Pick every unit in (Units within 175.00 of (Position of WindThrust_Dummy) matching (((Picked unit) belongs to an enemy of (Owner of WindThrust_Caster)) Equal to True)) and do (Actions)
        • Loop - Actions
          • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
            • If - Conditions
              • ((Picked unit) belongs to an enemy of (Owner of WindThrust_Caster)) Equal to True
            • Then - Actions
              • Unit - Move (Picked unit) instantly to ((Position of WindThrust_Dummy) offset by 10.00 towards WindThrustDirection degrees)
              • Unit - Cause WindThrust_Caster to damage (Picked unit), dealing (2.50 x ((Real((Level of Wind Thrust for WindThrust_Caster))) + 2.50)) damage of attack type Spells and damage type Normal
              • Special Effect - Create a special effect attached to the origin of (Picked unit) using Abilities\Spells\Orc\FeralSpirit\feralspirittarget.mdl
              • Special Effect - Destroy (Last created special effect)
            • Else - Actions
              • Do nothing
And the problem is that first of all, my hero get caught in the wind :p and second, it only work the first time I cast it.
 
Last edited:

Rmx

Rmx

Level 19
Joined
Aug 27, 2007
Messages
1,164
Well just gonna say it heavely LEAKS and well it's very inefficient !!!

Well in the Boalan* player owner of trigering unit is not equal to ur hero .... ext.

well there isn't any target point of abiltie being cast and it leaks positions groups ....

If i got time i'll help but that is it for now :(
 
Status
Not open for further replies.
Top