Hard Light Productions Forums

Modding, Mission Design, and Coding => The FRED Workshop => Topic started by: Zacam on February 09, 2008, 04:23:05 pm

Title: A quick question
Post by: Zacam on February 09, 2008, 04:23:05 pm
I encountered something in a mission file (SM3-02) that has me some what confused.

$Formula: ( is-previous-event-false
   "sm3-01"
   "All beams dead"
   ( true )
)

and

$Formula: ( is-previous-event-true
   "sm3-01"
   "All beams dead"
   ( false )
)

in the briefing section that determines which of two mission briefs you get.
Wouldn't these both equate to the same thing?
Title: Re: A quick question
Post by: Goober5000 on February 10, 2008, 12:49:18 pm
Nope.
Title: Re: A quick question
Post by: TopAce on February 10, 2008, 01:23:56 pm
I can't see the difference myself.

Someone explain.
Title: Re: A quick question
Post by: BlueFlames on February 10, 2008, 01:58:57 pm
The events are checking for opposite conditions.  When playing the main campaign, the first event evaluates to true when you fail to destroy all of the Sathanas' main beams, and the second event evaluates to true when you successfully destroy all of the Sathanas' main beams.  In the mission simulator, the first event always evaluates to true, and the second event always evaluates to false.

[edit]Goob didn't provide a complete answer because he's finishing those reviews for the 2005 FRED contest.  Right, Goob?[/edit]
Title: Re: A quick question
Post by: Clawandfang on February 19, 2008, 05:27:15 pm
Nope.
You ask a quick question, you get a quick answer...