Warcraft III resources & community, 2003–2006 · archived

Weapon Triggers NEed help

2 posts
#1

Weapon Triggers NEed help

ok i am making a map and in the map all weapon items have attachments(sword,spear,sheild) and i whant it to be so you can only have one weapon and one sheild at a time so i made all weapons same class and sheild same class but i cant figure out what triggers i should use..

Can you help me?
#2
There are different ways.

Opportunity one:
You can ask for an item of the same class should look like something of that
Unit acquires an item

If triggering unit has and item of item-type(type of triggering item) then move triggering item to position of triggering unit

Opp two:
Work with variables!
Unit acquires an item

if item type of triggering item equal to (weapon) AND UnitHasWeapon equal to FALSE then Set Variable UnitHasWeapon TRUE else move item to position of triggering unit

That should work i think. Try it