Author Topic: Can this be done?  (Read 1039 times)

0 Members and 1 Guest are viewing this topic.

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.

 

Offline TopAce

  • Stalwart contributor
  • 212
  • FREDder, FSWiki editor, and tester
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.
My community contributions - Get my campaigns from here.

I already announced my retirement twice, yet here I am. If I bring up that topic again, don't believe a word.

 

Offline General Battuta

  • Poe's Law In Action
  • 214
  • i wonder when my postcount will exceed my iq
What the good man said.