Hey all. I had an issue with the below trigger that was resolved, but now I have ran into another. The trigger below works, however, if a different Hero besides "Assassin" tries to buy the item it lets them.
I want it to work for multiple classes with multiple items. Should I just use a completely different trigger? Any advice on how to fix mine?
Help is greatly appreciated!
I want it to work for multiple classes with multiple items. Should I just use a completely different trigger? Any advice on how to fix mine?
Help is greatly appreciated!
-
Assassin Class Item
-
Events
- Unit - Tinker 0021 <gen> Sells an item (from shop)
-
Conditions
- ((Buying unit) is A Hero) Equal to True
-
Actions
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
- (Item-type of (Sold Item)) Equal to Arcaneus
- ((Buying unit) has an item of type Dragon's Heart) Equal to True
- (Unit-type of (Buying unit)) Equal to Assassin (Evil)
-
Then - Actions
- Hero - Create Arcaneus and give it to (Buying unit)
- Item - Remove (Item carried by (Buying unit) of type Dragon's Heart)
- Player - Add -10000 to (Owner of (Buying unit)) Current gold
-
Else - Actions
- Item - Remove (Sold Item)
- Player - Add 10000 to (Triggering player) Current gold
-
If - Conditions
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
Events