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

Any ability to give a unit a ranged attack?

Status
Not open for further replies.
There is no such thing. You can increase range for given unit only via upgrades or..

You can trigger that item's actions.
If it's just for few heroeses you can create additional hero per each hero you got in map (or unit that can use items) and just change his attack to ranged. When unit aquires that item and is able to use items (hero) replace it with his ranged copy.
 
Level 37
Joined
Mar 6, 2006
Messages
9,243
^Enabling attack 2 will not help, attack 1 is still prioritized over attack 2 for targets allowed. So if a unit can attack ground units with both attack 1 and attack 2, attack 1 will be used.

Use this: http://www.hiveworkshop.com/forums/general-mapping-tutorials-278/hero-passive-transformation-198482/

So create two abilities based on bear form. The other is for normal <-> ranged and the other for ranged <-> normal. Create a copy of the hero and make it's attack 1 a ranged attack.

Then use these triggers:
  • Untitled Trigger 115
    • Events
      • Unit - A unit Acquires an item
    • Conditions
      • (Item-type of (Item being manipulated)) Equal to Claws of Attack +15
    • Actions
      • Game - Display to Player Group - Player 1 (Red) the text: get ranged
      • Unit - Add Bear Form 3 to (Triggering unit)
      • Unit - Remove Bear Form 3 from (Triggering unit)
  • Untitled Trigger 115 Copy
    • Events
      • Unit - A unit Loses an item
    • Conditions
      • (Item-type of (Item being manipulated)) Equal to Claws of Attack +15
    • Actions
      • Game - Display to Player Group - Player 1 (Red) the text: lose ranged
      • Unit - Add Bear Form 2 to (Triggering unit)
      • Unit - Remove Bear Form 2 from (Triggering unit)
You must add some check that the unit doesn't transform again when it is not supposed to.

You can test it here. Pick up Claws of Attack +15 with the blademaster.
http://www.hiveworkshop.com/forums/pastebin.php?id=b7t7ks
 
Status
Not open for further replies.
Top