- Joined
- Aug 14, 2006
- Messages
- 7,610
Hello.
I have a system that combines flowers and a flask together to create a powerful potion. The system currently bugs and I can't find what's wrong. At the moment, always a flower is removed / charge goes 1 down. But the flask never loses a charge / won't disappear. I wonder what's wrong?
The one who can help will have some rep & credits.
I have a system that combines flowers and a flask together to create a powerful potion. The system currently bugs and I can't find what's wrong. At the moment, always a flower is removed / charge goes 1 down. But the flask never loses a charge / won't disappear. I wonder what's wrong?
The one who can help will have some rep & credits.
-
Random Potion
-

Events
-


Unit - A unit Starts the effect of an ability
-
-

Conditions
-


(Ability being cast) Equal to 5Random Item (Alchemist) (BOTH)
-
-

Actions
-


Set TempUnit = (Casting unit)
-


Set AlchemistUnit = (Casting unit)
-


Set ItemType[1] = Anglalor
-


Set ItemType[2] = Triangle Flask
-


If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-



If - Conditions
-




(Charges remaining in (Item carried by TempUnit of type ItemType[1])) Greater than or equal to 1
-




(Charges remaining in (Item carried by TempUnit of type ItemType[2])) Greater than or equal to 1
-
-



Then - Actions
-




If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-





If - Conditions
-






(Charges remaining in (Item carried by TempUnit of type ItemType[1])) Greater than 1
-
-





Then - Actions
-






Item - Set charges remaining in (Item carried by TempUnit of type ItemType[1]) to ((Charges remaining in (Item carried by TempUnit of type ItemType[1])) - 1)
-
-





Else - Actions
-






Item - Remove (Item carried by TempUnit of type ItemType[1])
-
-
-




If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-





If - Conditions
-






(Charges remaining in (Item carried by TempUnit of type ItemType[2])) Greater than 1
-
-





Then - Actions
-






Item - Set charges remaining in (Item carried by TempUnit of type ItemType[2]) to ((Charges remaining in (Item carried by TempUnit of type ItemType[2])) - 1)
-
-





Else - Actions
-






Item - Remove (Item carried by TempUnit of type ItemType[2])
-
-
-




Special Effect - Create a special effect attached to the origin of TempUnit using Abilities\Spells\NightElf\MoonWell\MoonWellCasterArt.mdl
-




Special Effect - Destroy (Last created special effect)
-




Trigger - Run Random Potion 2 <gen> (checking conditions)
-
-



Else - Actions
-




Set ItemType[1] = Bahmn
-




Set ItemType[2] = Triangle Flask
-




If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-





If - Conditions
-






(Charges remaining in (Item carried by TempUnit of type ItemType[1])) Greater than or equal to 1
-






(Charges remaining in (Item carried by TempUnit of type ItemType[2])) Greater than or equal to 1
-
-





Then - Actions
-






If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-







If - Conditions
-








(Charges remaining in (Item carried by TempUnit of type ItemType[1])) Greater than 1
-
-







Then - Actions
-








Item - Set charges remaining in (Item carried by TempUnit of type ItemType[1]) to ((Charges remaining in (Item carried by TempUnit of type ItemType[1])) - 1)
-
-







Else - Actions
-








Item - Remove (Item carried by TempUnit of type ItemType[1])
-
-
-






If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-







If - Conditions
-








(Charges remaining in (Item carried by TempUnit of type ItemType[2])) Greater than 1
-
-







Then - Actions
-








Item - Set charges remaining in (Item carried by TempUnit of type ItemType[2]) to ((Charges remaining in (Item carried by TempUnit of type ItemType[2])) - 1)
-
-







Else - Actions
-








Item - Remove (Item carried by TempUnit of type ItemType[2])
-
-
-






Special Effect - Create a special effect attached to the origin of TempUnit using Abilities\Spells\NightElf\MoonWell\MoonWellCasterArt.mdl
-






Special Effect - Destroy (Last created special effect)
-






Trigger - Run Random Potion 2 <gen> (checking conditions)
-
-





Else - Actions
-






Set ItemType[1] = Monthana
-






Set ItemType[2] = Triangle Flask
-






If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-







If - Conditions
-








(Charges remaining in (Item carried by TempUnit of type ItemType[1])) Greater than or equal to 1
-








(Charges remaining in (Item carried by TempUnit of type ItemType[2])) Greater than or equal to 1
-
-







Then - Actions
-








If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-









