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

Mmmm...Okay – wings model attachment for item

Status
Not open for further replies.
Level 3
Joined
Sep 28, 2012
Messages
21
Alright. So I'm trying to make a trigger so if item X is picked up then it will add wings to the chest (since there is no back) and if item X is removed it will destroy the attachment. Like always help is appreciated! Thanks!
 
Level 20
Joined
Jul 14, 2011
Messages
3,213
Add them with the item itself. The other way is adding them by adding an ability with trigger, which works worse than making the item have that ability.
 
Level 3
Joined
Sep 28, 2012
Messages
21
Add them with the item itself. The other way is adding them by adding an ability with trigger, which works worse than making the item have that ability.

I know, but how do you get it so when the item is dropped then the attachment is removed?
 
Level 20
Joined
Jul 14, 2011
Messages
3,213
There's no need for a trigger.

You create the ability and add the Attachment model, and add that ability to an item. The item by default will add the abilities within it to the unit, and remove them (with it's effects) when it's lost.

Same happens with Orb of Frost, Fire, Lightning, Darkness, and Corruption; an attachment is added to the unit weapon.
 
Level 3
Joined
Sep 28, 2012
Messages
21
There's no need for a trigger.

You create the ability and add the Attachment model, and add that ability to an item. The item by default will add the abilities within it to the unit, and remove them (with it's effects) when it's lost.

Same happens with Orb of Frost, Fire, Lightning, Darkness, and Corruption; an attachment is added to the unit weapon.

Thanks!
 
Level 17
Joined
Nov 13, 2006
Messages
1,814
There must be something wrong with my trigger then, because it doesn't remove after the item is dropped.

a note:
if u want destroy special effect via trigger what was attached to unit it have a dieing time, so example after u destroyed the wings then still there for ~5sec if u attached via trigger...

if i remember purgedfire told the solution, u can make a dummy bear form ability and when u remove the item what attached via trigger then u add a dummy bear form with trigger, order it and remove the dummy bearform ability, result will be ~instant special effect remove

if u add with setting the attachments in object editor (like example orb of fire) then it is instantly remove also when u lose the item from inventory (bad side if u make a rpg and u do more gear type then your invetory mostly allways will be full only with equipments :/)
 
Level 9
Joined
May 31, 2010
Messages
366
i have the same question and thanks for the help
but what will happen if the unit get 2 items? like a sword and a bow will both models appear? and is there a way to change the attack animation of the unit with this item?
item = sword then attack 1 (melee)
item = bow then attack 2 (ranged)
 
Level 17
Joined
Nov 13, 2006
Messages
1,814
i have the same question and thanks for the help
but what will happen if the unit get 2 items? like a sword and a bow will both models appear? and is there a way to change the attack animation of the unit with this item?
item = sword then attack 1 (melee)
item = bow then attack 2 (ranged)

make unpickable 2 weapon sametime, so if he pick 2nd one then drop it.
so if u want change to ranged then drop sword and only after that pick bow


OR

make quipment slot, have in spell section equipment system with spell book, with multiboard, full screen equipment system, where u have virtually equipment slot but that make a bit longer ur triggers


about attack animation if it is a good villager model then yes, not directly with item but this way:

Event: unit got a item
Action:
few if about do u drop it or keep and if the triggering unit is a villager or no because we dont want attach item if it is paladin example
then make if about items:
if it is sword then
custom script: call AddUnitAnimationProperties( GetTriggerUnit(), "lumber", true )
endif
//in this case the animation is lumber, at few villager this is the animation used for bow's but u can replace with that animation what u wanr
 
Status
Not open for further replies.
Top