ryerye1996
Cool Member
- Reaction score
- 5
How can you make an item have a limit amount of charges? i alredy know how to make an item gain charges.
This is what i have for the trigger:
Events
Unit - A unit Acquires an item
Conditions
(Item-class of (Item being manipulated)) Equal to Charged
(Charges remaining in (Item being manipulated)) Greater than 20
Actions
Hero - Create (Item-type of (Item being manipulated)) and give it to (Hero manipulating item)
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
(Charges remaining in (Item being manipulated)) Greater than 20
(Size of inventory for (Hero manipulating item)) Equal to 6
Then - Actions
Item - Remove (Item being manipulated)
Else - Actions
Do nothing
but, when i do this, the item continues to stack (just to let you know, the if,then,else action is that if your inventory is full you dont get an item)
This is what i have for the trigger:
Events
Unit - A unit Acquires an item
Conditions
(Item-class of (Item being manipulated)) Equal to Charged
(Charges remaining in (Item being manipulated)) Greater than 20
Actions
Hero - Create (Item-type of (Item being manipulated)) and give it to (Hero manipulating item)
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
(Charges remaining in (Item being manipulated)) Greater than 20
(Size of inventory for (Hero manipulating item)) Equal to 6
Then - Actions
Item - Remove (Item being manipulated)
Else - Actions
Do nothing
but, when i do this, the item continues to stack (just to let you know, the if,then,else action is that if your inventory is full you dont get an item)