Hard Light Productions Forums
Modding, Mission Design, and Coding => The FRED Workshop => Topic started by: Sololop on February 27, 2011, 09:26:47 pm
-
I have been talking on IRC with SDM about figuring this out.
Basically, there are three fighter wings. They all must be killed. They all arrive individually, and will depart after a period of time. If they depart, you fail.
Currently, the objective I have doesn't work as it should. It worked once, and I thought it was clear, but I was wrong.
To elaborate, it "Worked" by failing, as it should have, when the third fighter wing departed without being killed, though the first two were killed successfully.
On another run through, the very first fighter wing escaped. Though, nothing happened. The objective did not fail.
Currently though, the objective does complete if all the fighter wings are destroyed. I have attached the goal. The very last string is cut off, it reads simply:
0
Steel
Brass
Iron
Any ideas?
[attachment deleted by ninja]
-
It's not going to fail until Steel, Brass and Iron have all departed. You need to break that up into 'or has-departed delay Steel has--departed-delay Brass has-departed delay Iron.'
-
Well, that did the trick. Thanks General! Though me and SDM (Is that his usual nickname? I don't even know xD) are still confused because apparently it works for him on his end as I had it set up.
-
Probably depends on exactly what happened when he got it to work. As you pointed out in the first post there are times it will work as you wanted it to.
-
http://pastebin.com/kZ2H1xLE
Just a simple test, and I changed the numbers for each to see if it mattered who was destroyed and who departed. Can't find a reason for it not working.
-
$Formula: ( and
( has-arrived-delay 0 "Jon" "Jk" "LO" )
( not
( has-departed-delay
0
"Jon"
"Jk"
"LO"
)
)
( is-destroyed-delay
0
"Jon 1"
"Jk"
"LO"
)
)
What exactly are you trying to get that to do? That event will only come true when Jon 1, Jk and LO are destroyed. It will fail if any of them depart.
Using NOT is completely redundant. It won't come true until all 3 wings will depart. The event will have already failed by then.
-
You can get it to work just by going
-op is-destroyed-delay
--0
--Steel
--Iron
--Brass
When one of them departs it becomes impossible for them to be destroyed, thus the part checking that they're not departed is useless.
They can't be destroyed before they arrive, which makes that part useless too.
This event will come true when all three wings are destroyed, and fail if one departs.
I don't know why the one you're using isn't working but its loaded with a lot of crap you don't need, I think.
-
Yeah. We (Karajorma and I) discussed this on IRC. Minus the redundancy, we thought it should work, especially 'cause it worked for me.
-
Hmmm...
Redundant SEXP-ing. Clever ploy to increase mission file size and make it look more complex.
/me takes note
-
You can get it to work just by going
-op is-destroyed-delay
--0
--Steel
--Iron
--Brass
When one of them departs it becomes impossible for them to be destroyed, thus the part checking that they're not departed is useless.
They can't be destroyed before they arrive, which makes that part useless too.
This event will come true when all three wings are destroyed, and fail if one departs.
I don't know why the one you're using isn't working but its loaded with a lot of crap you don't need, I think.
So, using that as a Mission Objective, it will say "Objective failedl" if any of those wings jump out, at any time?
If so, why do I always make things more complicated then they should be xP