- Joined
- Nov 20, 2007
- Messages
- 660
I'm having a probelm with my item trigger. It is supposed to make you unable to buy Boots of Agility from shop if you don't have Boots Recipe but it doesn't work ok. The item is removed but the stats are not removing, also i want to know if there are leaks. Thanks
Exemple : i buy boots of agility (boots of agility gives me 5 agility) but i don't have the recipe so the item (boots of agility) is removed but the stats are not removed (i still have 5 agility)
Exemple : i buy boots of agility (boots of agility gives me 5 agility) but i don't have the recipe so the item (boots of agility) is removed but the stats are not removed (i still have 5 agility)
-
Items
-
Events
- Unit - A unit Sells an item (from shop)
- Conditions
-
Actions
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
- (Item-type of (Sold Item)) Equal to Boots of Agility
-
Then - Actions
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
- ((Buying unit) has an item of type Boots Recipe) Equal to True
-
Then - Actions
- Special Effect - Create a special effect attached to the origin of (Buying unit) using Abilities\Spells\Items\AIem\AIemTarget.mdl
- Special Effect - Destroy (Last created special effect)
-
Else - Actions
- Hero - Drop (Sold Item) from (Buying unit)
- Item - Remove (Sold Item)
- Game - Display to (Player group((Owner of (Triggering unit)))) the text: This item requement...
-
If - Conditions
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
- Else - Actions
-
If - Conditions
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
Events