| 08-12-2004, 06:57 PM | #1 |
I swear, my map is corrupt or something. Heres the trigger: Code:
Change Forge Ownership
Events
Unit - A unit enters Alliance Sewer Forge 1 <gen>
Unit - A unit enters Alliance Sewer Forge 2 <gen>
Unit - A unit enters Alliance Sewer Forge 3 <gen>
Unit - A unit enters Alliance Sewer Forge 4 <gen>
Conditions
Actions
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
(Number of units in (Units in Alliance Sewer Forge 1 <gen>)) Equal to 1
(Alliance Sewer Forge 1 <gen> contains (Entering unit)) Equal to True
Then - Actions
Unit - Change ownership of Multi-Purpose Forge and Anvil 0057 <gen> to (Owner of (Entering unit)) and Change color
Else - Actions
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
(Number of units in (Units in Alliance Sewer Forge 2 <gen>)) Equal to 1
(Alliance Sewer Forge 2 <gen> contains (Entering unit)) Equal to True
Then - Actions
Unit - Change ownership of Multi-Purpose Forge and Anvil 0058 <gen> to (Owner of (Entering unit)) and Change color
Else - Actions
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
(Number of units in (Units in Alliance Sewer Forge 3 <gen>)) Equal to 1
(Alliance Sewer Forge 3 <gen> contains (Entering unit)) Equal to True
Then - Actions
Unit - Change ownership of Multi-Purpose Forge and Anvil 0059 <gen> to (Owner of (Entering unit)) and Change color
Else - Actions
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
(Number of units in (Units in Alliance Sewer Forge 4 <gen>)) Equal to 1
(Alliance Sewer Forge 4 <gen> contains (Entering unit)) Equal to True
Then - Actions
Unit - Change ownership of Multi-Purpose Forge and Anvil 0060 <gen> to (Owner of (Entering unit)) and Change color
Else - Actions
Do nothingThe thing is, the first two work fine, but the last two don't. And YES, I have the correct regions and units checked. >.>; Help is appreciated! |
| 08-12-2004, 07:29 PM | #2 |
You have everything set up right, its just, due to a recent discovery of anitarf, you can't use "units in region" unless they can only enter from the left or bottom, if the trigger catches them as soon as they enter.(So the unit would be on the edge of the region.) The reason is that, in the world editor's eyes, a unit is not in a region if it enters from the top or right, but is if it enters from the bottom or left. of course, maybe you could solve this by putting a "wait" for the other two. That way, it gives them time to get off the edge of the region, either leaving and cancelling the condition, or going further, and being caught by the condition(Being succesful) |
| 08-13-2004, 01:08 AM | #3 |
Interesting... Thanks! |
