Hey All,
Having trouble with a Class Item Trigger I have set up. Now, I have multiple triggers like this for each Class and every one is sold form a different vendor. The problem, is that if the wrong class tries to buy the item, it doesn't give it to them, but it DOES give them the stats and the stats are stuck on the character. Also, if you are the correct class and you buy the item but drop it later, it still leaves the stats on the character.
Any ideas? If you have a better trigger for this in general, that works as well.
Having trouble with a Class Item Trigger I have set up. Now, I have multiple triggers like this for each Class and every one is sold form a different vendor. The problem, is that if the wrong class tries to buy the item, it doesn't give it to them, but it DOES give them the stats and the stats are stuck on the character. Also, if you are the correct class and you buy the item but drop it later, it still leaves the stats on the character.
Any ideas? If you have a better trigger for this in general, that works as well.
Code:
Brewmaster Class Item
Events
Unit - Blacksmith Jr. Jr. 0102 <gen> 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 Artimus
((Buying unit) is A Hero) Equal to True
(Unit-type of (Buying unit)) Equal to Brewmaster
((Buying unit) has an item of type Dragon's Heart) Equal to True
Then - Actions
Item - Remove (Item carried by (Buying unit) of type Dragon's Heart)
Else - Actions
Item - Remove (Sold Item)