kelogsloops
You can change this now in User CP.
- Reaction score
- 45
How do u make items stackable?
Charged Items stack
Events
Unit - A unit Acquires an item
Conditions
(Item-class of (Item being manipulated)) Equal to Charged
Actions
For each (Integer ItemMerging) from 1 to 6, do (Actions)
Loop - Actions
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
(Item-type of (Item being manipulated)) Equal to (Item-type of (Item carried by (Hero manipulating item) in slot ItemMerging))
(Item being manipulated) Not equal to (Item carried by (Hero manipulating item) in slot ItemMerging)
Then - Actions
Item - Set charges remaining in (Item carried by (Hero manipulating item) in slot ItemMerging) to ((Charges remaining in (Item carried by (Hero manipulating item) in slot ItemMerging)) + (Charges remaining in (Item being manipulated)))
Item - Remove (Item being manipulated)
Else - Actions
Do nothing
For each (Integer ItemMerging) from 1 to 6, do (Actions)
In this line where is says 'ItemMerging' is this a custom Variable? i'm trying to follow the code exactly but am not sure what to do here.
I tried to make a variable was not sure what i was doing. End result i cannot use the variable i have made.
Would 'For each Interger A, do multipule actions' work just as well?
Variable Name: ItemMerging
Variable Type: Integer
No array
Initial Value: 0