If - Conditions
-










(Charges remaining in (Item carried by TempUnit of type ItemType[1])) Greater than 1
-
-









Then - Actions
-










Item - Set charges remaining in (Item carried by TempUnit of type ItemType[1]) to ((Charges remaining in (Item carried by TempUnit of type ItemType[1])) - 1)
-
-









Else - Actions
-










Item - Remove (Item carried by TempUnit of type ItemType[1])
-
-
-








If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-









If - Conditions
-










(Charges remaining in (Item carried by TempUnit of type ItemType[2])) Greater than 1
-
-









Then - Actions
-










Item - Set charges remaining in (Item carried by TempUnit of type ItemType[2]) to ((Charges remaining in (Item carried by TempUnit of type ItemType[2])) - 1)
-
-









Else - Actions
-










Item - Remove (Item carried by TempUnit of type ItemType[2])
-
-
-








Special Effect - Create a special effect attached to the origin of TempUnit using Abilities\Spells\NightElf\MoonWell\MoonWellCasterArt.mdl
-








Special Effect - Destroy (Last created special effect)
-








Trigger - Run Random Potion 2 <gen> (checking conditions)
-
-







Else - Actions
-








Set ItemType[1] = Riflo
-








Set ItemType[2] = Triangle Flask
-








If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-









If - Conditions
-










(Charges remaining in (Item carried by TempUnit of type ItemType[1])) Greater than or equal to 1
-










(Charges remaining in (Item carried by TempUnit of type ItemType[2])) Greater than or equal to 1
-
-









Then - Actions
-










If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-











If - Conditions
-












(Charges remaining in (Item carried by TempUnit of type ItemType[1])) Greater than 1
-
-











Then - Actions
-












Item - Set charges remaining in (Item carried by TempUnit of type ItemType[1]) to ((Charges remaining in (Item carried by TempUnit of type ItemType[1])) - 1)
-
-











Else - Actions
-












Item - Remove (Item carried by TempUnit of type ItemType[1])
-
-
-










If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-











If - Conditions
-












(Charges remaining in (Item carried by TempUnit of type ItemType[2])) Greater than 1
-
-











Then - Actions
-












Item - Set charges remaining in (Item carried by TempUnit of type ItemType[2]) to ((Charges remaining in (Item carried by TempUnit of type ItemType[2])) - 1)
-
-











Else - Actions
-












Item - Remove (Item carried by TempUnit of type ItemType[2])
-
-
-










Special Effect - Create a special effect attached to the origin of TempUnit using Abilities\Spells\NightElf\MoonWell\MoonWellCasterArt.mdl
-










Special Effect - Destroy (Last created special effect)
-










Trigger - Run Random Potion 2 <gen> (checking conditions)
-
-









Else - Actions
-










Set ItemType[1] = Lakhnos
-










Set ItemType[2] = Triangle Flask
-










If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-











If - Conditions
-












(Charges remaining in (Item carried by TempUnit of type ItemType[1])) Greater than or equal to 1
-












(Charges remaining in (Item carried by TempUnit of type ItemType[2])) Greater than or equal to 1
-
-











Then - Actions
-












If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-













If - Conditions
-














(Charges remaining in (Item carried by TempUnit of type ItemType[1])) Greater than 1
-
-













Then - Actions
-














Item - Set charges remaining in (Item carried by TempUnit of type ItemType[1]) to ((Charges remaining in (Item carried by TempUnit of type ItemType[1])) - 1)
-
-













Else - Actions
-














Item - Remove (Item carried by TempUnit of type ItemType[1])
-
-
-












If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-













If - Conditions
-














(Charges remaining in (Item carried by TempUnit of type ItemType[2])) Greater than 1
-
-













Then - Actions
-














Item - Set charges remaining in (Item carried by TempUnit of type ItemType[2]) to ((Charges remaining in (Item carried by TempUnit of type ItemType[2])) - 1)
-
-













Else - Actions
-














Item - Remove (Item carried by TempUnit of type ItemType[2])
-
-
-












Special Effect - Create a special effect attached to the origin of TempUnit using Abilities\Spells\NightElf\MoonWell\MoonWellCasterArt.mdl
-












Special Effect - Destroy (Last created special effect)
-












Trigger - Run Random Potion 2 <gen> (checking conditions)
-
-











Else - Actions
-












Game - Display to (All players) for 6.00 seconds the text: |c00FF0303You don't...
-
-
-
-
-
-
-
-
-
-
-
-








