Author Topic: FRED Tips and Tricks  (Read 6430 times)

0 Members and 2 Guests are viewing this topic.

Offline Goober5000

  • HLP Loremaster
  • 214
    • Goober5000 Productions
I thought it'd be a good idea to start a thread like this.  Spruce up this forum; add more activity.  Plus, with all the fs2_open enhancements, not everybody knows about all the new stuff that's been added, so it'll be cool for people to share the clever new ideas they've come up with.  Hopefully it may even encourage some people to learn to FRED -- there are a substantial number of campaigns in need of FREDders right now. ;)

For starters, here's one of the simplest but yet most powerful sexp combinations now available in fred2_open - ending the mission by flying into a capital ship hangar (as opposed to warping out).  All you need is the following sexp structure:

Code: [Select]
Player Returns Home
--when
----<
------distance-ship-subsystem
--------Alpha 1
--------GTD Orion
--------fighterbay
------50
----end-mission


The ship name and distance can obviously be changed to whatever you prefer.

 

Offline Galemp

  • Actual father of Samus
  • 212
  • Ask me about GORT!
    • Steam
    • User page on the FreeSpace Wiki
Make sure you link that to an RTB message, otherwise you may find yourself unexpectedly departing. :)
"Anyone can do any amount of work, provided it isn't the work he's supposed to be doing at that moment." -- Robert Benchley

Members I've personally met: RedStreblo, Goober5000, Sandwich, Splinter, Su-tehp, Hippo, CP5670, Terran Emperor, Karajorma, Dekker, McCall, Admiral Wolf, mxlm, RedSniper, Stealth, Black Wolf...

 

Offline Goober5000

  • HLP Loremaster
  • 214
    • Goober5000 Productions
Well, that's not all that different from prematurely pressing Alt-J, although you have a point.  How often are you going to be flying that close to your own ship's hangar?

  

Offline Sesquipedalian

  • Atankharz'ythi
  • 211
Isn't there a section for this on the Wiki?
Sesqu... Sesqui... what?
Sesquipedalian, the best word in the English language.

The Scroll of Atankharzim | FS2 syntax highlighting

 

Offline karajorma

  • King Louie - Jungle VIP
  • Administrator
  • 214
    • Karajorma's Freespace FAQ
Just simply create a mission complete event that is triggered by any of the conditions that end the mission (win or lose) and chain it to that. Then add a RTB directive saying to fly into the hanger to the event Goober posted.

Personally I tend to find making a mission complete event very useful in every mission because when it comes to making the debrief you can make the AWOL - You will be court martialed event dependant on it.

I.e

When
-Event-False
--Mission Complete

Begin complaining at the player. :D

You can also tie in any bonus objectives etc to the mission complete event being true. This means that you don't complain at the player for leaving the field of battle early and then praise him for completing a bonus objective that didn't depend on anything else.

Of course you don't need a mission complete event but it often makes things a lot more easy to FRED

Quote
Originally posted by Sesquipedalian
Isn't there a section for this on the Wiki?


Yeah but this is a nice way to have a general discussion about what to put on there  isn't it :D
Karajorma's Freespace FAQ. It's almost like asking me yourself.

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

 

Offline Singh

  • Hasn't Accomplished Anything Special Or Notable
  • 211
  • Degrees of guilt.
