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

I requst some one help fix my spell!

Status
Not open for further replies.
Level 6
Joined
Jun 11, 2009
Messages
151
I can't get it to deal damage and pull units to middle, in a way you could say it's like Vacuum from Dota.

  • MySpell
    • Events
      • Unit - A unit Begins casting an ability
    • Conditions
      • (Ability being cast) Equal to Myspell
    • Actions
      • Set Caster = (Triggering unit)
      • Set TempPoint = (Target point of ability being cast)
      • Set Target = (Picked unit)
      • Set TargetGroup = (Units within (200.00 x (Real((Level of MySpell for Caster)))) of TempPoint)
      • Set Damage = ((Intelligence of Caster (Exclude bonuses)) x (Level of MySpell for Caster))
      • Unit Group - Pick every unit in TargetGroup and do (Actions)
        • Loop - Actions
          • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
            • If - Conditions
              • ((Owner of Target) is an enemy of (Owner of Caster)) Equal to True
            • Then - Actions
              • Custom script: call DestroyGroup(udg_TargetGroup)
              • Unit - Move Target instantly to TempPoint
              • Unit - Cause Caster to damage Target, dealing (Real(Damage)) damage of attack type Spells and damage type Normal
            • Else - Actions
              • Custom script: call RemoveLocation(udg_TempPoint)
Please and thank you, +rep
 
Level 37
Joined
Mar 6, 2006
Messages
9,240
Are you trying to get units to slowly get pulled to the middle, or instantly?

Check my Holy Dragging Spell and learn from it :)


Your trigger should be like this: (BTW, why exclude int bonus?)

  • MySpell
    • Events
      • Unit - A unit Begins casting an ability
    • Conditions
      • (Ability being cast) Equal to Myspell
    • Actions
      • Set Caster = (Triggering unit)
      • Set TempPoint = (Target point of ability being cast)
      • Set TargetGroup = (Units within (200.00 x (Real((Level of MySpell for Caster)))) of TempPoint)
      • Set Damage = ((Intelligence of Caster (Exclude bonuses)) x (Level of MySpell for Caster))
      • Unit Group - Pick every unit in TargetGroup and do (Actions)
        • Loop - Actions
          • Set Target = (Picked unit)
          • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
            • If - Conditions
              • ((Owner of Target) is an enemy of (Owner of Caster)) Equal to True
            • Then - Actions
              • Unit - Move Target instantly to TempPoint
              • Unit - Cause Caster to damage Target, dealing (Real(Damage)) damage of attack type Spells and damage type Normal
            • Else - Actions
      • Custom script: call DestroyGroup(udg_TargetGroup)
      • Custom script: call RemoveLocation(udg_TempPoint)
 
Level 6
Joined
Jun 11, 2009
Messages
151
Slowly would be good. :D
And crap i didn't see i thought i did Include Int. XDD
But even tho i changed it, the way yours looks it still doesn't work. -.-
and i am using Dispell magic too

Edit* nvm i got it too work but i would like it to move slowly :D
 
Level 37
Joined
Mar 6, 2006
Messages
9,240
Use "starts the effect of an ability" instead of "begins casting".

Is that ability point targetable?

If you want them to get pulled slowly, you need to loop it...explaining it thoroughly will take too much time. Check some spells that work that way and copy them.
 
Status
Not open for further replies.
Top