- Joined
- May 11, 2012
- Messages
- 2,103
Can somebody take a good look at these triggers and tell me why sometimes this fails to combine charges from items I buy from shop/pick from ground?
There are times where I'll pick same item from the ground that I have in the inventory and it will just be there and won't fuse with existing item until I drop it and pick it up again, then it fuses.
There are times where I'll pick same item from the ground that I have in the inventory and it will just be there and won't fuse with existing item until I drop it and pick it up again, then it fuses.
-
Item Purchase Stack
-
Events
- Unit - A unit Sells an item (from shop)
- Conditions
-
Actions
- -------- ------------------------------------------------------------------------------------- --------
- Set TempUnit = (Buying unit)
- Set TempItem = (Sold Item)
- -------- ------------------------------------------------------------------------------------- --------
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
-
Or - Any (Conditions) are true
-
Conditions
- (Item-type of TempItem) Equal to Ankh
- (Item-type of TempItem) Equal to Health Potion
- (Item-type of TempItem) Equal to Mana Potion
- (Item-type of TempItem) Equal to Ursa Warrior
-
Conditions
- (TempUnit has an item of type (Item-type of TempItem)) Equal to True
- TempItem Not equal to (Item carried by TempUnit of type (Item-type of TempItem))
-
Or - Any (Conditions) are true
-
Then - Actions
- -------- ------------------------------------------------------------------------------------- --------
- Item - Set charges remaining in (Item carried by TempUnit of type (Item-type of TempItem)) to ((Charges remaining in (Item carried by TempUnit of type (Item-type of TempItem))) + 3)
- Hero - Drop TempItem from TempUnit
- Item - Remove TempItem
- -------- ------------------------------------------------------------------------------------- --------
-
Else - Actions
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
-
Or - Any (Conditions) are true
-
Conditions
- (Item-type of TempItem) Equal to Invurnerability
- (Item-type of TempItem) Equal to Infernal Warrior
-
Conditions
- (TempUnit has an item of type (Item-type of TempItem)) Equal to True
- TempItem Not equal to (Item carried by TempUnit of type (Item-type of TempItem))
-
Or - Any (Conditions) are true
-
Then - Actions
- -------- ------------------------------------------------------------------------------------- --------
- Item - Set charges remaining in (Item carried by TempUnit of type (Item-type of TempItem)) to ((Charges remaining in (Item carried by TempUnit of type (Item-type of TempItem))) + 1)
- Hero - Drop TempItem from TempUnit
- Item - Remove TempItem
- -------- ------------------------------------------------------------------------------------- --------
- Else - Actions
-
If - Conditions
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
- -------- ------------------------------------------------------------------------------------- --------
- Custom script: set udg_TempUnit = null
- Custom script: set udg_TempItem = null
- -------- ------------------------------------------------------------------------------------- --------
-
Events
-
Item Charges Stack
-
Events
- Unit - A unit Acquires an item
-
Conditions
-
Or - Any (Conditions) are true
-
Conditions
- (Item-type of (Item being manipulated)) Equal to Ankh
- (Item-type of (Item being manipulated)) Equal to Health Potion
- (Item-type of (Item being manipulated)) Equal to Mana Potion
- (Item-type of (Item being manipulated)) Equal to Invurnerability
- (Item-type of (Item being manipulated)) Equal to Ursa Warrior
- (Item-type of (Item being manipulated)) Equal to Infernal Warrior
-
Conditions
- ((Hero manipulating item) has an item of type (Item-type of (Item being manipulated))) Equal to True
- (Item being manipulated) Not equal to (Item carried by (Hero manipulating item) of type (Item-type of (Item being manipulated)))
-
Or - Any (Conditions) are true
-
Actions
- -------- ------------------------------------------------------------------------------------- --------
- Item - Set charges remaining in (Item carried by (Hero manipulating item) of type (Item-type of (Item being manipulated))) to ((Charges remaining in (Item carried by (Hero manipulating item) of type (Item-type of (Item being manipulated)))) + (Charges remaining in (Item being manipulated)))
- Hero - Drop (Item being manipulated) from (Hero manipulating item)
- Item - Remove (Item being manipulated)
- -------- ------------------------------------------------------------------------------------- --------
-
Events