HomeUser Control Panel (unavailable in archive)ForumsTutorialsArt GalleryResourcesMaps

Alliance Changing Problems

01-19-2010, 08:45 PM#1
Nicodemus86
Hi all, I am quite new to the editor and I am making my first campaign map.
In this map, I have 3 Blood Elf factions (yellow, blue and green), My own faction (red) and also a common enemy who always has to be the enemy to everyone. (brown)

What I want is that the three blood elf factions are in turn becoming allies with me, starting with yellow, then blue, and green last.

When the trigger is triggered to make yellow react like an ally to me from now on, the other two factions (blue and green) ALSO become friendly to me (I am red). That is not what I want.

This is my trigger:

Trigger:
Yellow Faction Change
Collapse Events
Time - NegotiationTimer expires
Conditions
Collapse Actions
Set YellowFriendly = True
Unit - Unpause Blood Mage 0033 <gen>
Countdown Timer - Destroy (Last created timer window)
Player - Make Player 5 (Yellow) treat Player 1 (Red) as an Ally
Player - Make Player 5 (Yellow) treat Player 2 (Blue) as an Enemy
Player - Make Player 5 (Yellow) treat Player 7 (Green) as an Enemy
Player - Make Player 5 (Yellow) treat Player 12 (Brown) as an Enemy
Player - Make Player 1 (Red) treat Player 5 (Yellow) as an Ally
Player - Make Player 1 (Red) treat Player 2 (Blue) as an Enemy
Player - Make Player 1 (Red) treat Player 7 (Green) as an Enemy
Player - Make Player 1 (Red) treat Player 12 (Brown) as an Enemy
Player - Make Player 2 (Blue) treat Player 1 (Red) as an Enemy
Player - Make Player 2 (Blue) treat Player 5 (Yellow) as an Enemy
Player - Make Player 2 (Blue) treat Player 7 (Green) as an Ally
Player - Make Player 2 (Blue) treat Player 12 (Brown) as an Enemy
Player - Make Player 7 (Green) treat Player 1 (Red) as an Enemy
Player - Make Player 7 (Green) treat Player 5 (Yellow) as an Enemy
Player - Make Player 7 (Green) treat Player 2 (Blue) as an Ally
Player - Make Player 7 (Green) treat Player 12 (Brown) as an Enemy

What am I doing wrong?
01-19-2010, 09:49 PM#2
Fluff
You might check to make certain your forces are set up how you want them. You may or may not want your forces to be allied at the start.

So, the trigger fires when it is supposed to... but that list of alliance changes doesn't work? Can you identify which of the listed actions appear to work and which appear not to work?
01-20-2010, 01:56 AM#3
Nicodemus86
Ok
I figured something out:

I have three of those triggers, each of them is supposed to reset all alliances hostilities to each other.
These three are called:

Yellow Faction Change
Blue Faction Change
Green Faction Change

These three triggers all should and can be run after each other in this particular order (see the conditionsm, that is not the problem)

The problem is:
When I disable the Blue Faction Change and the Green Faction change triggers. The factions in fact wind up changed as I defined in the trigger "Yellow Faction Change". Yellow won't attack me anymore, and blue an green (and even brown will).
When I enabled the Blue & Green Faction Change triggered again, ALL factions became friendly to me after the Yellow Faction change trigger had been triggered.

Conclusion: somehow the blue and green Faction Change triggers when the Yellow Faction Change Trigger is triggered.

LOL

While describing the problem to you guys, I realised it had to be the events triggering the triggers causing the problem. And it was.

For you guys who want a cool riddle, I'll still post this post. Although I am quite sure that I myself have figured out the problem.
Here are the THREE triggers

Trigger:
Yellow Faction Change
Collapse Events
Time - NegotiationTimer expires
Conditions
Collapse Actions
Set YellowFriendly = True
Unit - Unpause Blood Mage 0033 <gen>
Countdown Timer - Destroy (Last created timer window)
Player - Make Player 5 (Yellow) treat Player 1 (Red) as an Ally
Player - Make Player 5 (Yellow) treat Player 2 (Blue) as an Enemy
Player - Make Player 5 (Yellow) treat Player 7 (Green) as an Enemy
Player - Make Player 5 (Yellow) treat Player 12 (Brown) as an Enemy
Player - Make Player 1 (Red) treat Player 5 (Yellow) as an Ally
Player - Make Player 1 (Red) treat Player 2 (Blue) as an Enemy
Player - Make Player 1 (Red) treat Player 7 (Green) as an Enemy
Player - Make Player 1 (Red) treat Player 12 (Brown) as an Enemy
Player - Make Player 2 (Blue) treat Player 1 (Red) as an Enemy
Player - Make Player 2 (Blue) treat Player 5 (Yellow) as an Enemy
Player - Make Player 2 (Blue) treat Player 7 (Green) as an Ally
Player - Make Player 2 (Blue) treat Player 12 (Brown) as an Enemy
Player - Make Player 7 (Green) treat Player 1 (Red) as an Enemy
Player - Make Player 7 (Green) treat Player 5 (Yellow) as an Enemy
Player - Make Player 7 (Green) treat Player 2 (Blue) as an Ally
Player - Make Player 7 (Green) treat Player 12 (Brown) as an Enemy

