1. Find your way through the deepest dungeon in the 18th Mini Mapping Contest Poll.
    Dismiss Notice
  2. A brave new world lies beyond the seven seas. Join the 34th Modeling Contest today!
    Dismiss Notice
  3. Check out the Staff job openings thread.
    Dismiss Notice
Dismiss Notice
Hive 3 Remoosed BETA - NOW LIVE. Go check it out at BETA Hive Workshop! Post your feedback in this new forum BETA Feedback.
Dismiss Notice
60,000 passwords have been reset on July 8, 2019. If you cannot login, read this.

Attaching Weapons To Models

Discussion in 'World Editor Help Zone' started by Bwathke, Jun 2, 2009.

  1. Bwathke

    Bwathke

    Joined:
    May 22, 2009
    Messages:
    482
    Resources:
    0
    Resources:
    0
    OK, so I recently got the RPG hero a lot of people use to make ORPG's with and he has the animation as if hes holding a weapon but he isn't and I dont have TFT but I have WE Unlimited can someone tell me how to attach a weapon to him?
     
  2. SunTzu7387

    SunTzu7387

    Joined:
    Mar 28, 2009
    Messages:
    66
    Resources:
    0
    Resources:
    0
    what I did was in object editor you copy and paste sphere. rename it to whatever you want, delete the attachment points that say sprite, first sprite,second sprite,third and in target attachment point one type hand,right for right hand or hand,left for left hand. then you go down to target attachments (it will be set at 3) put this to 1. then change the art of Art- Target to whatever weapon you want. Then create a trigger that attaches the weapon to that unit. the trigger I used for my map was this...
    • Unit - A unit Sells a unit
    • (Unit-type of (Sold unit)) Equal to Test Hero
    • Unit - Add Dragon Sword to (Sold unit)

    The first line of the trigger is event, the second is condition and the third is action. I dunno y the trigger tag i used didnt work lol. Of course you just modify the trigger i used for however your gointa use your unit in your map.
     
  3. Bwathke

    Bwathke

    Joined:
    May 22, 2009
    Messages:
    482
    Resources:
    0
    Resources:
    0
    Thank you but I found out that in WE Unlimited they have the special effect ability in triggers so I can do it like in TFT but +rep and good for a newbie ;)
     
  4. Tarfen

    Tarfen

    Joined:
    May 2, 2009
    Messages:
    133
    Resources:
    0
    Resources:
    0
    There is a very easy way to do this and this is how i do..
    Go to the object editor...go to abilities and then click on new ability then change the "Units" abilities to "Items" and take the Armor Bonus +1 since it is the easiest...when you have it change name to whatever weapon you wunt it to be named, then change the Item - Ability to False so that your units can use it then change Art - Target Attachment Point 1 to right and then hand in separate strings
    this will place it in your right hand, you can also do the same thing as left and then hand
    there are other string names but i forget what they are called you could just google it though, there is a whole list of them...
     
  5. SunTzu7387

    SunTzu7387

    Joined:
    Mar 28, 2009
    Messages:
    66
    Resources:
    0
    Resources:
    0
    yes you can also attach the special effect to the unit in triggers as well without using the ability i put down.
     
  6. Bwathke

    Bwathke

    Joined:
    May 22, 2009
    Messages:
    482
    Resources:
    0
    Resources:
    0
    Yea but I cant figure out how to make them lose the attachment when they drop the item xD
     
  7. Tarfen

    Tarfen

    Joined:
    May 2, 2009
    Messages:
    133
    Resources:
    0
    Resources:
    0
    oh yea you can do that too if you dont change the item ability to false and keep it as true, then it will act like an item

    Attachments are really quite easy >.<
     
  8. Bwathke

    Bwathke

    Joined:
    May 22, 2009
    Messages:
    482
    Resources:
    0
    Resources:
    0
    yea but not in RoC xD ill try that thanks

    EDIT: no go :p
     
  9. SunTzu7387

    SunTzu7387

    Joined:
    Mar 28, 2009
    Messages:
    66
    Resources:
    0
    Resources:
    0
    ok i couldnt figure out how to make the trigger work with the spec effects to destroy the spec effect you want do make but I did figure out how to do it my way. If you do everything i told u to above (minus that old trigger I told you) , then create two triggers the first should say...

    • Unit - A unit Sells an item (from shop)
    • (Item-type of (Sold Item)) Equal to Searing Blade
    • Unit - Add Dragon Sword to (Buying Unit)


    Then the second trigger I tested can be like this...
    • Unit - A unit Pawns and item (to shop)
    • ((Item-type of (Sold Item)) Equal to Searing Blade
    • Unit - Remove Dragon Sword from (Selling Unit)


    I tested it on my map and it worked so you now can edit it to whatever u want to in order to suit your map. Oh and im not a newb anymore lol. Im like in the middle ground now.
     
  10. Bwathke

    Bwathke

    Joined:
    May 22, 2009
    Messages:
    482
    Resources:
    0
    Resources:
    0
    Actions-
    Unit - Unit Acquires an Item

    Conditions-
    Item Equal to Longsword

    Actions-
    Special Effect - Add a Special Effect to (Triggering Unit) targeting right hand using model file (war3mapimported\longsword.mdx)

    Thats in UMSWE 4.1 and WEU