- Joined
- Nov 5, 2008
- Messages
- 536
Hi!
I have made this trigger:
The enemy has Minions and Wraiths and the Villagers are neutral units.
The caster of this spell is supposed to convert any of these units into friendly Ents.
But I can not get my trigger to work. How can I do this instead?
I have made this trigger:
-
Convert Trigger
-
Events
- Unit - A unit Starts the effect of an ability
-
Conditions
- (Ability being cast) Equal to Convert (Neutral Hostile)
-
Actions
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
- (Unit-type of (Triggering unit)) Equal to Minion
- (Unit-type of (Triggering unit)) Equal to Wraith
- (Unit-type of (Triggering unit)) Equal to Villager (Male)
-
Then - Actions
- Unit - Replace (Triggering unit) with a Ent using The new unit's max life and mana
- Unit - Change ownership of (Triggering unit) to Player 1 (Red) and Change color
- Else - Actions
-
If - Conditions
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
Events
The enemy has Minions and Wraiths and the Villagers are neutral units.
The caster of this spell is supposed to convert any of these units into friendly Ents.
But I can not get my trigger to work. How can I do this instead?