Trigger:
Blue Faction Change
Collapse Events
Time - NegotiationTimer expires
Conditions
Collapse Actions
Set BlueFriendly = True
Unit - Unpause Blood Mage 0033 <gen>
Countdown Timer - Destroy (Last created timer window)
Player - Make Player 5 (Yellow) treat Player 1 (Red) as an Ally
Player - Make Player 5 (Yellow) treat Player 2 (Blue) as an Ally
Player - Make Player 5 (Yellow) treat Player 7 (Green) as an Enemy
Player - Make Player 5 (Yellow) treat Player 12 (Brown) as an Enemy
Player - Make Player 1 (Red) treat Player 5 (Yellow) as an Ally
Player - Make Player 1 (Red) treat Player 2 (Blue) as an Ally
Player - Make Player 1 (Red) treat Player 7 (Green) as an Enemy
Player - Make Player 1 (Red) treat Player 12 (Brown) as an Enemy
Player - Make Player 2 (Blue) treat Player 1 (Red) as an Ally
Player - Make Player 2 (Blue) treat Player 5 (Yellow) as an Ally
Player - Make Player 2 (Blue) treat Player 7 (Green) as an Enemy
Player - Make Player 2 (Blue) treat Player 12 (Brown) as an Enemy
Player - Make Player 7 (Green) treat Player 1 (Red) as an Enemy
Player - Make Player 7 (Green) treat Player 5 (Yellow) as an Enemy
Player - Make Player 7 (Green) treat Player 2 (Blue) as an Enemy
Player - Make Player 7 (Green) treat Player 12 (Brown) as an Enemy
Player - Make Player 12 (Brown) treat Player 1 (Red) as an Enemy
Player - Make Player 12 (Brown) treat Player 5 (Yellow) as an Enemy
Player - Make Player 12 (Brown) treat Player 2 (Blue) as an Enemy
Player - Make Player 12 (Brown) treat Player 7 (Green) as an Enemy

Trigger:
Green Faction Change
Collapse Events
Time - NegotiationTimer expires
Conditions
Collapse Actions
Set GreenFriendly = True
Unit - Unpause Blood Mage 0033 <gen>
Countdown Timer - Destroy (Last created timer window)
Player - Make Player 5 (Yellow) treat Player 1 (Red) as an Ally
Player - Make Player 5 (Yellow) treat Player 2 (Blue) as an Ally
Player - Make Player 5 (Yellow) treat Player 7 (Green) as an Ally
Player - Make Player 5 (Yellow) treat Player 12 (Brown) as an Enemy
Player - Make Player 1 (Red) treat Player 5 (Yellow) as an Ally
Player - Make Player 1 (Red) treat Player 2 (Blue) as an Ally
Player - Make Player 1 (Red) treat Player 7 (Green) as an Ally
Player - Make Player 1 (Red) treat Player 12 (Brown) as an Enemy
Player - Make Player 2 (Blue) treat Player 1 (Red) as an Ally
Player - Make Player 2 (Blue) treat Player 5 (Yellow) as an Ally
Player - Make Player 2 (Blue) treat Player 7 (Green) as an Ally
Player - Make Player 2 (Blue) treat Player 12 (Brown) as an Enemy
Player - Make Player 7 (Green) treat Player 1 (Red) as an Ally
Player - Make Player 7 (Green) treat Player 5 (Yellow) as an Ally
Player - Make Player 7 (Green) treat Player 2 (Blue) as an Ally
Player - Make Player 7 (Green) treat Player 12 (Brown) as an Enemy
Player - Make Player 12 (Brown) treat Player 1 (Red) as an Enemy
Player - Make Player 12 (Brown) treat Player 5 (Yellow) as an Enemy
Player - Make Player 12 (Brown) treat Player 2 (Blue) as an Enemy
Player - Make Player 12 (Brown) treat Player 7 (Green) as an Enemy

:)

Quite easy actually when you think of it.
Tomorrow I will post the answer ;)
01-20-2010, 04:43 PM#4
Nicodemus86
Solution:


It was the timer. It triggered all triggers. :)