AFAIK, you require the triggers to change player alliances in-between the game. However, you need not use text commands activate the triggers. You can go creativee with the events that activate the triggers, like two players become enemy if one of their units attacks the others, or become allies if they summon the same hero, or attack the same base.
Edit:Now really, I can't even
reply without mod
approval?!