Code:
Stout Shield
Events
Unit - A unit Acquires an item
Conditions
Or - Any (Conditions) are true
Conditions
(Item-type of (Item being manipulated)) Equal to Stout Shield
(Item-type of (Item being manipulated)) Equal to Stout Shield - Melee
(Item-type of (Item being manipulated)) Equal to Stout Shield - Ranged
Actions
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
((Hero manipulating item) is A ranged attacker) Equal to True
Then - Actions
Item - Remove (Item being manipulated)
Hero - Create Stout Shield - Ranged and give it to (Triggering unit)
Else - Actions
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
((Hero manipulating item) is A melee attacker) Equal to True
Then - Actions
Item - Remove (Item being manipulated)
Hero - Create Stout Shield - Melee and give it to (Triggering unit)
Else - Actions
Just like in DotA, it's just supposed to make it so that when a Hero picks up the Stout Shield, if you're ranged, you get the ranged item and vice versa. But this thing keeps crashing on me. I don't get it @_@ Any help please?