Hard Light Productions Forums

Modding, Mission Design, and Coding => The FRED Workshop => Topic started by: lefkos on May 29, 2007, 03:10:55 pm

Title: 2 annoying things with fred!
Post by: lefkos on May 29, 2007, 03:10:55 pm
again me(arg sorry to spawn the forum with questions and help)
but i have a new mission(jeej!)
and there are 2 annoying things init
1: in my mission the player must disarm and disable a Destroyer because its going to be captured but everytime  those to objectives are completed my bombers still bombing the destroyer and destroy it how can i prevent this? i mean after the disable and disarm objectives.

2: wen a argo transport with the boarding party is docking with the ship it send its cargo in the destroyer but nothing happens i mean it should change to unknown and friendly but that doesnt happend and i followed the walkrought with the info i need but that doesnt work :S
any help is apriciated ;)
Title: Re: 2 annoying things with fred!
Post by: Mustang19 on May 29, 2007, 03:14:49 pm
Switch the destroyer's AI to Friendly when it's disarmed.

when
-is-disarmed-delay
--0
--destroyer
-change-iff
--friendly
--destroyer

It'll solve both of your problems.
Title: Re: 2 annoying things with fred!
Post by: lefkos on May 29, 2007, 03:17:04 pm
Switch the destroyer's AI to Friendly when it's disarmed.

when
-is-disarmed-delay
--0
--destroyer
-change-iff
--friendly
--destroyer

It'll solve both of your problems.
thats a very good one(ill think im gonna scrap the Argo Transport)
BUT there is a friendly Argo thats gonna dock the destroyer (because its a little weird that a bunch of pirates suddenly chance friendly right?)filled with marines etc and thats the part that doesnt work well
Title: Re: 2 annoying things with fred!
Post by: Mustang19 on May 29, 2007, 03:23:39 pm
It sounds wierd, but this is the technique most often used in campaigns. Go ahead and change the IFF. Alternatively, you could use

when
-(destroyer disabled)
-add-goal
--Alpha 2
--ignore-ship
--destroyer

Replace "Alpha 2" with any friendly ship or vessel that's still alive. If one ship ignores a target, all ships will ignore that target. Just make sure that "Alpha 2" or whoever is still alive when the destroyer is disabled.

Strange problem you're having, though. Normally, ships will ignore a target after they're done disabling or disarming it.
Title: Re: 2 annoying things with fred!
Post by: 0rph3u5 on May 29, 2007, 03:25:29 pm
see attachment

you may combine the solutions

[attachment deleted by admin]
Title: Re: 2 annoying things with fred!
Post by: karajorma on May 29, 2007, 03:26:09 pm
I've always disliked changing IFF instantly. Simply protect and beam protect the ship and clear the orders of the bomber wings instead.
Title: Re: 2 annoying things with fred!
Post by: lefkos on May 29, 2007, 04:06:47 pm
It sounds wierd, but this is the technique most often used in campaigns. Go ahead and change the IFF. Alternatively, you could use

when
-(destroyer disabled)
-add-goal
--Alpha 2
--ignore-ship
--destroyer

Replace "Alpha 2" with any friendly ship or vessel that's still alive. If one ship ignores a target, all ships will ignore that target. Just make sure that "Alpha 2" or whoever is still alive when the destroyer is disabled.

Strange problem you're having, though. Normally, ships will ignore a target after they're done disabling or disarming it.
It sounds wierd, but this is the technique most often used in campaigns. Go ahead and change the IFF. Alternatively, you could use

when
-(destroyer disabled)
-add-goal
--Alpha 2
--ignore-ship
--destroyer

Replace "Alpha 2" with any friendly ship or vessel that's still alive. If one ship ignores a target, all ships will ignore that target. Just make sure that "Alpha 2" or whoever is still alive when the destroyer is disabled.

Strange problem you're having, though. Normally, ships will ignore a target after they're done disabling or disarming it.
haha thanks! it worked! :)