Author Topic: Opions on some old FRED2 don'ts  (Read 1496 times)

0 Members and 1 Guest are viewing this topic.

Offline FUBAR-BDHR

  • Self-Propelled Trouble Magnet
  • 212
  • Master Drunk
    • 165th Beer Drinking Hell Raisers
Opions on some old FRED2 don'ts
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.

No-one ever listens to Zathras. Quite mad, they say. It is good that Zathras does not mind. He's even grown to like it. Oh yes. -Zathras

  

Offline karajorma

  • King Louie - Jungle VIP
  • Administrator
  • 214
    • Karajorma's Freespace FAQ
Re: Opions on some old FRED2 don'ts
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.
Karajorma's Freespace FAQ. It's almost like asking me yourself.

[ Diaspora ] - [ Seeds Of Rebellion ] - [ Mind Games ]