Hard Light Productions Forums

Modding, Mission Design, and Coding => The FRED Workshop => Topic started by: killface on November 02, 2008, 06:27:03 pm

Title: SEXPs affecting future ships in a wing
Post by: killface on November 02, 2008, 06:27:03 pm

I'm sure this has to have come up before but damn if I can find it.  How can I affect future ships in a wing with SEXPs??  For instance: A 4-ship wing called Beta.  Betas 1-4, I can select when building SEXPs, but once that initial quad of fighters is killed off, how I can ensure that Betas 5-8 and so on will be affected by the events I'm building, if I can't even select them in FRED since they haven't spawned yet?
Title: Re: SEXPs affecting future ships in a wing
Post by: FUBAR-BDHR on November 02, 2008, 06:48:11 pm
I've tried to do this over and over again and never found a good solution for it.  If the sexp allows you to select the wing itself then you are OK but if it only allows individual ships then all I can say is have fun trying.  I did have some luck using when-argument but gave up on that when I ran into another bug.  If I ever get it working I'll let you know. 

Also you could try fake wings.  Basically 4 wings named Beta 1, Beta 2, Beta 3, and Beta 4.  The ships for the Beta 3 wing would them be named Beta 3 1, Beta 3 2 etc. 
Title: Re: SEXPs affecting future ships in a wing
Post by: karajorma on November 03, 2008, 02:13:40 am
A bug with when-argument? I thought I'd solved most of those last month. :)
Title: Re: SEXPs affecting future ships in a wing
Post by: FUBAR-BDHR on November 03, 2008, 11:59:57 am
Well I haven't worked on that mission in months so you probably did but the bug I ran into was the multiple engine one.  3.6.9 didn't have a way to tell if a single engine was repaired.  I can probably get that mission working now.  Or at least the repair part. 
Title: Re: SEXPs affecting future ships in a wing
Post by: karajorma on November 03, 2008, 12:54:14 pm
Yeah. I fixed that one. Hits-left-subsystem can be used for single engines now if you supply the 3rd argument.