If not I'll make a test map.
What I am trying to do is a trigger that swaps units. If you move a unit to a certain part of the swapping area (for example a beacon) - it will be moved to the playfield, and the one on the playfield will be moved back to the swapping area. You get the idea.
The swapping zone is divided into two parts. One, at which the units just stand and do nothing, waiting for the player to move them to the second part (StartTrans Location). And that second part handling the swapping trigger(Transform Location).
Here is how the trigger works, in its most basic form.
Players:
Force 1
Conditions:
Current Player brings at least 1 [men] to 'Transform Location'.
Current Player brings at least 1 [men] to 'PlayField'.
Actions:
Center location labbeled 'Select' on [men] owned by Current Player at 'PlayField'.
Move 1 [men] for Current Player at 'Select' to 'StartTrans Location'.
Move 1 [men] for Current Player at 'Transform Location' to 'Select'.
Preserve Trigger.
And what happens is that it works ok, but sometimes, like 1 to 20 times, it doesn't move that unit at 'Transform Location' but still moves the unit at the PlayField to the 'StartTrans Location'. And I end up with 2 units at the swapping zone and no units on the PlayField... What is wrong ???
I wrote that it's the most basic form. Because i tried to solve that bug and I wrote like hundred versions of this trigger. I used a location called 'waitingroom' something inbetween. The guy at the playfield goes to the waiting room, the unit at the transform zone is moved then to the playfield. And after a few seconds the mate at the waitingroom goes to the swapping area.
The same.
I thought maybe it was because the wait functions i used somewhere in my triggers. So I improved them to be death timers.
Still the same.
What can be wrong. Do you have any ideas ?
///
and yes, these locations don't intersect, they are pretty far from each other.
Post has been edited 2 time(s), last time on Apr 25 2008, 2:15 pm by major.
None.