How to increase charges of item?

F

fattyghost

Guest
I wan to make increase of charges of item when the unit pick the item...
How do i make it ? I try to using this stupid trigger ...

Code:
Events
    Unit - A unit Acquires an item

Conditions
    ((Triggering unit) has an item of type (Item-type of (Item being manipulated))) Equal to True
    (Item-class of (Item being manipulated)) Equal to Charged

Actions
    Item - Set charges remaining in (Item carried by (Hero manipulating item) of type (Item-type of (Item being manipulated))) to ((Charges remaining in (Item carried by (Hero manipulating item) of type (Item-type of (Item being manipulated)))) + (Charges remaining in (Item being manipulated)))

When the unti pick the item up , it initially become 2...
If i put a

Item - Remove (Item being manipulated)

the unti can pick any item...
Please help me..
 

Ghost32

New Member
Reaction score
1
just set the amout of charges to 0 in the object editer to get inf charges or u can change number of charges in the object editer also
 
F

fattyghost

Guest
Tried ... But the item i pick up still remain , how to i remove the item i pick up if the unit already have that kind of item...
Because i just wan to incrase the charges , not the amount = =:banghead:
 
General chit-chat
Help Users
  • No one is chatting at the moment.

      The Helper Discord

      Staff online

      Members online

      Affiliates

      Hive Workshop NUON Dome World Editor Tutorials

      Network Sponsors

      Apex Steel Pipe - Buys and sells Steel Pipe.
      Top