- Joined
- Jul 15, 2018
- Messages
- 111
I have a hero ability that has an added effect of turning the team of the targeted unit via triggers. How do I go about modifying the triggers so that it works as an item ability?
Working hero ability (no event):
Conditions
(Ability being cast) Equal to Madness |c0096FF96 [W]|r
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
((Target unit of ability being cast) is A Hero) Equal to False
(Unit-type of (Target unit of ability being cast)) Not equal to |cffd27e00Wife|r
(Unit-type of (Target unit of ability being cast)) Not equal to |cffd27e00Husband|r
(Unit-type of (Target unit of ability being cast)) Not equal to Son
(Unit-type of (Target unit of ability being cast)) Not equal to Daughter
Then - Actions
Unit - Change ownership of (Target unit of ability being cast) to Neutral Hostile and Change color
Else - Actions
I have tried several methods for items, but no luck.
Conditions
(Item-type of (Item being manipulated)) Equal to Rage dust
Actions
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
((Targeted unit) is A Hero) Equal to False
((Targeted unit) is A structure) Equal to False
(Unit-type of (Target unit of issued order)) Not equal to |cffd27e00Wife|r
(Unit-type of (Target unit of issued order)) Not equal to |cffd27e00Husband|r
(Unit-type of (Target unit of issued order)) Not equal to Son
(Unit-type of (Target unit of issued order)) Not equal to Daughter
Then - Actions
Unit - Change ownership of (Target unit of ability being cast) to Neutral Hostile and Change color
Else - Actions
Thanks in advance
Working hero ability (no event):
Conditions
(Ability being cast) Equal to Madness |c0096FF96 [W]|r
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
((Target unit of ability being cast) is A Hero) Equal to False
(Unit-type of (Target unit of ability being cast)) Not equal to |cffd27e00Wife|r
(Unit-type of (Target unit of ability being cast)) Not equal to |cffd27e00Husband|r
(Unit-type of (Target unit of ability being cast)) Not equal to Son
(Unit-type of (Target unit of ability being cast)) Not equal to Daughter
Then - Actions
Unit - Change ownership of (Target unit of ability being cast) to Neutral Hostile and Change color
Else - Actions
I have tried several methods for items, but no luck.
Conditions
(Item-type of (Item being manipulated)) Equal to Rage dust
Actions
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
((Targeted unit) is A Hero) Equal to False
((Targeted unit) is A structure) Equal to False
(Unit-type of (Target unit of issued order)) Not equal to |cffd27e00Wife|r
(Unit-type of (Target unit of issued order)) Not equal to |cffd27e00Husband|r
(Unit-type of (Target unit of issued order)) Not equal to Son
(Unit-type of (Target unit of issued order)) Not equal to Daughter
Then - Actions
Unit - Change ownership of (Target unit of ability being cast) to Neutral Hostile and Change color
Else - Actions
Thanks in advance