Make your starting points diverse by putting Alpha wing to appear near to a waypoint rather than a fixed position. it adds a bit of flavour to the mission and makes it bit more unique every time.
"Blessed be the FREDder that knows his sexps."
"Cursed be the FREDder that trusts FRED2_Open."
Dreamed of much, accomplished little. :(

 

Offline TopAce

  • Stalwart contributor
  • 212
  • FREDder, FSWiki editor, and tester
I have something that only precise FREDers(like myself) may use.
If you want a ship's warp effect to appear right in the middle of the jump node, you can use this:

Place the Jump node to an exact co-ordinate(0,0,0 for example).
Place the ship to the same co-ordinates
Open ModelView, and see the size of the placed ship. Have a look at the length.
In FRED, Move the ship backwards(Z axis) with the half of its size.
So if you have a 322 meters long ship, you may place the ship at:
(0, 0, 166).
The Warp effect will be right in the middle of the jump node.
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 magatsu1

  • 210
There's a reference guide somewhere that gives the specific distances for each ship.

Forget who's it was though.
Blitzerland: Knows what he's talkin' about

 

Offline Goober5000

  • HLP Loremaster
  • 214
    • Goober5000 Productions
I've had mixed success with that distance reference guide.  Some distances worked, and some didn't.
« Last Edit: November 22, 2003, 05:54:53 pm by 561 »

 

Offline Hippo

  • Darth water-horse
  • 211
  • Grazing.
    • All Hands to War
link?
VBB Survivor -- 387 Posts -- July 3 2001 - April 12 2002
VWBB Survivor -- 100 Posts -- July 10 2002 - July 10 2004

AHTW

 

Offline TopAce

  • Stalwart contributor
  • 212
  • FREDder, FSWiki editor, and tester
That is only true with the initial velocity of 33%, or 100%.
The distance a ship jumps in depends on initial velocity and the ship's size.
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 TopAce

  • Stalwart contributor
  • 212
  • FREDder, FSWiki editor, and tester
Recent experience: If the AI fails to achieve success with the 'disarm' or 'disable subsystem'(They destroy the ship without paying attention not to do so), you can use the add-goal SEXP inside an event, and therefore the Ai won't destroy the ship to be disarmed.
Also check if they have an anti-subsystem weapon, if it is not obvious. But it is not, because I fell into problems like this several times.
Solutions to problems are always around, and most of the times they are in the basics.
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.

 
if any of you come up with idea's that are no longer under discussion, please, please, please post them in the wiki. just make a new page for each little trick, and link from this: http://dynamic4.gamespy.com/~freespace/fsdoc/index.php/FRED%20Tips
do say if it is FSO or FS.

also, if anyone has time left, please, make a detailed post of what a single SEXP does, complete with examples, complete syntax, and possible uses, like this: http://dynamic4.gamespy.com/~freespace/fsdoc/index.php/is-destroyed-delay

post link here: http://dynamic4.gamespy.com/~freespace/fsdoc/index.php/Complete%20SEXP%20Reference

also, if it is indeed an FSO sexp, please add a link here:
http://dynamic4.gamespy.com/~freespace/fsdoc/index.php/New%20SEXP%27s

to link to something in a wiki, put the text in brackets and it will become a link to a wiki page.
just another newbie without any modding, FREDding or real programming experience

you haven't learned masochism until you've tried to read a Microsoft help file.  -- Goober5000
I've got 2 drug-addict syblings and one alcoholic whore. And I'm a ****ing sociopath --an0n
You cannot defeat Windows through strength alone. Only patience, a lot of good luck, and a sledgehammer will do the job. --StratComm

 

Offline Goober5000

  • HLP Loremaster
  • 214
    • Goober5000 Productions
Hmm, kasperl, I wonder if we should give you an avatar.  "Maintainer of the Wiki"... or at least the SCP stuff. :)

 
Quote
Originally posted by Goober5000
Hmm, kasperl, I wonder if we should give you an avatar.  "Maintainer of the Wiki"... or at least the SCP stuff. :)


dunno who gave me the acces and avatar, but i think i have to thank you for it, and i will hereby do. also, i wish to thank Sandwich for providing me with this very nice title.

thank you  both, a lot.
just another newbie without any modding, FREDding or real programming experience

you haven't learned masochism until you've tried to read a Microsoft help file.  -- Goober5000
I've got 2 drug-addict syblings and one alcoholic whore. And I'm a ****ing sociopath --an0n
You cannot defeat Windows through strength alone. Only patience, a lot of good luck, and a sledgehammer will do the job. --StratComm

 

Offline Unknown Target

  • Get off my lawn!
  • 212
  • Push.Pull?
Quote
Originally posted by Goober5000
I thought it'd be a good idea to start a thread like this.  Spruce up this forum; add more activity.  Plus, with all the fs2_open enhancements, not everybody knows about all the new stuff that's been added, so it'll be cool for people to share the clever new ideas they've come up with.  Hopefully it may even encourage some people to learn to FRED -- there are a substantial number of campaigns in need of FREDders right now. ;)

For starters, here's one of the simplest but yet most powerful sexp combinations now available in fred2_open - ending the mission by flying into a capital ship hangar (as opposed to warping out).  All you need is the following sexp structure:

Code: [Select]
Player Returns Home
--when
----<
------distance-ship-subsystem
--------Alpha 1
--------GTD Orion
--------fighterbay
------50
----end-mission


The ship name and distance can obviously be changed to whatever you prefer. [/B]


Link another SEXP to state that you first have to target the hangar ;)

 

Offline karajorma

  • King Louie - Jungle VIP
  • Administrator
  • 214
    • Karajorma's Freespace FAQ
You'll have to change your sig now :D
Karajorma's Freespace FAQ. It's almost like asking me yourself.

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

 

Offline Goober5000

  • HLP Loremaster
  • 214
    • Goober5000 Productions
Quote
Originally posted by kasperl
dunno who gave me the acces and avatar, but i think i have to thank you for it, and i will hereby do. also, i wish to thank Sandwich for providing me with this very nice title.

thank you  both, a lot.


You're welcome. :) Now show yourself worthy by doing some good Wiki'ing and documentation-writing. ;)

 
please, look at the SCP internal.
just another newbie without any modding, FREDding or real programming experience

you haven't learned masochism until you've tried to read a Microsoft help file.  -- Goober5000
I've got 2 drug-addict syblings and one alcoholic whore. And I'm a ****ing sociopath --an0n
You cannot defeat Windows through strength alone. Only patience, a lot of good luck, and a sledgehammer will do the job. --StratComm

 

Offline karajorma

  • King Louie - Jungle VIP
  • Administrator
  • 214
    • Karajorma's Freespace FAQ
Re: Re: FRED Tips and Tricks
Quote
Originally posted by Unknown Target
Link another SEXP to state that you first have to target the hangar ;)


That's a FREDders choice not a requirement for the SEXP to work.

The FREDder could choose to end the mission as soon as the ship gets close enough (if for instance the whole point of the mission is to reach a capship with several shivan ships following you).
Karajorma's Freespace FAQ. It's almost like asking me yourself.

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