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

Having only one weapon, armor, etc

Status
Not open for further replies.
Level 2
Joined
Sep 7, 2005
Messages
15
Alright, I want only one weapon, armor, and 2 accessories equipped. I tried this, but I dunno why it doesn't work. I wish it'd would! If anyone's already solved this, please send me the trigger. I don't care if it's JASS or whatever.
 
Level 6
Joined
Sep 17, 2005
Messages
276
In my opinion its the easiest way to create a new item which has the weapon attachment. then every unit carrying this item has the weapon attached.

1) make new custom item based of -for example- the crown of kings. delete the ability and edit it like u want

2) now u have to make a new ability based of a permanent spell -for example like- item fire orb. Go to the row art-target and choose your weapon model you want to be attached.
Next line (target-attachment point) u have to choose where the weapon should be attached. here a list:

overhead (floats over the unit's head, but doesn't sway with the head as it animates)
head (sways with the unit's animation)
chest
origin (usually at the base of a unit's feet)
hand
foot
weapon (for heroes)
sprite (for buildings)
medium (for buildings)
large (for buildings)

left
right
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)


so for example you add hand and left this line.
Next edit the ability till its ready for you.

All you have to do now is to add the ability to your new item. Make shure you used a permanent ability as base and your item is not perishable but constant.

Now all units which support attached weapons show up with the weapon as the item is worn.
 
Level 18
Joined
Mar 7, 2005
Messages
824
This is a good post and also easy to understand, but first i want to say, to use the flag item and change the settings to ur one is a simplier and saver way to do it .. whatever

u havent read the post exactly, because i think he wants to know how a hero cant equip two items from the same type like u cant wield two crown of kings or something like that, so he will need a trigger like when a unit aquires an item, with condition item that equiped = same like the wielding, then action drop it from the hero...

i mis my wc3 cd so i cant open the editor to look at the exactly triggers u need but they similar and easy to found, u also could look around in the forum here, i have seen a post with exactly the same question and a good answer of somebody, its arent so long ago that he posted it, so it may on the pages 1-10 ot more ;) good luck
 
Level 6
Joined
Sep 17, 2005
Messages
276
Tr!KzZ said:
u havent read the post exactly, because i think he wants to know how a hero cant equip two items from the same type like u cant wield two crown of kings or something like that, so he will need a trigger like when a unit aquires an item, with condition item that equiped = same like the wielding, then action drop it from the hero...

Well... i just thought he wanted to equip a custom modelled armor and weapon, so... phew damn i really have to improve my english skills :wink:
 
Level 2
Joined
May 9, 2005
Messages
11
Youre in luck, I just figured this one out for my own map. I assume you only want them to have one of each type of item? well for that trigger it like this:
1. First create 3 variables; heroweapon, heroarmor, heroacessorie.
2. Make your weapons classified as artifacts, your armor classified as campaign, and your accessories classified as permanent.
3. Creat these triggers:
Weapon 1
Event-
A unit acquires an item.
Condition-
item type of item being manipulated equal to artifact
Action-
Wait .01 seconds
Set variable heroweapon equal to heroweapon + 1

Weapon 2
Event-
A untit acquires an item.
condition-
item type of itme being manipulated equal to artifact
Action-
IF heroweapon = 1 THEN Drop last picked up itme from triggering unit. ELSE do nothing.

Weapon 3
Event-
A unit loses an item.
condition-
item type of item being manipulated equal to artifact
Action-
set heroweapon eqaul to heroweapon - 1

Then for armo do the same thing, only change 'artifact' to 'campaing' and use the heroarmor variable

For acessories, change the second trigger to

Action-
IF heroacessories equal to 2 THEN Drop last picked up item from hero. ELSE do nothing.

That should do it. If you want to do it for multiple units, create the 3 variables for each one, and make a condition that specifys that the triggering unit must be 'hero 1' or 'hero 2' etc. youll have to make a new set of triggers for each hero, but its easy if ctrl-c ctrl-v and just change some things in the triggers.

Hope that works. If that doesn't I can put together an example map for you. ([email protected])
 
Status
Not open for further replies.
Top