n4bieclimber
New Member
- Reaction score
- 1
owk heres the sit. i want that if i pick up an item that i already have that it combines the usages of those 2 in one.
what happens is it combines the 2 but only if i already have one if i dont they dissappear in thin air. I also want to limit the usages to lets say 10
srry if this has been posted yet but i dont know on what keywords i should search. most hits are about recipe systems.
Code:
Untitled Trigger 001
Events
Unit - A unit Acquires an item
Conditions
((Item being manipulated) is owned) Equal to True
Actions
Set Charges = (Charges remaining in (Item carried by (Triggering unit) of type (Item-type of (Item being manipulated))))
Set charges_picked_up = (Charges remaining in (Item being manipulated))
Item - Set charges remaining in (Item carried by (Triggering unit) of type (Item-type of (Item being manipulated))) to (Charges + charges_picked_up)
Item - Remove (Item being manipulated)
what happens is it combines the 2 but only if i already have one if i dont they dissappear in thin air. I also want to limit the usages to lets say 10
srry if this has been posted yet but i dont know on what keywords i should search. most hits are about recipe systems.