Hard Light Productions Forums

Modding, Mission Design, and Coding => The FRED Workshop => Topic started by: Kon on July 28, 2006, 09:10:37 pm

Title: Walkthrough Problem with "modify-variable"
Post by: Kon on July 28, 2006, 09:10:37 pm
OK, I'm using Retail and I'm in Part 2 of the NTF Attack, and I'm making the event "Sleipner 1 done" where the first transport unloads the marines, undocks, and adds 1 dock to the DockCount variable. I'm up to the part where I add "modify-variable". When I add that op, instead of just the one line with the variable, and then being able to add a "+", as shown in the walkthrough, I get a 2 argument op, and am not able to add the "+". I think this is just something that was changed in FRED2 between the writting of the walkthrough and release, and I think I just put "1" in the second argument, but I would like to make sure. Here's a bad quality pic of what I get.

(http://i7.photobucket.com/albums/y257/Kahn20/modify-variable_problem.jpg)


EDIT: I went ahead and put the "1" there, but now when I'm doing the "going in" events for Sleipner 2, 3, and 4, what do I put for the "is-event-true-delay"? Thanks.
Title: Re: Walkthrough Problem with "modify-variable"
Post by: Goober5000 on July 28, 2006, 09:46:42 pm
If you want to do "add one to the dockcount variable", then you should do:

modify-variable
--DockCount(0)
--+
----DockCount(0)
----1

If you do

modify-variable
--DockCount(0)
--1

then DockCount will always be set to 1, and will never be set to 2.

You have to use a trick. :) Triple-click on the 0 in that sexp, and it will let you type text.  Type a plus sign; then FRED will let you add the arguments.
Title: Re: Walkthrough Problem with "modify-variable"
Post by: Kon on July 28, 2006, 10:04:53 pm
Ah, thanks Goober. :) It looks a bit odd, an op marked as an argument.  :wtf:

As for "when I'm doing the "going in" events for Sleipner 2, 3, and 4, what do I put for the "is-event-true-delay"? Thanks." I just put the "Sleipner <#> done" and I'm making those after the "going in" chain. Will it mess up if it's like that?
Title: Re: Walkthrough Problem with "modify-variable"
Post by: karajorma on July 29, 2006, 04:32:44 am
You have to use a trick. :) Triple-click on the 0 in that sexp, and it will let you type text.  Type a plus sign; then FRED will let you add the arguments.

:wtf: I don't ever remember having to do that with retail.

In fact I've just checked with retail FRED. You can simply select the + operator from the popup list as expected.
Title: Re: Walkthrough Problem with "modify-variable"
Post by: Goober5000 on July 29, 2006, 01:31:36 pm
As for "when I'm doing the "going in" events for Sleipner 2, 3, and 4, what do I put for the "is-event-true-delay"? Thanks." I just put the "Sleipner <#> done" and I'm making those after the "going in" chain. Will it mess up if it's like that?

Eh?  Doesn't the walkthrough tell you how to do it?

(I've never actually done the walkthrough. :nervous:)
Title: Re: Walkthrough Problem with "modify-variable"
Post by: Kon on July 29, 2006, 05:31:53 pm
No, it didn't. What I did seems to work, however, the transports that are not docking just sit there not moving after they warp in, waiting to be shot. Sure, they fire back, but they make no effort to evade. Is something wrong?
Title: Re: Walkthrough Problem with "modify-variable"
Post by: karajorma on July 29, 2006, 05:51:09 pm
Nope. That's exactly the way the mission is scripted. If I were designing the mission I would have had the freighters make a staggered entry so that they could take turns docking but that would be harder for a new mission designer to they set up something easier to FRED :)