explain pls, im new too editor
If you are new to editor, then my way is probably too hard.
However, since you asked, then I will try to explain.
Firstly, you can probably do all this in GUI(normal trigger editor), but it will be even harder. That's because GUI is somewhat limited(no local variables, mainly).
Basically the best way known to me, for changing stats midgame, is using a bonusmod.
What is a bonusmod?
It's a system that uses a bunch of abilities to modify the attributes of units. This especially goes for values that do not even have trigger functions by default(such as armor).
The abilities that a bonusmod uses are always based on powers of 2(1,2,4,8,16,32...) - Why? Because this takes the lowest amount of abilities of any way known to me.
What does this have to do with changing how much an item gives you attributes? - Basically you make 3 triggers. In the first you use variable arrays to define some items. Something like:
-
Set ItemType[1] = Claws of Attack
-
Set ItemDamage[1] = 5
-
Set ItemTypes = 1
That way you define all the items and what attributes you want to give them.
In the second trigger you detect when an item is picked up and then give the unit abilities, according to what stats you want to give and how much.
In the third trigger you turn this process around - You detect when an item is lost and reduce the stats back.
Note that some things can be changed through simple GUI functions(probably), such as hero str/agi/int. However, most stats can not.
The map attached contains my own BonusMod and a variety of other systems that I will not bother to remove from it. They might also turn out to be useful to you, if you figure out how they work.
In order to use this map you need
JNGPE. This is a modified editor that makes triggering much easier in JASS and also enables vJASS(which makes some things easier). However, vJASS also makes maps unopenable to the normal editor, since the usual editor can't understand vJASS at all.
I could talk about all this way longer, but first I need to know exactly what you can and can't do now. Then I will know how to present all this information and whether you even want it.