- Joined
- Sep 4, 2007
- Messages
- 2,826
I've asked about this before but I didn't get any real help so I'll try again.
Basically the trigger is meant to turn the attacked player into the attacking's team. The problem is that when the team grows they won't get allied with each other but only the one who actually turned them into the team.
Could someone please help me fix it?
Basically the trigger is meant to turn the attacked player into the attacking's team. The problem is that when the team grows they won't get allied with each other but only the one who actually turned them into the team.
Could someone please help me fix it?
-
Conqure Player
-
Events
-
Unit - A unit Is attacked
-
-
Conditions
-
And - All (Conditions) are true
-
Conditions
-
((Attacked unit) is A town-hall-type unit) Equal to True
-
(Life of (Attacked unit)) Less than or equal to ConqureHitpoint
-
-
-
-
Actions
-
-------- Fixing Town Hall --------
-
Set Player = (Owner of (Attacked unit))
-
Game - Display to (All players) the text: ((MultiboardColor[(Player number of (Owner of (Attacking unit)))] + (Name of (Owner of (Attacking unit)))) + ( |cffffcc99has conqured + (MultiboardColor[(Player number of Player)] + (Name of Player))))
-
Unit - Set life of (Attacked unit) to 10000.00
-
-------- Unally current team --------
-
Set TempPlayerGroup = (All allies of Player)
-
Player Group - Pick every player in TempPlayerGroup and do (Actions)
-
Loop - Actions
-
Player - Make (Picked player) treat Player as an Enemy
-
Player - Make Player treat (Picked player) as an Enemy
-
Player - Make Player 12 (Brown) treat Player as an Ally with shared vision
-
-
-
Custom script: call DestroyForce(udg_TempPlayerGroup)
-
-------- Ally with conquering team --------
-
Set TempPlayerGroup = (All allies of (Owner of (Attacking unit)))
-
Player Group - Pick every player in TempPlayerGroup and do (Actions)
-
Loop - Actions
-
Player - Make (Picked player) treat Player as an Ally with shared vision
-
Player - Make Player treat (Picked player) as an Ally with shared vision
-
Player - Change color of Player to (Color of (Owner of (Attacking unit))), Changing color of existing units
-
-
-
Custom script: call DestroyForce(udg_TempPlayerGroup)
-
-