Hard Light Productions Forums

Modding, Mission Design, and Coding => The FRED Workshop => Topic started by: FUBAR-BDHR on December 08, 2007, 07:03:20 pm

Title: Opions on some old FRED2 don'ts
Post by: FUBAR-BDHR on December 08, 2007, 07:03:20 pm
Only lately have I been using FRED2_open.  Did most of my playing around in the original FRED2.  Looking through some of the stuff I see things that make me cringe from the old days.  Wondering if they are still a problem.

Nested when statements:  These were to be avoided because there was never any telling when they would actually fire (especially in multi).  Chained events or using is-event-true delay was preferred. 

Ship vs Wing orders:  Again in the old days you were always told to avoid individual ship orders if they were part of a wing.  This was weather or not there were wing orders. 

I'm sure I'll come up with some others as I get back into playing with FRED.

Title: Re: Opions on some old FRED2 don'ts
Post by: karajorma on December 09, 2007, 02:18:17 am
1) I personally don't use nested when statements very often but when I have seen them used they generally do work. Don't use them from within a when-argument SEXP though unless you only want the action to happen once. Even if the actions operators are carried out 4-5 times the when SEXP will only trigger once. Furthermore you can't use the argument in the nested when either.

2) Still true I'm afraid and likely to stay that way as we can't change it without all the cases of someone actually doing it suddenly starting to work.