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

Change units attack to ranged

Status
Not open for further replies.
Level 13
Joined
Jun 22, 2004
Messages
783
You can set the acquisition range to whatever you like, both the stat melee and ranged are based off that data, melee defaulty is 80 or something, and ranged can be choosen from in the object editor.
 
Level 4
Joined
Jul 26, 2008
Messages
57
:ned: I just had an idea... I'd have to test it first, but maybe you could:

-Have 2 exact copies of your unit, one with melee and one with ranged

-Create an ability based off of Metamorphosis that, by changing a few values, will allow you to switch between a melee and a ranged version of the unit with a click of a button

-You should probably also create 2 copies of this ability; one for the melee unit to shift to ranged, and one for the ranged unit to shift to melee. :ned:
 
Level 3
Joined
Aug 28, 2009
Messages
53
well im a begginer with worl editor but if i would need something liike this i would change models like : i want a footman to mele atack but then he finds a crosbow so he picks it ap (model changes) and now hes \ranged ;)

EDIT : sorry i writed the same thing that some guy sed :) anyways... :D
 
Level 9
Joined
May 9, 2009
Messages
536
if you want him to transform without clicking the ability, make an ability based on "Chaos"

Chaos allows you to change your unit from one to another.

When the unit picks up the item, add your edited Chaos to the unit.

When he drops it, add an ability based on Chaos to turn it back to the first unit.
 
Level 12
Joined
Aug 22, 2008
Messages
911
Solution #1: Give two attacks to the unit, one ranged and one melee, and switch between them using upgrades and triggers. (triggers when to research the upgrade)
Solution #2: Use the Chaos ability as mentioned.
Solution #3: Use an item ability that grants ranged attack against air units. Come to think of it, you could try setting the targets of that ability to Ground and Air.
 
Just a side note:
If your unit is a hero, DO NOT USE CHAOS.
Chaos on heroes might be useful at some point as it keeps the level/attributes/skills/hp/mana/cooldown and only changes the model. BUT: It will take any bonuses that is applied to the hero and ADD them to the new hero. Like your damage is 10 + 5, then the new hero will have the damage of 15 + 5.
 
Status
Not open for further replies.
Top