Tutorial (Easy)Adding an Attachment

Sarj14

New Member
Reaction score
10
Welcome to my first tutorial, Adding an Attachment!

Difficulty: 2/10 Easy

Let's begin right away!

What This Tutorial Shows
This tutorial shows shows you how to add an attachment to your unit in a step by step process, that is all.

Why Would This be Useful
This is a great system to use in RPG/ORPG maps. Though, I strongly suggest if you are using this system, then also use the system that allows only one item per group. IE: Only one chest armor, only one left hand/righthand weapon, that system. A tutorial for that can be found here:
http://www.hiveworkshop.com/forums/triggers-scripts-269/just_spectatings-item-carry-system-132141/ By Just_Spectating

Step 1) Open up Warcraft 3: World Editor, which is located in your Warcraft III folder.

Step 2) Find your model that you want to use for your attachment. I will be using http://www.hiveworkshop.com/forums/models-530/spiked-mace-sunchips-145993/?prev=d%3Dlist%26r%3D20%26t%3D7. Then open up your Import Manager (F12) and import it and add the correct File Path for your model if needed. Now save and exit then reopen World Editor so the model will definitely work.(Credit for the model to Sunchips from http://www.hiveworkshop.com)

Step 3) Once you've found your model and imported it, make a custom unit spell. I am making one called "Spiked Club Attachment" so I remember what it is you can name your ability anything you want. (I used the unit spell "Sphere").

Step 4) Once you've created your ability, you need to change some things. Scroll down till you see the following:
Art - Target
Art - Target Attachment Point 1
Art - Target Attachment Point 2
Art - Target Attachment Point 3
Art - Target Attachment Point 4
Art - Target Attachment Point 5
Art - Target Attachment

Once there, open up Art - Target and set the model to the model you imported from Step 2. After that is done, you can set it to appear on your unit using the Art - Target Attachment Points 1-5. I am going show you how to do the left hand. So, your model is in the Art - Target. Now open up Art - Target Attachment Point 1 and add a string saying "hand,left". Hit ok and exit out of that. Now go to Art - Target Attachment and edit it to only 1.
After that is done, scroll down till you see:

Stats - Item Ability

Open that up and check "True".

My screen looked like this when I was done.
Step 5) Now, you've set up your ability. Keep Object Editor open and click the second tab next to units, Items.

Step 6) Make a custom item and open up Abilities - Abilities. Click Add Ability and find the spell you made in the Custom Spell list, for me I found the spell "Spiked Club Attachment".

*Optional* - Step 7) This step is optional, but I think it is really cool for RPG maps! Go to your item and look for Art - Model Used. Erase what is in there and click Import: and use the model that you downloaded. This will make it so when the item is dropped, it won't be a treasure box with gold, but it will show as the model you used! So like I am using the spiked club and it dropped, it would appear on the ground as the spiked club model I used.

My screen looked like this when I was done.
Step 8) Now, for the real easy part, creating the trigger. Open up Trigger Editor and make a 2 triggers, mine is named "Spiked Club Pick Up" and "Spiked Club Drop". This will make it so when you pick up the item, it will appear on your unit, and when you drop the item, it will disappear.

Step 9) Now, make a new event, "A unit Acquires an item". Now, make a condition "(Item-type of (Item being manipulated)) Equal to Your Item" Now, make an action called "Unit - Add Your Spell from (Triggering unit)". Mine looks like this.
Trigger:
  • Spiked Club Pick Up
    • Events
      • Unit - A unit Acquires an item
    • Conditions
      • (Item-type of (Item being manipulated)) Equal to Spiked Club
    • Actions
      • Unit - Add Spiked Club Attachment to (Triggering unit)


Step 10) Now, you made a pick up trigger, now to make a drop trigger. Just copy and paste the pick up trigger and rename it to name of the drop trigger you want. So you now have 2 trigger that look like the above one I have. Now, open the event and make it so it is "Unit - A unit Loses an Item". Keep the condition the same. Open the action trigger and change it to "Unit - Remove Your Spell from (Triggering unit)". Mine looks like this.
Trigger:
  • Spiked Club Drop
    • Events
      • Unit - A unit Loses an item
    • Conditions
      • (Item-type of (Item being manipulated)) Equal to Spiked Club
    • Actions
      • Unit - Remove Spiked Club Attachment from (Triggering unit)


Step 11) Time to test the attachment. Make a unit, (I used Arthas) and create the custom item you made for it infront of him. If you did Step 7 it should show you the model you used as the item. Now, test the map. Once it loads, pick up the item. It should appear in Arthas's left hand, if it didn't, then read back through the tutorial and see what you did wrong!

End Testing Results

Thanks for reading my first tutorial, Adding an Attachment! :thup:

Happy Attaching,
-Sarj14

Edit: Fixing Grammer Errors
 
Ftl... didn't see that one. Well, that one seems more "advanced" but I never added the attachment points I guess.
 
tbh, I don't really like it.

Sorry, sounds harsh, but... I don't know.

Something about it.

Not general enough, to general, just to... Repetitive? I feel like there is the other tutorial for this, plus... I don't know.

Edit: Put screenshots in Spoiler Tags?
 
