feelingparty
New Member
- Reaction score
- 3
***SOLVED***
I'm trying to make so that when a special unit is killed the killing unit claims the dying player for his team. I can't make it work though. I'm posting the triggers. If anybody knows what's wrong I'd appreciate his help.
Triggers:
What happens is that the teams stay exactly the same - You allies are still your allies (shared sight, don't attack you, yellow selections) as well as your enemies are still your enemies (no sight, attack you, red sellections)
I'm trying to make so that when a special unit is killed the killing unit claims the dying player for his team. I can't make it work though. I'm posting the triggers. If anybody knows what's wrong I'd appreciate his help.
Triggers:
Trigger:
- FortresDies
- Events
- Unit - A unit Dies
- Conditions
- (Unit-type of (Dying unit)) Equal to Footman
- Actions
- Player Group - Pick every player in (All allies of (Owner of (Dying unit))) and do (Actions)
- Loop - Actions
- Player - Make (Picked player) treat (Owner of (Dying unit)) as an Enemy
- Player - Make (Owner of (Dying unit)) treat (Picked player) as an Enemy
- Player - Make (Owner of (Dying unit)) treat (Owner of (Killing unit)) as an Ally with shared vision
- Loop - Actions
- Player Group - Pick every player in (All allies of (Owner of (Killing unit))) and do (Actions)
- Loop - Actions
- Player - Make (Owner of (Dying unit)) treat (Picked player) as an Ally with shared vision
- Player - Make (Picked player) treat (Owner of (Dying unit)) as an Ally with shared vision
- Else - Actions
- Loop - Actions
- Player Group - Pick every player in (All allies of (Owner of (Dying unit))) and do (Actions)
- Events
What happens is that the teams stay exactly the same - You allies are still your allies (shared sight, don't attack you, yellow selections) as well as your enemies are still your enemies (no sight, attack you, red sellections)