Author Topic: and-in-sequence doesn't work?  (Read 2158 times)

0 Members and 1 Guest are viewing this topic.

Offline LoneKnight

  • 27
  • One does not simply ALT-J into Mordor.
and-in-sequence doesn't work?
I've been ignoring this issue for a while, but solving it would make my life a lot easier. It seems that when I use and-in-sequence, it doesn't work. According to the description, when the events or information you put in become true in the order they are listed with the SEXP, the effect should trigger. But this doesn't seem to happen. I have a simple and-in-seqence: event-true and key-pressed, but it doesn't work even after I know that these have happened in the correct order. I even tried the key-press before the event was true to see if the order was backwards but no change. Any idea on why and-in-sequence doesn't seem to work?
Burning Heaven

 
Re: and-in-sequence doesn't work?
If the key is pressed before the event becomes true, FS2O will stop checking for the key to be pressed again. Try adding key-reset to the event that event-true is checking for. Not sure if this is the problem, but it's worth checking.


 

Offline mjn.mixael

  • Cutscene Master
  • 212
  • Chopped liver
    • Steam
    • Twitter
Re: and-in-sequence doesn't work?
and-in-sequence definitely works. Please see the attached mission.

[attachment deleted by ninja]
Cutscene Upgrade Project - Mainhall Remakes - Between the Ashes
Youtube Channel - P3D Model Box
Between the Ashes is looking for committed testers, PM me for details.
Freespace Upgrade Project See what's happening.

 

Offline Black Wolf

  • Twisted Infinities
  • 212
  • Hey! You! Get off-a my cloud!
    • Visit the TI homepage!
Re: and-in-sequence doesn't work?
I know it used to give me all kinds of grief - SCP may have fixed it, or it may have never been broken, and I always used it wrong, but I avoid it as a matter of course these days.
TWISTED INFINITIES · SECTORGAME· FRONTLINES
Rarely Updated P3D.
Burn the heretic who killed F2S! Burn him, burn him!!- GalEmp

 

Offline karajorma

  • King Louie - Jungle VIP
  • Administrator
  • 214
    • Karajorma's Freespace FAQ
Re: and-in-sequence doesn't work?
and-in-sequence is one of the most misused/misunderstood SEXPs out there. Post the mission and/or the SEXP and we can tell you if it should work.
Karajorma's Freespace FAQ. It's almost like asking me yourself.

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

 

Offline TopAce

  • Stalwart contributor
  • 212
  • FREDder, FSWiki editor, and tester
Re: and-in-sequence doesn't work?
Basically, "and-in-sequence" mandates that the conditions turn true only in the given order, else the event will be false(!), not incomplete.

Or is there more to it?
My community contributions - Get my campaigns from here.

I already announced my retirement twice, yet here I am. If I bring up that topic again, don't believe a word.

 

Offline karajorma

  • King Louie - Jungle VIP
  • Administrator
  • 214
    • Karajorma's Freespace FAQ
Re: and-in-sequence doesn't work?
Nope. That's all there is to it, but people often make mistakes with and-in-sequence because they use a NOT sexp with it and forget that this will evaluate to true at the start of the mission.
Karajorma's Freespace FAQ. It's almost like asking me yourself.

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

 

Offline LoneKnight

  • 27
  • One does not simply ALT-J into Mordor.
Re: and-in-sequence doesn't work?
Basically, "and-in-sequence" mandates that the conditions turn true only in the given order, else the event will be false(!), not incomplete.

Okay, so what I was trying to do was have an event that checks for the Player hitting a button, but only after a certain time has elapsed. I now know that if the Player was to hit the button before the time elapsed, it would render the sequence false.

This is what I had:

and-in-sequence
       -has time elapsed
       -key pressed

How would I change this so that this isn't rendered false if the Player uses key press before the time elapses?
Burning Heaven

 

Offline Droid803

  • Trusted poster of legit stuff
  • 213
  • /人 ◕ ‿‿ ◕ 人\ Do you want to be a Magical Girl?
    • Skype
    • Steam
Re: and-in-sequence doesn't work?
...why don't you just use regular and, and then just use key-reset-multiple right before said time elapses.
(´・ω・`)
=============================================================