- Joined
- May 15, 2009
- Messages
- 192
I thought I was making a rather simple trigger which would kill a specific hero once a specific item was destroyed.
In a sort of Lich is tied to Phylactery, whomever controls the Phylactery controls the hero. And if the phylactery is destroyed, the Lich hero is removed from the game.
But the trigger to remove the Lich won't work any more, I had it working at one point though... Can anyone see anything wrong in the following? Or better yet, does anyone have an idea for a more effective/efficient system?
Help appreciated.
In a sort of Lich is tied to Phylactery, whomever controls the Phylactery controls the hero. And if the phylactery is destroyed, the Lich hero is removed from the game.
But the trigger to remove the Lich won't work any more, I had it working at one point though... Can anyone see anything wrong in the following? Or better yet, does anyone have an idea for a more effective/efficient system?
-
Moraenir Change Side
-
Events
- Unit - A unit Acquires an item
-
Conditions
- (Item-type of (Item being manipulated)) Equal to Ancient Phylactery
-
Actions
- Game - Display to (All players) the text: change
- Unit - Change ownership of Moraenir Valdimoore (Switch Team) 0037 <gen> to (Owner of (Triggering unit)) and Change color
-
Events
-
Moraenir Death
-
Events
- Unit - A unit Dies
-
Conditions
-
Or - Any (Conditions) are true
-
Conditions
- (Item-type of (Item carried by (Triggering unit) in slot 1)) Equal to Ancient Phylactery
- (Item-type of (Item carried by (Triggering unit) in slot 2)) Equal to Ancient Phylactery
- (Item-type of (Item carried by (Triggering unit) in slot 3)) Equal to Ancient Phylactery
- (Item-type of (Item carried by (Triggering unit) in slot 4)) Equal to Ancient Phylactery
- (Item-type of (Item carried by (Triggering unit) in slot 5)) Equal to Ancient Phylactery
- (Item-type of (Item carried by (Triggering unit) in slot 6)) Equal to Ancient Phylactery
-
Conditions
-
Or - Any (Conditions) are true
-
Actions
- Game - Display to (All players) the text: text
- Custom script: set bj_wantDestroyGroup = true
-
Unit Group - Pick every unit in (Units in (Playable map area) matching ((Unit-type of (Matching unit)) Equal to Moraenir Valdimoore (Switch Team))) and do (Actions)
-
Loop - Actions
- Unit - Kill (Picked unit)
- Unit - Remove (Picked unit) from the game
-
Loop - Actions
-
Events
Help appreciated.