I have tried to make a trigger that adds a research level to an upgrade every time you pick up a special item. And another upgrade that decrease the attack range when dropping the item.
Upgrade that increases range:

Upgrade that increases range:
-
Events - Unit- A unit Acquires an item
-
Conditions - (item-type of(item being manipulated)) Equal to WoodenBow
-
Actions - Player- Set the current research level of RangeIncrease upgrade to (0+1) for owner of ( Triggering unit))
-
Events - Unit- A unit Loses an item
-
Conditions - (item-type of(item being manipulated)) Equal to WoodenBow
-
Actions - Player- Set the current research level of RangeDecrease upgrade to (0+1) for owner of ( Triggering unit))



I'm not that good with variables, but I maid one named X, typ: integer, but what size should I use?? 0 or 1 ??
don't work 







Can all please try a alike thing, and please post here or PM me if you have found something of a solution to my problem. I will give rep+.



REP to: Wolfman, Vegavak and Dr super Good!!! If you want rep for something you wrote in this tread, then PM me!, if I see that your post lead me to the anwer, then I will also rep you!