Author Topic: Escaping hostiles objective problem.  (Read 2292 times)

0 Members and 1 Guest are viewing this topic.

Offline Sololop

  • 28
Escaping hostiles objective problem.
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]

 

Offline General Battuta

  • Poe's Law In Action
  • 214
  • i wonder when my postcount will exceed my iq
Re: Escaping hostiles objective problem.
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.'

 

Offline Sololop

  • 28
Re: Escaping hostiles objective problem.
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.

 

Offline karajorma

  • King Louie - Jungle VIP
  • Administrator
  • 214
    • Karajorma's Freespace FAQ
Re: Escaping hostiles objective problem.
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.
Karajorma's Freespace FAQ. It's almost like asking me yourself.

[ Diaspora ] - [ Seeds Of Rebellion ] - [ Mind Games ]

 

Offline SypheDMar

  • 210
  • Student, Volunteer, Savior
Re: Escaping hostiles objective problem.
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.

 

Offline karajorma

  • King Louie - Jungle VIP
  • Administrator
  • 214
    • Karajorma's Freespace FAQ
Re: Escaping hostiles objective problem.
Code: [Select]
$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.
« Last Edit: February 27, 2011, 11:39:56 pm by karajorma »
Karajorma's Freespace FAQ. It's almost like asking me yourself.

[ Diaspora ] - [ Seeds Of Rebellion ] - [ Mind Games ]

 

Offline Droid803

  • Trusted poster of legit stuff
  • 213
  • /人 ◕ ‿‿ ◕ 人\ Do you want to be a Magical Girl?
    • Skype
    • Steam
Re: Escaping hostiles objective problem.
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.
(´・ω・`)
=============================================================

 

Offline SypheDMar

  • 210
  • Student, Volunteer, Savior
Re: Escaping hostiles objective problem.
Yeah. We (Karajorma and I) discussed this on IRC. Minus the redundancy, we thought it should work, especially 'cause it worked for me.

 

Offline Droid803

  • Trusted poster of legit stuff
  • 213
  • /人 ◕ ‿‿ ◕ 人\ Do you want to be a Magical Girl?
    • Skype
    • Steam
Re: Escaping hostiles objective problem.
Hmmm...
Redundant SEXP-ing. Clever ploy to increase mission file size and make it look more complex.
* Droid803 takes note
(´・ω・`)
=============================================================

  

Offline Sololop

  • 28
Re: Escaping hostiles objective problem.
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