Hi there,
I'm actually not sure if I should post this in the SCP or the campaign forum, but for the moment I think of it more as a code-problem than a problem with the SEXP's (of course, always to look by the others for the failure than by yourself

) However, it's a little complex and difficult to explain.
I'm having a problem with the arguments in the SEXP's. In a mission, I escort a capital ship through 4 navpoints. At each navpoints a few fighters or other stuff attacks, and my wingman are ordered to automatically attack them (which works fine)
My problem begins when the battle is over and I want them to get back into CLOSE formation again. At the very beginning, I arranged that by giving each wing it's own "clear goals" SEXP, followed by an "add goal" SEXP. First off, the "clear goals" is necessary, otherwise there was a good chance, that they don't accept the new order (for the same reason I explain below).
Now, a few of you elders around here asked me, why I'm not using the argument SEXP, so I could combine the three SEXP's into one. Well, it's logical and would save me some work, so I tried that and it looks like that :
op-when-argument
op-every off
alpha1
beta1
beta2
charlie1
charlie2
op-true
op-add goal
argument
op-ai-guard (I also tried "stay near ship)
(guarding ship)
The "op-true" with no condition is because I chained this SEXP with the previous one which is actually the trigger for this event.
Everytime before I use this SEXP, I have again a similar SEXP before it and clear the goals first,
but still some fighters simply don't receive the new orders and continue cruising around having "no orders" (big post, but this underlined part is the core of it

). And that's actually a big problem, since it is breaking the autopilot-formation which look very stupid. It can happen that they then fly 5K klicks before you and reach the new navpoint before you do, so you can watch them flying circles in 32x time-compression

However, I also noticed that error, when I made all 3 "add goal" conditions into one SEXP's. When I'm not using the clear goals thing before, it's even more worse and some of the conditionals will simply not being executed or accepted by the AI-Ships.
Now, the question is, is this a bug, and if yes, how to fix it ? If you think it's a bug too, I could mantis it and give some of you Coders access to our beta (a few of you already have it), since I think it will be the best when you try it with the missions we have.
As for the moment, my best solution is making 2 seperate SEXP's (clear goals and add goal) for each wing each time, which will result into 24 SEXP's, but at least it will work. And now that the FRED-SEXP limit has been bumped up, I think it's possible, but it's not really a solution for the future and a lot of work too
I hope I explained it understandable

Any ideas ?
Starman©