# [Trigger]Problem with maxing items in all slots

Status
Not open for further replies.

#### CrueIIntentions

Level 9
I have this trigger. It works out farely well. I have one problem however. I cannot set the remaining charges in any slot if all my inventory slots are full. Any ideas?

• Events
• Unit - A unit Acquires an item
• Conditions
• (Item-class of (Item being manipulated)) Equal to Charged
• Actions
• For each (Integer A) 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 (Triggering unit) in slot (Integer A))) Equal to (Item-type of (Item being manipulated))
• (Item carried by (Triggering unit) in slot (Integer A)) Not equal to (Item being manipulated)
• Then - Actions
• If (All Conditions are True) then do (Then Actions) else do (Else Actions)
• If - Conditions
• (Charges remaining in (Item carried by (Triggering unit) in slot (Integer A))) Less than 10
• Then - Actions
• If (All Conditions are True) then do (Then Actions) else do (Else Actions)
• If - Conditions
• ((Charges remaining in (Item being manipulated)) + (Charges remaining in (Item carried by (Triggering unit) in slot (Integer A)))) Less than or equal to 10
• Then - Actions
• Item - Set charges remaining in (Item carried by (Triggering unit) in slot (Integer A)) to ((Charges remaining in (Item carried by (Triggering unit) in slot (Integer A))) + (Charges remaining in (Item being manipulated)))
• Item - Remove (Item being manipulated)
• Else - Actions
• Else - Actions
• Else - Actions

#### onix_noob

Level 9
First of all you can't pick items with full inventory. Second in the trigger i can't see any other problem. You main problem is that you can't pick the items from the ground so have fun finding a way around.

#### CrueIIntentions

Level 9
what about if i select the set the boolean use automatically?

#### SanKakU

Level 13
you can pick up items that are powerups. you have to use the powerup fake item method forsetting charges. my stackitems system works pretty well, and can be found in my TDHT map. it even automatically stacks charged items. iow, an item bought with 10 charges can be bought ten times and you can get 100 charge item.

Status
Not open for further replies.

[Trigger] Stack Item
Replies
5
Views
999
Replies
5
Views
3K
Replies
7
Views
744
Replies
15
Views
1K
[Trigger] Recipe problem
Replies
2
Views
629