Hard Light Productions Forums

Modding, Mission Design, and Coding => The FRED Workshop => Topic started by: Legate Damar on April 19, 2012, 08:49:49 pm

Title: Making waves stop coming
Post by: Legate Damar on April 19, 2012, 08:49:49 pm
If I have a wing with multiple waves, and they are set to emerge from the docking bay of a capship, when the capship is destroyed then they start coming from subspace. How do I set it so that if the capship is destroyed, the waves stop coming?
Title: Re: Making waves stop coming
Post by: General Battuta on April 19, 2012, 08:52:34 pm
I believe you can add a 'not' conditional to their arrival cue (not sure on this, though.)
Title: Re: Making waves stop coming
Post by: Spoon on April 19, 2012, 09:09:19 pm
What battuta said.

When true, and not ship destroyed.
Title: Re: Making waves stop coming
Post by: jg18 on April 19, 2012, 09:21:54 pm
When true, and not ship destroyed.

Just wondering, is including "true, and" needed because "when not ship destroyed" would immediately return true?
Title: Re: Making waves stop coming
Post by: Spoon on April 19, 2012, 09:27:35 pm
true
Title: Re: Making waves stop coming
Post by: Legate Damar on April 20, 2012, 09:56:05 am
Good, thank you. The first mission (demo mission) in my campaign (named Legacy of Shiva) is coming along well now. I just need a main hall/loading screen graphic among some other things.
Title: Re: Making waves stop coming
Post by: Droid803 on April 20, 2012, 12:31:51 pm
When true, and not ship destroyed.

Just wondering, is including "true, and" needed because "when not ship destroyed" would immediately return true?

That should have read.
when <trigger> and not ship destroyed.
Which is the correct setup if the wing's arrival cue isn't initially "true".
Title: Re: Making waves stop coming
Post by: Aginor on May 28, 2012, 06:40:25 am
Just stumbled upon this and have a question to clarify:
Does that mean that the arrival cue is checked for each wave separately? And is it the same with the departure?
Title: Re: Making waves stop coming
Post by: Black Wolf on May 28, 2012, 08:53:06 am
Good, thank you. The first mission (demo mission) in my campaign (named Legacy of Shiva) is coming along well now. I just need a main hall/loading screen graphic among some other things.

Please don't let stuff like that stop you releasing. It's why so many promising campaigns (my own included) either don't get released or take years and years. You can always patch them in later if need be.
Title: Re: Making waves stop coming
Post by: Cyborg17 on May 28, 2012, 09:43:11 am
Whould a departure cue set with is-destroyed-delay work as well?
Title: Re: Making waves stop coming
Post by: Aginor on May 28, 2012, 03:52:12 pm
If I understand that correctly it wouldn't. It would let the ships depart that are there, not stop the waves from coming.
Title: Re: Making waves stop coming
Post by: mjn.mixael on May 28, 2012, 04:04:43 pm
Actually, IIRC, if a wing (regardless of wave #) has departed, further waves won't arrive.
Title: Re: Making waves stop coming
Post by: Droid803 on May 28, 2012, 04:40:44 pm
Additional waves of already departed wings will not attempt to arrive AFAIK.
Title: Re: Making waves stop coming
Post by: Legate Damar on May 28, 2012, 05:27:39 pm
Good, thank you. The first mission (demo mission) in my campaign (named Legacy of Shiva) is coming along well now. I just need a main hall/loading screen graphic among some other things.

Please don't let stuff like that stop you releasing. It's why so many promising campaigns (my own included) either don't get released or take years and years. You can always patch them in later if need be.

No need to worry, I have completed both of those parts already. I just have a little more work to do before I release the demo.
Title: Re: Making waves stop coming
Post by: Aginor on May 29, 2012, 03:01:52 am
Actually, IIRC, if a wing (regardless of wave #) has departed, further waves won't arrive.
Additional waves of already departed wings will not attempt to arrive AFAIK.

Then how can you let a wing depart but still have another wave spawning?
(my guess: You can't. If the wing is supposed to depart it has to be separate)
Title: Re: Making waves stop coming
Post by: karajorma on May 29, 2012, 03:40:50 am
You can't.

Use ship-create and you can fake it though. With differing degrees of success depending on if it's an enemy or friendly wave.