Hard Light Productions Forums
Modding, Mission Design, and Coding => The FRED Workshop => Topic started by: Akalabeth Angel on February 14, 2008, 02:41:30 am
-
What exactly are you supposed to do with regards to missions needing to be completed prior to advancement in a campaign? The FRED help docs are lackluster to say the least with regards to the Campaign Editor. I've got some super-old missions for some long-dead campaign that I want to dump into a VP file and release so my efforts weren't a complete waste of time but the campaign thing is annoying. Even if I don't complete a mission, it allows me to advance to the next mission. I don't get it. One mission it was even playing the "sad" debrief music, it let me advance . . . what's the deal?
Any help would be most appreciated.
-
Well my best suggestion is to extract another .fc2 file and take a look at it in the editor. It's the easiest way to figure it out. What you have to do is set up sexps based on goals or events in the mission to tell it where to branch or to redo the mission.
-
It's pretty simple. Add both missions to the campaign editor and drag the top one onto the bottom one to forge a link. I presume you've already done this. Now click on the top mission. You'll notice that there is a SEXP there saying when name of the mission to go to. It's set to True at the moment. This means that you'll always advance to the next mission. Replace the true with a is-previous-event/goal SEXP from the mission that will have just finished. This allows the player to progress to the next mission if they completed their goals.
Then add a repeat loop (Right click on the mission to do this) and have this set to true. The repeat works best this way as it will catch any condition that hasn't sent you to the next mission and make you replay the mission.
-
Okay, yeah it's a little confusing because A - the campaign editor complains when you don't have the "true" thing only . . . and also the example given in the FredDoc has like a twin branching mission, one with just true and one with the events. So that doesn't make too much sense to me either. I'll try it out again.
Thanks for the prompt replies. This place is always swift in that area.
-
Hmmn, that solved my normal mission problems but the Red Alerts are now consequently whacky, will have to extract the main VP and check it out. Assuming I can remember some Red Alert missions.