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

hi need some help

Status
Not open for further replies.
Level 1
Joined
Aug 24, 2007
Messages
3
hi this is my first time here, and trying to make triggers and everything.
the thing is i tried to make a channeling skill with variable duration of time, the only thing i need to know is how i make him unable to attack, without pause, because if the hero im making use this skill and he got a nearby melee enemy he hit the other one. the skill i want help is fishing rod
http://www.mediafire.com/?6s32ji4wyhy
 
Level 1
Joined
Aug 24, 2007
Messages
3
no the hero hooking the other one:p the hooked one is paused so it cant move or attack and the is stunned for 2 secs, the one with the problem is the hero im trying to make he starts dragging the target unit and if he has a unit near him around him, he starts hitting, easy to understand if you try the map and use the fishing rod near a unit
 
Level 8
Joined
Sep 15, 2006
Messages
426
Oh so you mean that you want the fishing rod to be able to grab anything within a certain radius of the point you target it at?
 
Level 1
Joined
Aug 24, 2007
Messages
3
no... try the damn mapXD you will understand easier! the grab everything is ready the only thing i want is Gon the heroe im making when he uses it the fishing rod he cant attack units around him
 
Level 8
Joined
Sep 15, 2006
Messages
426
Ok, this is fairly easy to fix. First of all, make a new boolean variable. Then on your Fishing trigger, add in "Set <the boolean variable> = True". Then make a trigger that runs as soon as Fishing Rod stops, and give it a "Set <the boolean variable> = False" action. Then make a trigger like this:

  • Prevent Attack
    • Events
      • Unit - A unit Is attacked
    • Conditions
      • (Unit-type of (Triggering unit)) Equal to Intensification Hunter
    • Actions
      • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
        • If - Conditions
          • gonisfishing Equal to True
        • Then - Actions
          • Unit - Order (Attacking unit) to Stop
        • Else - Actions
          • Do nothing
 
Status
Not open for further replies.
Top