Okay I just spent the whole day FREDding (It's been far too long since I last could say that!) and basically getting more and more pissed off with one particular SEXP.
key-reset.
I hate it. Basically I spent nearly an hour troubleshooting my mission, pruning away SEXPs and events in an attempt to figure out what the f**k was wrong with my mission before I remembered that key-reset has a habit of playing at silly buggers. To make it interesting I present the remainder of this rant in the form of a test.
Test Number 1. Here's some code.
Now what would you expect to happen here when you press 1?
(http://homepage.ntlworld.com/karajorma/freespace/FAQ-Images/Fred-Tips/Key-Reset-01.jpg)
If you said the message appears once and only once after however many seconds you've set as the chain delay regardless of however many times you press 1 before or afterwards then you're correct. Don't believe me? Give it a try. Mission (http://homepage.ntlworld.com/karajorma/freespace/Downloads/Key-Reset-01.fs2).
Test Number 2. This event has a repeat count. What do you think happens when you press 1 here?
(http://homepage.ntlworld.com/karajorma/freespace/FAQ-Images/Fred-Tips/Key-Reset-03.jpg)
If you guessed press 1 a single time and the event repeats until it hits the repeat count then you're right again. Mission (http://homepage.ntlworld.com/karajorma/freespace/Downloads/Key-Reset-03.fs2).
Test Number 3. Now lets try this with the SCP involved. What happens now?
(http://homepage.ntlworld.com/karajorma/freespace/FAQ-Images/Fred-Tips/Key-Reset-04.jpg)
This time you're not correct unless you've said that the message repeats several times (I saw it 9 times. TopAce reported seeing it 5) and then stops. Mission (http://homepage.ntlworld.com/karajorma/freespace/Downloads/Key-Reset-04.fs2).
Test 4. Let's try Chaining it. What now?
(http://homepage.ntlworld.com/karajorma/freespace/FAQ-Images/Fred-Tips/Key-Reset-05.jpg)
You get a endless stream of test message 1. Test Message 2 never appears. Mission (http://homepage.ntlworld.com/karajorma/freespace/Downloads/Key-Reset-05.fs2)
Anyway this bug is the main reason I got less FREDding done than I had planned and is also why I didn't do the FA testing I had planned for later on in the day. :hopping: :hopping: :hopping: [/Rant]
Can we please get this behaviour fixed? I've even included my test missions so that whichever programmer (Let's face it. It's going to be Goober isn't it? :D ) does this can simply use mine rather than having to make his own.
Okay. This is odd. I tried remapping to the T Key. Every-Time seems to work now but repeating When is still borked.
(http://homepage.ntlworld.com/karajorma/freespace/FAQ-Images/Fred-Tips/Key-Reset-03.jpg)
I took this event and changed the 1's into T's. Guess what happened?
Press T. The message appears. Press T again the message keeps appearing forever.
I choose the 1-4 keys because Deralict used them and if you do an KeyPress-Chain-KeyReset-Chain-KeyPress style thing with it then it works.
The problem is that for the mission I'm making I need 4 keys that prefereably aren't mapped elsewhere to do this with. 1-4 seemed perfect cause single player doesn't use them and Key-Pressed will recognise and accept them.