Hard Light Productions Forums
Modding, Mission Design, and Coding => The FRED Workshop => Topic started by: Sheridan_37 on April 08, 2012, 03:37:30 am
-
Hi all,
I am fredding a recon mission/fighter sweep, but what i would like to know is whether i can have different outcomes everytime i replay the mission? for example i am conducting my patrol and one time i play the mission enemy ships are present and another time i play they are not.
Hope you get the gist of what i am on about.
many thanks.
-
You have to use the "rand" operator with a variable, like this:
true
modify-variable
-(Variable Name)
-rand
--1
--3 (or however many mission outcomes you want)
Then use
=
-(Variable Name)
-Outcome number
for mission events, arrival cues, and possible debriefings.
Here's an example arrival cue for a wing you want to arrive only in mission outcome #2:
=
-MissionVersion
-2
where MissionVersion is obviously the name of the variable and the number below it is the ID of the mission outcome.
-
What the good man said.