I made an item that is Effects-based (the item data that allows you to set charges, Effect, etc), I set it to have say 5 starting out of 10 charges and pickable in inventory. I have another unit/item (the charger/ammo) also Effect-based with 1 charge. I want this charger item that also in inventory to be able to add 1 charge to the main item when the charger is used. It is ok this charger to be inventory item too and not a Powerup (Auto) because, it would be wasted if it were picked and auto-used without the weapon.
I read about Vulture Replenish Mine but it adds charge to an ability right? Not to an Effect as in my case, actually it should add to the Unit that is the pickable item. So how do I do that?
Both the weapon and the charger are inventory items. Either dropping the weapon on the ground and targeting it with the charger item giving it +1 charge or even better - using the item in the inventory and giving the +1 charge to the weapon also in inventory, without having to target it.
I made an item that is Effects-based (the item data that allows you to set charges, Effect, etc), I set it to have say 5 starting out of 10 charges and pickable in inventory. I have another unit/item (the charger/ammo) also Effect-based with 1 charge. I want this charger item that also in inventory to be able to add 1 charge to the main item when the charger is used. It is ok this charger to be inventory item too and not a Powerup (Auto) because, it would be wasted if it were picked and auto-used without the weapon.
I read about Vulture Replenish Mine but it adds charge to an ability right? Not to an Effect as in my case, actually it should add to the Unit that is the pickable item. So how do I do that?
SOLVED through triggers:
http://www.sc2mapster.com/forums/development/triggers/27232-solved-found-out-how-to-add-charge-to-item/#p2
Both the weapon and the charger are inventory items. Either dropping the weapon on the ground and targeting it with the charger item giving it +1 charge or even better - using the item in the inventory and giving the +1 charge to the weapon also in inventory, without having to target it.
Is there a way to do it with Data editor?
Use player based charges. Won't work properly if the receiving item isn't unique.
Ok how do I do that?