Author Topic: key-reset effects don't apply to arrival cues?  (Read 1442 times)

0 Members and 1 Guest are viewing this topic.

Offline Slasher

  • 29
key-reset effects don't apply to arrival cues?
If I use key-pressed in the arrival cues of a ship it seems to operate independently of any key-reset or key-reset-multiple SEXPs used in the regular Events Editor. 

For instance, let's say I want a ship to show up after 15 seconds have elapsed and a specific key has been pressed, in that order.  Using and-in-sequence I should be able to allow the player to choose when this ship arrives, provided it's no earlier than 15 seconds into the mission.  So I put a key-reset in there to make sure the ship doesn't show up right at the 15 second mark if the key was pressed at an earlier point.   But this seems to result in the ship not showing up at all. 

Am I missing some technicality here or should I put this into Mantis? 

 

Offline karajorma

  • King Louie - Jungle VIP
  • Administrator
  • 214
    • Karajorma's Freespace FAQ
Re: key-reset effects don't apply to arrival cues?
The arrival cue was

and-in-sequence
-ship-arrived
-Key-pressed

right?

Cause if so that's probably your problem right there, Key-pressed has happened and therefore is converted from a SEXP into true. Using key-reset won't have any effect from then on since it's no longer checking for a key-press.

The result is that the game has now decided that the two things happened out of sequence (which they did) and therefore no matter what you do it won't ever come true now.
Karajorma's Freespace FAQ. It's almost like asking me yourself.

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

 

Offline Slasher

  • 29
Re: key-reset effects don't apply to arrival cues?
So in other words if I want this to work I should tie the arrival cue to an event? 

 

Offline karajorma

  • King Louie - Jungle VIP
  • Administrator
  • 214
    • Karajorma's Freespace FAQ
Re: key-reset effects don't apply to arrival cues?
That would probably be the easiest way of doing it. Simply have an event checking for key presses after the other ship's arrival and then test for that in the cue.
Karajorma's Freespace FAQ. It's almost like asking me yourself.

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