Hard Light Productions Forums

Modding, Mission Design, and Coding => The FRED Workshop => Topic started by: headdie on November 03, 2015, 12:45:44 pm

Title: Error in mission message
Post by: headdie on November 03, 2015, 12:45:44 pm
Any idea how to go about this without triggering the attached error.

So I have a 3 fighter wing with 3 waves and a pause between them to allow a triggered message to play.  So it all works well in mission but errors the mission on the way in 3.7.2 normal build because of the reference to the fighters that dont exist until the mission generates them.

So what's the better way to do this?

[attachment DELETED!! by Strong Bad]
Title: Re: Error in mission message
Post by: General Battuta on November 03, 2015, 01:13:36 pm
Create a when-argument with every-of, list Aries 4 5 and 6 as arguments, make the message trigger off when-destroyed (argument).
Title: Re: Error in mission message
Post by: mjn.mixael on November 03, 2015, 02:36:56 pm
Yup. Basically, the only way to get around FRED not seeing the future (in regards to Wings) is to use <Argument> or a variable. At least, I'm pretty sure a variable will work... as long as the variable is set to something that makes sense in the initial form.
Title: Re: Error in mission message
Post by: AdmiralRalwood on November 03, 2015, 06:53:01 pm
Due to somewhat-related problems/errors, it's also possible that checks like this may get modified to be able to detect ships from future waves of a wing.
Title: Re: Error in mission message
Post by: Axem on November 03, 2015, 07:02:28 pm
Could we get a <Any Alpha Wing> or <Any Beta Wing> message source option too?