• Listen to a special audio message from Bill Roper to the Hive Workshop community (Bill is a former Vice President of Blizzard Entertainment, Producer, Designer, Musician, Voice Actor) 🔗Click here to hear his message!
  • Read Evilhog's interview with Gregory Alper, the original composer of the music for WarCraft: Orcs & Humans 🔗Click here to read the full interview.

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,243
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 15
Joined
Sep 3, 2009
Messages
1,521
here ill make it so its slowly pulled ill be done soon :)
Edit:
http://www.hiveworkshop.com/forums/pastebin.php?id=bzae77
ok its not MUI , no special effects. but it was just a quick thing to show you the basis of it. If you'd like me to make it MUI add special effects and make it better just msg me. it now pulls a unit every .1 seconds.
 
Last edited:
Status
Not open for further replies.
Top