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])