Hard Light Productions Forums

Modding, Mission Design, and Coding => The FRED Workshop => Topic started by: Shiku on September 20, 2007, 02:35:43 pm

Title: Help with repeating event please!
Post by: Shiku on September 20, 2007, 02:35:43 pm
Okay, for the mission I am FREDing, one ship must detonate an EM pulse every 100 seconds, but only after a certain destroyer has arrived.

My problem is with making the event continue to happen, but ONLY after the destroyer has arrived.

Can anybody help me with this event please?
Title: Re: Help with repeating event please!
Post by: Shade on September 20, 2007, 02:48:16 pm
Use the arrival of the destroyer as the trigger condition, set the number of repeats to 99 and set the repeat delay to 100.
Title: Re: Help with repeating event please!
Post by: Shiku on September 20, 2007, 03:18:37 pm
thanks for the help Shade!

But, How do I create a repeating event? I can't seem to find the SEXPs for it.

Title: Re: Help with repeating event please!
Post by: Mustang19 on September 20, 2007, 03:38:33 pm
That will work. The event will repeat 99 times. If the player is still there after 9,900 seconds, make him self-destruct.

That's what FREDers do all the time. Finding creative ways around FRED's limits. So don't expect a perfect solution.

If you have FreeSpace SCP, you may want to experiment with the every-time (http://www.hard-light.net/wiki/index.php/Every-time) conditional.
Title: Re: Help with repeating event please!
Post by: karajorma on September 20, 2007, 05:56:15 pm
Don't use every-time for this. It's not what it's meant to be used for. There are actually only a very small number of times when every-time should be used and this certainly isn't one of them. It's actually one of the most misused SEXPs in the game.


But, How do I create a repeating event? I can't seem to find the SEXPs for it.

You're looking in the wrong place. In the middle column of the event editor between the SEXP and Message windows there are a set of options. If the repeat count is changed to 99 and the repeat delay is set to 100 that would have the desired effect. 
Title: Re: Help with repeating event please!
Post by: Shiku on September 20, 2007, 08:49:57 pm
Thanks Karajorma! Event works great now, and I don't wnat to think about all the time I spent looking for the SEXP when it was staring me in the face all along.
*goes to hide in embarrassment...