Hard Light Productions Forums

Modding, Mission Design, and Coding => The Modding Workshop => Topic started by: HotSnoJ on January 30, 2003, 04:34:56 am

Title: FRED1 help please
Post by: HotSnoJ on January 30, 2003, 04:34:56 am
I'm making a mission and I'd like to make a GTI Arcadia self destruct when its hit points reach 3%.

Quote
$Formula: ( when
   ( > ( hits-left "CRB Amun 1" ) 3 )
   ( do-nothing )
)


Thats the formula i'm using. Is it what I'm suppose to use to get what I want?
Title: FRED1 help please
Post by: karajorma on January 30, 2003, 04:49:02 am
You`re making that event trigger whenever the hitpoints on the base are more than 3% This is almost certainly when the mission starts so you`re having problems.

Try using the less than SEXP instead.

Oh and although I`m sure you did put it in the mission itself you might want to actually include some sort of event to actually destruct the base rather than a do nothing :D
Title: FRED1 help please
Post by: HotSnoJ on January 30, 2003, 04:54:07 am
Oh so thats what I'm doing wrong, I got the signs mixed up.

Anyway the event that is happening is the Arcadia is being attacked and the reactors are breached.
Title: FRED1 help please
Post by: Darkage on January 30, 2003, 05:09:54 am
try this, it works in Fred2, i havent used fred1 for so long so don't qoute me on this.


+-event name
|
|__when
|        |
|        |__<
|        |
|        |___Hits-left
|        |          |
|        |          |__Arcadia
|        |        
|        |___3
|
|_________Selfdestruct
                      |
                      |___Arcadia


That should work.
Title: FRED1 help please
Post by: HotSnoJ on January 30, 2003, 05:20:59 am
I already got it in and going to test it when I'm done with my paper routes.

Thanx for the help everybody! :D

And when I'm done with this and at least one more mission you ppl will not be disappointed (hopefuly :nervous: ).
Title: FRED1 help please
Post by: diamondgeezer on January 30, 2003, 12:36:57 pm
This wouldn't happen if you went out and got FS2... :nervous: