• 💀 Happy Halloween! 💀 It's time to vote for the best terrain! Check out the entries to Hive's HD Terrain Contest #2 - Vampire Folklore.❗️Poll closes on November 14, 2023. 🔗Click here to cast your vote!
  • 🏆 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!
  • 🏆 HD Level Design Contest #1 is OPEN! Contestants must create a maze with at least one entry point, and at least one exit point. The map should be made in HD mode, and should not be openable in SD. Only custom models from Hive's HD model and texture sections are allowed. The only exceptions are DNC models and omnilights. This is mainly a visual and design oriented contest, not technical. The UI and video walkthrough rules are there to give everyone an equal shot at victory by standardizing how viewers see the terrain. 🔗Click here to enter!

[Trigger] How to make an item attachment.

Status
Not open for further replies.
Level 14
Joined
Jan 27, 2007
Messages
948
Ill show you how to create an attach to a unit and how to destroy it.
All with a item pick up and drop.

First, create a item (in this case a item called Hook) then Import an attach, or use something that already exists if you want.

firsthl9.png


Then make a trigger with the next event,condition and actions.

secondnb4.jpg


And there you go. To remove it do the next:

thirddh4.jpg


And the last thing you have to make is this:

fourrw3.jpg


Enjoy the attachs!
If you have any trouble or you want to ask something, tell me, i am here to help!

PD: Attach can be used by ANY model, the problem is that if the unit already have a weapon, will have 2 weapons in one hand xD.

PD2: You can make this with fire too, like a burning guy. you can attach fire to "chest" and lots of more things.
 
Level 29
Joined
Jul 29, 2007
Messages
5,174
Attachment points (credits to SK_Ryoko from Thehelper)

overhead (Floats over the unit' s head, but dosn' t sway with.)

head (Sways with the unit' s animation.)

chest

origin (Usually at the base of a unit' s feet.)

hand


Attachment point modifiers for "hand":



left

right



Additional attachment point modifiers:



foot

weapon (for heroes)

sprite (for buildings)

medium (for buildings)

large (for buildings)

mount (for mounted units)

rear (for quadrupeds)

first (for buildings)

second (for buildings)

third (for buildings)

fourth (for buildings)

fifth (for buildings)

sixth (for buildings)

rallypoint (for buildings)


I think you should also point out that, for example, "hand left" is actualy made of two strings and not from one, because I think this is quite a confusing thing for starters.

Another matter is, there is a easier (can't bug because it doesn't use variables, or triggers while we're at it, at all) to make attachments if they are based on items.

As you probably know, any item can have item abilities.
Now go try to create a ability (passive) that does nothing but, it has attachment points on the caster.
Now give that ability to the item you want, and whenever you equip that item - the effects you made on the ability, will be made on the unit that owns that item, remove the item and the effects will be removed aswell.
 
Status
Not open for further replies.
Top