- Joined
- Jun 17, 2010
- Messages
- 2,275
I made a item stacking system for 1 item. The problem is, Once somone buys the potion, no one else can or it removes it from their inventory, the one who originally bought it has to keep atleast 1 charge or they can never get the item again, And if the person who has 1 charge buys another one it makes it 4 charges. But its only supposed to be 3.
-
Potion of Regen
-
Events
- Unit - A unit Acquires an item
-
Conditions
- (Item-type of (Item being manipulated)) Equal to Potion of Regeneration
-
Actions
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
- (Unit-type of (Triggering unit)) Equal to Hero of Blade
- Potion_Of_Regen[2] Equal to 1
-
Then - Actions
- Item - Remove (Item carried by (Triggering unit) of type Potion of Regeneration)
- Item - Set charges remaining in (Item carried by (Triggering unit) of type Potion of Regeneration) to ((Charges remaining in (Item carried by (Triggering unit) in slot 1)) + 2)
-
Else - Actions
- Set Potion_Of_Regen[2] = 1
-
If - Conditions
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
- (Unit-type of (Triggering unit)) Equal to Hero of Shield
- Potion_Of_Regen[1] Equal to 1
-
Then - Actions
- Item - Remove (Item carried by (Triggering unit) of type Potion of Regeneration)
- Item - Set charges remaining in (Item carried by (Triggering unit) of type Potion of Regeneration) to ((Charges remaining in (Item carried by (Triggering unit) in slot 1)) + 2)
-
Else - Actions
- Set Potion_Of_Regen[1] = 1
-
If - Conditions
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
Events