ryerye1996
Cool Member
- Reaction score
- 5
Is there a way to increase the charges of a Miscellaneous item? Because
for some reason, this trigger doesnt work.....
Charges
Events
Unit - A unit Acquires an item
Conditions
(Item-class of (Item being manipulated)) Equal to Miscellaneous
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
(Charges remaining in (Item carried by (Triggering unit) of type (Item-type of (Item being manipulated)))) Greater than or equal to 1
(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
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
for some reason, this trigger doesnt work.....
Charges
Events
Unit - A unit Acquires an item
Conditions
(Item-class of (Item being manipulated)) Equal to Miscellaneous
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
(Charges remaining in (Item carried by (Triggering unit) of type (Item-type of (Item being manipulated)))) Greater than or equal to 1
(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
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