Hard Light Productions Forums

Modding, Mission Design, and Coding => The FRED Workshop => Topic started by: choub on June 11, 2012, 04:24:54 pm

Title: set group for all ships
Post by: choub on June 11, 2012, 04:24:54 pm
Hello
I begin to work with fred 2 to make some missions. Here is my problem: i want to set speed of all ships in a convoy. For this i can use sexp cap waypoint speed but it seems to be i can set speed only one ship in one event. The convoy is big and represents a lot of events! Here is my question: is it possible to groups all ships in one something to be use in sexp. One order for all
Pardon for my poor english!
thanks
Title: Re: set group for all ships
Post by: mjn.mixael on June 11, 2012, 04:30:37 pm
You can use multiple sexps in a single event. Right click on 'When' and then 'Add Operator'.

Alternatively, you might have a look at conditional arguments (http://www.hard-light.net/wiki/index.php/Tutorial_-_Conditional_Arguments) for another method of doing the same thing.
Title: Re: set group for all ships
Post by: headdie on June 11, 2012, 04:45:40 pm
being able to list several ships in a list would be nice though
Title: Re: set group for all ships
Post by: karajorma on June 11, 2012, 06:27:17 pm
being able to list several ships in a list would be nice though

What do you mean by that?
Title: Re: set group for all ships
Post by: mjn.mixael on June 11, 2012, 06:30:06 pm
I assume he means...

cap-waypoint-speed
+speed
+list of ships

Similar to..

is-destroyed-delay
+delay
+list of ships

I haven't opened FRED yet to see if it already works like that or not though.
Title: Re: set group for all ships
Post by: headdie on June 11, 2012, 06:34:58 pm
I assume he means...

cap-waypoint-speed
+speed
+list of ships

Similar to..

is-destroyed-delay
+delay
+list of ships

I haven't opened FRED yet to see if it already works like that or not though.

yep.

using the word list twice in the same sentence was not a good idea, I would fire my brain but I think I already did
Title: Re: set group for all ships
Post by: choub on June 12, 2012, 03:25:00 am
thanks a lot for your help.
"list of ship" will be great, i agree. The worst is that u can't use wings, and i have to list ships one by one. I will study conditionnal arguments...
Title: Re: set group for all ships
Post by: Aginor on June 14, 2012, 05:53:16 am
Shouldn't that work with something similar to this?


when-argument
(
--every of
--- convoyship1
--- convoyship2
--- convoyship3
--- convoyship4
--- ...
--- ...

--true

-- cap-waypoint-speed
--- 30
--- <argument>
)