View Single Post
Old 04-02-2008, 01:22 AM   #3 (permalink)
Kazhang
BattleForums Newbie
 
Kazhang's Avatar
 
Join Date: Apr 2008
Location: Frozen Wastelands Of Ardun
Age: 16
Posts: 19
Re: Order trigger help? =)

Quote:
Originally Posted by ZzMayhemzZ View Post
How do I change two players into allies/enemies?


Use the "Set Ally Status" action in a trigger. The owner of the trigger will be the one affected by the trigger. For example, there is a P1 human, and a P2 computer, and you want to ally them. A trigger owned by P1 saying "Set alliance status: Set P2 to ally" will cause P1 to treat P2 as an ally. However, this trigger has not specified any special behavior for P2, so P2 will still attack P1's units. To make sure an alliance is two-way (which it usually should be), make sure to use the appropriate triggers for all affected players.

Likewise, this can be used to force two otherwise allied computer players to attack each other. You just have to set them to be enemies, not allies.
To Add on, computers auto ally from the start of the game, so to make computers become enemies, you have to set player 2 (comp) to enemy player 3 (your other comp) and vice-versa for player 3

--Example--
Have the trigger work for your first comp, so he unallies the 2nd comp
--Conditon--
ALWAYS
--Action--
Set Alliance Status
Set Player 3 (comp) To Enemy
Preserve trigger
---------------------------------------------
This will make player 2 unally player 3, but player 3 will still be allied, so do the same for player 3...just copy it and change the players around good luck
Kazhang is offline   Reply With Quote