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

Melee atack to Ranger atack (With "lumber" animation)

Status
Not open for further replies.
Level 6
Joined
Oct 25, 2018
Messages
108
Hi. I am currently creating an RPG and would like when a character has an item of type Bow and Arrow, change your Melee attack type to Distance (without having to replace the unit) and with a type of archer animation (listen to that placing in animation "lumber" could get that effect when attacking) the point is that I do not know how to do it. Someone who can help me? : c
 
Level 9
Joined
Jul 30, 2018
Messages
445
You make an upgrade that allows the second attack index and then set the level of that upgrade for the player when the unit picks up the item. About the animation, you would need a unit model that has both, a melee and a ranged attack animation, but I don't think there's one. I guess you could use spell animation and attack animation, if they are different enough.
 
Level 6
Joined
Oct 25, 2018
Messages
108
You make an upgrade that allows the second attack index and then set the level of that upgrade for the player when the unit picks up the item. About the animation, you would need a unit model that has both, a melee and a ranged attack animation, but I don't think there's one. I guess you could use spell animation and attack animation, if they are different enough.
I have RPG models imported from here, and they have the Lumber animation that allows me to make the remote shooting movement ... But as I stated that each time the unit carries the item, the same update is made automatically, since an investigation can only be done perform only once? Because as it is RPG the unit will be taking and dropping different items, in more than one occasion arcs and each arc must fulfill the same function of remote attack and archery animation. Can you pose with a simple trigger how to do this? is that the truth I do not know.
 
Level 13
Joined
May 10, 2009
Messages
868
As of 1.29, it is possible to downgrade a research by using the following native
JASS:
native BlzDecPlayerTechResearched takes player whichPlayer, integer techid, integer levels returns nothing
I'm not sure if there's a GUI action for it.

Also, the parameter "techid" refers to the research raw code, which can be seen by pressing Ctrl + D in Object Editor. E.g. 'hfoo' that is the footman raw code.
 
Status
Not open for further replies.
Top