• 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.

[Trigger] "Drag" Ability problem

Status
Not open for further replies.

noj

noj

Level 4
Joined
Jan 16, 2006
Messages
89
this is my trigger, the ability is based of beserker, i changed the ability so it doesent give any speed/attack/def increases and such. it really is nothing but a button.

  • Move Object
    • Events
      • Unit - A unit owned by Player 1 (Red) Begins casting an ability
    • Conditions
      • (Ability being cast) Equal to Drag/Release Object
    • Actions
      • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
        • If - Conditions
          • DragorRelease Equal to False
        • Then - Actions
          • Unit Group - Pick every unit in (Random 1 units from (Units within 300.00 of (Position of Players_Hero) matching ((Owner of (Picked unit)) Equal to Neutral Passive))) and do (Actions)
            • Loop - Actions
              • Set DraggedObject = (Picked unit)
              • Unit - Order (Picked unit) to Follow Players_Hero
              • Set DragorRelease = True
              • Unit - Remove All buffs from Players_Hero
        • Else - Actions
          • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
            • If - Conditions
              • DragorRelease Equal to True
            • Then - Actions
              • Unit - Order DraggedObject to Stop
              • Set DragorRelease = False
              • Unit - Remove All buffs from Players_Hero
            • Else - Actions
the problem is it doesent work, i have a placed unit owned by neatral passive but nothing happens when i use the ability.

Here is all the changes i did to beserker that matter (Changes only)
Data
Attack Speed Increase - 0.00
Damage Taken Increase - 0.00
Movement Speed Increase - 0.00
Stats
Cooldown - 0.00
Duration normal - 0.00
Duration Hero - 0.00
Hero Ability - True
 
Last edited by a moderator:
Level 28
Joined
Mar 25, 2008
Messages
2,955
  • (Random 1 units from (Units within 300.00 of (Position of Players_Hero) matching ((Owner of (Picked unit)) Equal to Neutral Passive)))
change to
  • (Random 1 units from (Units within 300.00 of (Position of Players_Hero) matching ((Owner of Matching unit)) Equal to Neutral Passive)))
  • Set DraggedObject = (Picked unit)
Isn't necessary if you don't use it

Oh and please add a
  • Custom script: set bj_wantDestroyGroup = true
before the 'Pick every unit in..'
plus I suggest that you create a region like:
  • Set temppoint = Position of Players_Hero
  • Set temprect = Region centered at temppoint with size 600, 600
and pick the units from there.

If you make use of my suggestion, remove the leaks using:
  • Custom script: call RemoveLocation(udg_temppoint)
  • Custom script: call RemoveRect(udg_temprect)
That's it :)

//EDIT: 1800th post
 
Status
Not open for further replies.
Top