Hard Light Productions Forums

Modding, Mission Design, and Coding => The FRED Workshop => Topic started by: crizza on February 03, 2011, 03:32:12 pm

Title: Crizzas questions
Post by: crizza on February 03, 2011, 03:32:12 pm
Hey there...because I try to learn how to fred a proper mission, I will use this thread.

Question: What Sexp forces a ship to warp out if it takes a certain amount of damage?
Title: Re: Crizzas questions
Post by: Shade on February 03, 2011, 03:44:18 pm
You use the less-than (http://www.hard-light.net/wiki/index.php/Retail_SEXPs#.3C) operator to compare the ship's hits to whichever number you want it to warp out at, and then put that in the ship's departure cue.
Title: Re: Crizzas questions
Post by: crizza on February 03, 2011, 04:13:41 pm
Strange...

when
 <
 100
 33
 add goal
  ship
ai-warp-out
89

The ship jumps not at all^^
Title: Re: Crizzas questions
Post by: General Battuta on February 03, 2011, 04:23:42 pm
100 is never going to be less than 33. You need to use hits-left as the upper operator, and select the ship's name as the argument.
Title: Re: Crizzas questions
Post by: crizza on February 03, 2011, 04:25:09 pm
well but if a invert it, the ship just jumps out.
I'm cunfused...no native german speaker around here?^^
Title: Re: Crizzas questions
Post by: Shade on February 03, 2011, 04:27:02 pm
As Battuta said, you need to use the hits-left operator rather than a hard number (in this case 100).
Title: Re: Crizzas questions
Post by: General Battuta on February 03, 2011, 04:32:36 pm
well but if a invert it, the ship just jumps out.
I'm cunfused...no native german speaker around here?^^

That's because 33 is less than 100. You need to set it up like

when
<
hits-left (ship name)
33
Title: Re: Crizzas questions
Post by: crizza on February 03, 2011, 04:53:50 pm
This simply kills my FRED...I simply don't get it-.-
Title: Re: Crizzas questions
Post by: FUBAR-BDHR on February 03, 2011, 04:57:29 pm
Have you done the walk-through?  If not I suggest you start there. 
Title: Re: Crizzas questions
Post by: crizza on February 03, 2011, 05:15:40 pm
It finally works...now that was embarassing...sorry guys...
Title: Re: Crizzas questions
Post by: karajorma on February 03, 2011, 07:07:56 pm
We all have to start somewhere. :)
Title: Re: Crizzas questions
Post by: crizza on February 15, 2011, 12:20:28 pm
Am I again just too stupid or is a Mjolnir alway pointing up the y-axis?
Title: Re: Crizzas questions
Post by: General Battuta on February 15, 2011, 12:22:46 pm
The Mjolnir is a stupid broken model. However there are fixed non-stupid versions, both ED and BP (and probably Axem as well) have them. I believe you can grab the Mjolnir pof from Vassago's Dirge and use that.
Title: Re: Crizzas questions
Post by: crizza on February 15, 2011, 01:08:17 pm
Would you lend a helping hand, I mean, a link?^^
Title: Re: Crizzas questions
Post by: General Battuta on February 15, 2011, 01:12:05 pm
Well if you have Vassago's Dirge it's right in the VPs, if not just google 'moddb vassago's dirge' and download it there. Should be called 'beamsaber.pof.'
Title: Re: Crizzas questions
Post by: crizza on February 15, 2011, 01:23:43 pm
Found this: http://www.freespacemods.net/download.php?view.496
Where do I extract the files to?
Title: Re: Crizzas questions
Post by: TopAce on February 15, 2011, 01:31:23 pm
Into your mod's /data/models.
Title: Re: Crizzas questions
Post by: crizza on February 16, 2011, 07:19:14 am
Again, I'm too stupid to do it right...
I pastet the .pof files and anything else I downloaded into Freespace2/blueplanet2/data/models....
Well because there was no models folder i created it...but nothing changes in FRED.
Help me please :(
Title: Re: Crizzas questions
Post by: General Battuta on February 16, 2011, 07:44:26 am
What's the pof named? You may need to rename it to beamsaber.pof if it's not already.
Title: Re: Crizzas questions
Post by: crizza on February 16, 2011, 07:47:29 am
it is named thatway...but it won't show up in FRED...
Have tried another model...extracted the .pof file into models and anything else in maps...but still nothing...


Edit: I tried again with the Phoenix Rising...worked just fine, except that the class is named phoenix-rising#no-door.
Title: Re: Crizzas questions
Post by: General Battuta on February 16, 2011, 08:13:57 am
It shouldn't be showing up as a separate ship in FRED - it should replace the existing Mjolnir pof, allowing you to use correctly aligned Mjolnirs in your mod.

Clear your models cache by deleting everything named 'beamsaber' in /data/cache, see if that helps. Do the same for any mod folder you're using.
Title: Re: Crizzas questions
Post by: Qent on February 16, 2011, 08:28:21 am
The Mjolnir is a stupid broken model. However there are fixed non-stupid versions, both ED and BP (and probably Axem as well) have them. I believe you can grab the Mjolnir pof from Vassago's Dirge and use that.
The Mjolnir in VD has one of its rotating pieces turned wrong. The one in BP has a dockpoint instead, which looks better.
Title: Re: Crizzas questions
Post by: General Battuta on February 16, 2011, 08:44:38 am
The Mjolnir is a stupid broken model. However there are fixed non-stupid versions, both ED and BP (and probably Axem as well) have them. I believe you can grab the Mjolnir pof from Vassago's Dirge and use that.
The Mjolnir in VD has one of its rotating pieces turned wrong. The one in BP has a dockpoint instead, which looks better.

I didn't even know we'd released anything with a modified Mjolnir in it!
Title: Re: Crizzas questions
Post by: Droid803 on February 16, 2011, 11:32:46 am
According to the credits file, the one in BP is apparently the one I stuck a dockpoint on so Argos and whatnot could drag them around (and aim with) without breaking retail compatibility :P (by which I mean you can still play The Kings Gambit with the replaced POF).