The_Reaping
Member
- Reaction score
- 2
Here's a simple way for item stacking, doesn't work for full inventory I don't think. Haven't tried it for that yet. Fully GUI
Trigger:
- Item Stacking
- Events
- Unit - A unit Sells an item (from shop)
- Conditions
- (Item-class of (Sold Item)) Equal to Purchasable
- Actions
- For each (Integer B) 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 carried by (Buying unit) in slot (Integer B))) Equal to (Item-type of (Sold Item))
- Then - Actions
- If (All Conditions are True) then do (Then Actions) else do (Else Actions)
- If - Conditions
- (Charges remaining in (Item carried by (Buying unit) of type (Item-type of (Item carried by (Buying unit) in slot (Integer B))))) Greater than 0
- Then - Actions
- Item - Set charges remaining in (Item carried by (Buying unit) in slot (Integer B)) to ((Charges remaining in (Item carried by (Buying unit) in slot (Integer B))) + (Charges remaining in (Sold Item)))
- Item - Remove (Sold Item)
- Else - Actions
- If - Conditions
- If (All Conditions are True) then do (Then Actions) else do (Else Actions)
- Else - Actions
- If - Conditions
- If (All Conditions are True) then do (Then Actions) else do (Else Actions)
- Loop - Actions
- For each (Integer B) from 1 to 6, do (Actions)
- Events