Well, it is my first tutorial. So, how would I be able to improve it? More information, or what? I mean, all you said was you don't like it, not what was really wrong with it.
 
We already have one of these. A better one of these.

Anyways, how to improve: Make one that hasn't been done before.


Romek like the new avatar... Pretty spiffy.
 
General chit-chat
Help Users
  • Varine Varine:
    Xanthum gum can be made from wheat, but is processed in a way that no gluten is present, but it still presents a risk for severe wheat allergies that are NOT gluten
  • Varine Varine:
    Do you think the people that answer the phone for that company have any idea about that? Because they do not, nor can they tell me where they get that xanthum gum usually so I can't ask the people that make it, nor do they particularly care if I'm the one risking people's lives and not them.
  • Varine Varine:
    So that was my week building up to today, because that is when I got the menu and had to guess at the actual recipes for two of those days, because again I think he threw this into AI and ran with a lot of it
  • Varine Varine:
    I should have had all of this like a month ago but whatever, it's fine. He's trying a thing, idk it's his menu I don
  • Varine Varine:
    I don't care.
  • Varine Varine:
    Fuck I need more saturday nights off. Turns out I'm much cooler to drunk girls. If I hang out with enough people like that, eventually I'll meet one that likes me sober too
  • Varine Varine:
    idk if anyone has ever done IT. I am not IT but I just got off a 20 minute phone call with the general manager asking me how to make her new computer print. I do adore her, like I know her personally, but I asked three times if the printer was on. She apologized for bothering me, and Chef Ben walked in a few minutes later, turned the printer on apparently, and then called to ask if I was trying to print shit from my house again
  • Varine Varine:
    So I have a newfound appreciation
  • Varine Varine:
    And also I'm going to remove that one from my secondary career options
  • Varine Varine:
    As I get older I'm not thinking I can do this forever anymore, and I'm kind of dead end right now. I get a fine salary and fair raises, like I can easily live my lifestyle on this normally, but I don't know if I can do this in ten years, and I don't think I want to. I don't really have any desire to take over another restaurant, and I don't want to try and own one, and I doubt I'll luck out like I did with that taco place in Texas
  • Varine Varine:
    I have a math degree but that was a while ago and I'm not positive I actually deserved that. It was kind of just given to me I feel like cuz I was in school so long. Like for a bit as a teenager I got real into the mormon thing, and my dad grew up kind of similarly. Much like he fell out of it
  • Varine Varine:
    Anyway he started coming to church with me for a bit, and they gave home the I think Melchizedek? idk how to spell it, but it's the 'upper' priesthood, like he had a whole blessing thing after I got baptized, and it WAS a very neat experience. And the only reason I think they did they did that was cuz he was like late 30s, and that is kind of the age that they have the last chance at that
  • Varine Varine:
    And I mean its not, but like... I'm pretty well set in my lack of religious beliefs, I guess. And I'm a bit younger than my dad would have been then.
  • Varine Varine:
    And then I got real into, he got bored and was like you do you dude, and that's how I got a huge amount of freedom when I started doing drugs as a teenager
  • Varine Varine:
    In hindsight my parents were fantastic. but they were too fucking tired to raise kids like me. And their jobs were easier with better benefits.
  • Varine Varine:
    Anyway idk where I'm going here, but I asked ChatGPT some of the same things and holy shit was it way more strict and just gave me (importantly the wrong) phone number to a hotline
  • Varine Varine:
    TH, I gotta say, though, I'm amazed you keep this up. I feel like there are you and Ghan doing whatever you're doing, Tom posting news, and then me using the chatbox as a journal every once in a while.
  • Varine Varine:
    Thanks for letting me do that, also. I know I'm not using it correctly, but somewhere along the line I went from arguing with Cheshire to using this as a kind of void for my frustrations and hopes. I like to think of the whole thing as an enigma of sorts
  • Varine Varine:
    It's not, you guys could probably blackmail me if you went back far enough. I doubt anyone would, you've always been very kind, and I'm glad to have been a part of all this! I hope you enjoy me too, cuz I'm going to keep doing it.
  • Varine Varine:
    In my defense I was high for a lot of that though
  • V-SNES V-SNES:
    Thanks for sharing @Varine
  • The Helper The Helper:
    Brother how long we been here together? You guys are some of my best friends and I have never even met any of you. I dont know what I would if I did not have my Varine rant to look at when I get on. How could I possibly ever shut this site down? We have been here in this little chat box through a lot of shit for a long time. I love you guys!
  • tom_mai78101 tom_mai78101:
    I missed out on a lot of chat messages. But yeah, we're planning for my mom's funeral back in Taiwan. I'm really glad I work remotely, so I can try to leverage that and go to places outside of US while still working in US.
  • tom_mai78101 tom_mai78101:
    If it wasn't for my mom, I wouldn't be able to work in the US. Let alone being able to work until our office closed, and I became a full-time remote employee.
  • tom_mai78101 tom_mai78101:
    Really important though, get your wills and last testaments ready. We avoided like 2 to 3 months of waiting for probate court to get back to us.
    +1

      The Helper Discord

      Staff online

      Members online

      Affiliates

      Hive Workshop NUON Dome World Editor Tutorials
      Top