• 🏆 Texturing Contest #33 is OPEN! Contestants must re-texture a SD unit model found in-game (Warcraft 3 Classic), recreating the unit into a peaceful NPC version. 🔗Click here to enter!
  • It's time for the first HD Modeling Contest of 2024. Join the theme discussion for Hive's HD Modeling Contest #6! Click here to post your idea!

switching between melee and ranged

Status
Not open for further replies.
Level 11
Joined
May 17, 2010
Messages
389
I suggest you use the "Bear Form" ability from the Night Elf Druid of the Claw.
Create 2 Heroes, The same model, Stats, Etc. One that is melee and one that is ranged.
Then set the fields in the Bear Form ability to your liking.
Also modify the fields in the ability which allows your hero to "change" his attack range.
Then put the ability in both heroes.

Edit:
Added an image to inform you more.

attachment.php
 
Last edited:
Level 5
Joined
Aug 27, 2010
Messages
79
i tried using spell book...created a spellbook, disabled it and added "bear form" ability to it....but how do i use bear form ability thru triggers??
"Unit - Order (Triggering unit) to Night Elf Druid Of The Claw - Bear Form" didnt work....
 
Level 11
Joined
May 17, 2010
Messages
389
You can't use active abilities in disabled spellbooks.
If your hero changes its attack range from melee to ranged or vice versa, I suggest you save the hero's stats, skills, etc. then replace the hero with the ranged replacement.
Then implement the stats that you saved.
 
Level 5
Joined
Aug 27, 2010
Messages
79
hey i dont want unit replacement.
i have a hero, 1st attack is melee n 2nd ranged,
i have ability based on item orb ability(item fire bonus damage),
ability for melee(sword) has attack index 1 enabled.
ability for ranged(bow) has attack index 2 enabled.
but problem is the 1st attack index is not being enable.
when i say attack index 1 enable it enbales attack2 not 1...
y is that?!?!? pls help.....
 
Level 10
Joined
Jul 12, 2009
Messages
318
not working... :(
You need to say what you tried before anyone can help you figure out why it didn't work.

pls some1 reply
This is a forum, not a chatroom. Be patient.

hey i dont want unit replacement.
i have a hero, 1st attack is melee n 2nd ranged,
i have ability based on item orb ability(item fire bonus damage),
ability for melee(sword) has attack index 1 enabled.
ability for ranged(bow) has attack index 2 enabled.
but problem is the 1st attack index is not being enable.
when i say attack index 1 enable it enbales attack2 not 1...
y is that?!?!? pls help.....

That's just the way WC3 works. AFAIK it's impossible to do what you want without unit replacement.
 
Level 21
Joined
Jul 2, 2009
Messages
2,934
Do you want it as a thing where you choose a sword for melee and then a ranged weapon like a shotgun for ranged?
Kinda reminds me of WoW for some reason.
 
Status
Not open for further replies.
Top