- Joined
- Jun 10, 2007
- Messages
- 557
So, I'm making a Vampirism-like map, and I'm wondering how precisely you make a player ally a group of players and un-ally another group. I would have thought this was straightforward, but using the following didn't really work.
My testers were kind of vague, but from what I can tell, it just didn't work. They did not ally the killing player when they died and they did not un-ally their former allies. Any help would be appreciated.
-
MythtoSpawn
-
Events
- Unit - A unit Dies
-
Conditions
-
Or - Any (Conditions) are true
-
Conditions
- (Unit-type of (Triggering unit)) Equal to Nymph (Fey Builder)
- (Unit-type of (Triggering unit)) Equal to Ghost (Spirit Builder)
- (Unit-type of (Triggering unit)) Equal to Warlord (Giant Builder)
- (Unit-type of (Triggering unit)) Equal to Dune Runner (Beast Builder)
-
Conditions
-
Or - Any (Conditions) are true
-
Actions
- Custom script: set bj_wantDestroyGroup = true
-
Player Group - Pick every player in (All allies of Player 9 (Gray)) and do (Actions)
-
Loop - Actions
- Player - Make (Owner of (Triggering unit)) treat (Picked player) as an Ally with shared vision
- Player - Make (Owner of (Picked unit)) treat (Owner of (Triggering unit)) as an Ally with shared vision
-
Loop - Actions
- Custom script: set bj_wantDestroyGroup = true
-
Player Group - Pick every player in (All enemies of Player 9 (Gray)) and do (Actions)
-
Loop - Actions
- Player - Make (Owner of (Triggering unit)) treat (Picked player) as an Enemy
- Player - Make (Owner of (Picked unit)) treat (Owner of (Triggering unit)) as an Enemy
-
Loop - Actions
-
Events
My testers were kind of vague, but from what I can tell, it just didn't work. They did not ally the killing player when they died and they did not un-ally their former allies. Any help would be appreciated.