Hard Light Productions Forums

Modding, Mission Design, and Coding => The FRED Workshop => Topic started by: Slasher on December 24, 2008, 01:45:01 am

Title: key-reset effects don't apply to arrival cues?
Post by: Slasher on December 24, 2008, 01:45:01 am
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? 
Title: Re: key-reset effects don't apply to arrival cues?
Post by: karajorma on December 24, 2008, 03:23:29 am
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.
Title: Re: key-reset effects don't apply to arrival cues?
Post by: Slasher on December 24, 2008, 10:55:04 am
So in other words if I want this to work I should tie the arrival cue to an event? 
Title: Re: key-reset effects don't apply to arrival cues?
Post by: karajorma on December 24, 2008, 11:30:26 am
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.