• Check out the results of the Techtree Contest #19!
  • 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.
  • Create a void inspired texture for Warcraft 3 and enter Hive's 34th Texturing Contest: Void! Click here to enter!
  • The Hive's 22nd Icon Contest: Creep Abilities is now concluded, time to vote for your favourite set of icons! Click here to vote!

hi need some help

Status
Not open for further replies.

Stilgar

S

Stilgar

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
 
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
 
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
 
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.
Back
Top