Hard Light Productions Forums

Modding, Mission Design, and Coding => The FRED Workshop => Topic started by: mr.WHO on March 01, 2009, 11:20:16 am

Title: Campaign scripts problems
Post by: mr.WHO on March 01, 2009, 11:20:16 am
Can you tell me what I'm doing wrong ?

(http://img10.imageshack.us/img10/6267/campu.jpg)
Title: Re: Campaign scripts problems
Post by: karajorma on March 01, 2009, 11:32:15 am
The way you've set things up if Aid Fury or Convoy are true it will go on to the next mission. And if they're not....um...what happens?

See the problem is that you've forgotten to tell FS2 what to do. That's why the game likes the last branch to be true. That way FRED can be happy that whatever happens in the mission FS2 will know what to do.

What most people tend to do is click on the add repeat link button. That means if neither of those two events are true the mission will require you to replay it.
Title: Re: Campaign scripts problems
Post by: mr.WHO on March 01, 2009, 11:46:28 am
I adde repeat link but I still got this branch warning:
(http://img16.imageshack.us/img16/3624/77787807.jpg)
Title: Re: Campaign scripts problems
Post by: Droid803 on March 01, 2009, 11:50:45 am
The repeat link should go before Branch to Demo 2.fs2, and have the conditions for repeating.
Branch to Demo 2.fs2 should be at the bottom, and its condition should be true. (as in, no conditions)

Do this, and it will work.
That is how I've done it.
Title: Re: Campaign scripts problems
Post by: karajorma on March 01, 2009, 12:17:33 pm
Actually I would suggest doing it the other way round. Have your mission success events at the top and set the repeat to true.

There are more ways to screw up a mission than succeed. :D
Title: Re: Campaign scripts problems
Post by: Droid803 on March 01, 2009, 01:49:18 pm
Oh right crap yeah.
The other way, otherwise it'll let you pass AWOL.
Forgot about that.