Hard Light Productions Forums

Hosted Projects - Standalone => The Babylon Project => Topic started by: rcrph on April 06, 2006, 01:44:33 am

Title: request for mission help
Post by: rcrph on April 06, 2006, 01:44:33 am
I am attempting to design a mission ( which is somewhat humorous in itself) in which you have to disable ( shut down the engines) of a fighter to prevent a character from escaping. To prevent the ship's accidental destruction, which is highly likely due to the size of the ship, I've set it to guardian. I've also been able to sabotage the engines to zero by damaging the over-all vessel,which triggered to response ... but even with the engine at zero percent, the engine is not recognized as disabled. That is, the fighter continues to move at normal velocity.  Any suggestions ????  I would like to have the fighter come to a halt so that I could have a shuttle rendevous with it to capture the pilot.
Title: Re: request for mission help
Post by: I_E_Maverick on April 06, 2006, 04:11:00 am
i dont know much, if not anything about mission scripting, but wouldnt it be possible to add a sexp like, when subsystem=0 stop ship *** or something similar? you could use that ;)
Title: Re: request for mission help
Post by: IPAndrews on April 06, 2006, 05:02:00 am
What class of ship are you trying to disable?
Title: Re: request for mission help
Post by: Trivial Psychic on April 06, 2006, 10:59:49 am
There is always the "play dead" order.   That's under AI commands.
Title: Re: request for mission help
Post by: rcrph on April 06, 2006, 12:52:38 pm
I was trying to disable a frazi fighter. I was using the sex-ep when percent ships destroyed then using sabotage sub-system, that being engines, and setting that to 100 percent. But knowning that I not a very good pilot, I also am using the guardian sex-ep to prevent myself from being over-zealous and destroying the small fighter. I also tried using a combination of sex-eps when sub-system destroyed (ex.weapons) to sabotage-subsystem engines to mimic a cascade systems failure. I can get the engines to fall to zero percent but the ship just flys on. Fred certainly offers a multitude of possibilities but selecting the appropriate sex-ep can be a little confusing.
Title: Re: request for mission help
Post by: karajorma on April 06, 2006, 01:18:19 pm
Well it sounds like you're misusing percentage ships destroyed to me. The SEXP is designed to trigger when say 90% of the ships in the list you've given are destroyed. What you want is hits-left which measures the damage done to an individual ship. You'd trigger it like this.

When
- <
--hits-left
---Frazi Name
--10
-do whatever

If you wanted it to trigger when the Frazi was at a certain percentage.

Furthermore I suggest you use ship-guardian-threshold instead of ship-guardian and set the percentage slightly higher than the threshold. This will prevent you always ending up with a ship at 1% hull when damaged. True perfectionists like me would set the threshold to a narrow random value (I'd lay odds that IP Andrews would agree with me on this).

BTW it's SEXP. It stands for Symbolic EXPression apparently.
Title: Re: request for mission help
Post by: rcrph on April 06, 2006, 02:06:50 pm
Ah, thx for your advice.  I'll give it a try. (BTW,as for my mis-use of the expression, sorry .. you can guess what I've got on my mind for tonight)  :)
Title: Re: request for mission help
Post by: Trivial Psychic on April 07, 2006, 12:03:06 am
I thought it stood for Special EXPression.
Title: Re: request for mission help
Post by: karajorma on April 07, 2006, 06:23:08 am
BTW,as for my mis-use of the expression, sorry .. you can guess what I've got on my mind for tonight  :)

Less worrying than what the actual expression is :D

From the FS2 Walkthrough

Quote
Working With SEXPs
     
This file explains how to use SEXPs, or symbolic expressions, to program complex behavior into your missions. (It's pronounced "sex pee". Stop snickering!)
Title: Re: request for mission help
Post by: Trivial Psychic on April 07, 2006, 09:51:59 am
I stand corrected.
Title: Re: request for mission help
Post by: Goober5000 on April 07, 2006, 09:58:53 am
I think it's actually pronounced "ess exp".  :v: spells it "s-exp" pretty frequently in the code.

Also, it's a holdover from LISP, and I think they pronounce it that way there too.
Title: Re: request for mission help
Post by: Dwin on April 07, 2006, 04:59:51 pm
IMO, you should let the player be able to destroy the fighter, but doing so would fail the mission.
Title: Re: request for mission help
Post by: karajorma on April 08, 2006, 03:53:51 am
I can see where you're coming from Dwin but disabling fighters is very tricky as they have very small engine subsystems.