Hard Light Productions Forums

Modding, Mission Design, and Coding => The FRED Workshop => Topic started by: Vasudan Commander on July 22, 2007, 03:20:21 pm

Title: FRED tips
Post by: Vasudan Commander on July 22, 2007, 03:20:21 pm
This may or may not have been a discussed topic, so apologies if theres already a thead up. (I havent seen one.) If there isn't perhaps you should sticky one up (this one perhaps)

Anyhow, i'm wondering if there are any basic tips to use FRED 2. Setting events is the trickiest part of it all. I've gotten the hang of everything else. Waypoints, attacking, everything except using the events table. It's just too damn complicated. And what does 'Boolean' mean ?  :confused:

any advice?
Title: Re: FRED tips
Post by: Snail on July 22, 2007, 03:27:46 pm
Events are easy. I mastered them when I was 10 years ago.

You just got to think.

Start with

when

When means, "when this happens, do these things"

So if you want a ship to self-destruct when three seconds have passed, you just do:

Code: [Select]
-when
--has-time-elapsed
---<time>
--self-destruct
---Ship

It's really simple.
Title: Re: FRED tips
Post by: Shade on July 22, 2007, 03:36:03 pm
Yeah, it's simple enough once you understand the structure. The included walkthrough does a pretty good job at explaining the way the events editor works, so you might want to take a look at it if you haven't already (It's part of the FRED help files accessed from the Help menu).

A boolean value is either true or false, nothing else. In the context of FRED, a boolean operator is something you use to check the status of something. For example, is-time elapsed is a boolean operator. It's true once the specified time has elapsed, false until then, so you can use it to check how far the mission has progressed and thus time an event.
Title: Re: FRED tips
Post by: Snail on July 22, 2007, 03:41:02 pm
Also note that the operator

and

is boolean, NOT an action operator:

It does not mean "do these two things", it means "check to see if these two things have happened"
Title: Re: FRED tips
Post by: haloboy100 on July 22, 2007, 03:43:55 pm
i have a problem i need a little help with my self.

how do you put ships into your campaign that are included in a mod that you arn't using? (in my case i'm trying to put an erynes in an inferno mission)
Title: Re: FRED tips
Post by: Snail on July 22, 2007, 03:46:54 pm
how do you put ships into your campaign that are included in a mod that you arn't using? (in my case i'm trying to put an erynes in an inferno mission)

By putting the Erinyes entry into the INFR1 table file.
Title: Re: FRED tips
Post by: haloboy100 on July 22, 2007, 04:25:26 pm
oh.
Title: Re: FRED tips
Post by: colecampbell666 on July 22, 2007, 09:29:30 pm
Shouldn't this be moved to FRED Academy?
Title: Re: FRED tips
Post by: Vasudan Commander on July 23, 2007, 01:13:58 am
There wasn't a tutorial walkthrough in Turey's download. He must've left it out  :sigh:
Title: Re: FRED tips
Post by: Shade on July 23, 2007, 06:06:55 am
In that case, there's a link to a web based version of it in the FRED section of the wiki (under external links).
Title: Re: FRED tips
Post by: colecampbell666 on July 23, 2007, 07:28:18 am
Keep this going. I've found it very helpful. :)
Title: Re: FRED tips
Post by: Snail on July 23, 2007, 07:37:12 am
Next operators:

Equal to, Greater than and Less than. (=/</>)

Useful for finding the value of hull and stuff. If you want to find out whether the GTC Ascendant's hull percentage has dropped below 50% and then send a message asking for assistance, you would do:

Code: [Select]
-when
-->
---hits-left
-----GTC Ascendant
----50
---send-message
----GTC Ascendant
----High
----Help!!

m'kay?
Title: Re: FRED tips
Post by: colecampbell666 on July 23, 2007, 07:41:17 am
Yup. Cool. :cool:
Title: Re: FRED tips
Post by: Hippo on July 28, 2007, 05:35:02 pm
Next operators:

Equal to, Greater than and Less than. (=/</>)

Useful for finding the value of hull and stuff. If you want to find out whether the GTC Ascendant's hull percentage has dropped below 50% and then send a message asking for assistance, you would do:

Code: [Select]
-when
-->
---hits-left
-----GTC Ascendant
----50
---send-message
----GTC Ascendant
----High
----Help!!

m'kay?

Thats event will take place when the hull integrity is above 50%, not below as you wanted.
Title: Re: FRED tips
Post by: karajorma on July 28, 2007, 05:43:32 pm
A typo no doubt. The SEXP would work if he'd pressed the key next door.

Shouldn't this be moved to FRED Academy?

Nope. The Academy is not the place to ask FRED questions. The FRED forum is the right one for that. Only threads about the actual FRED Academy missions should be in that forum.

I'll move this thread to the FRED forum though.