Author Topic: Need FRED Help  (Read 1555 times)

0 Members and 1 Guest are viewing this topic.

Offline Zarax

  • 210
Hello, i think this is the right place...
I have a FRED scripting problem...
How can i make trough sexp this condition?

when player distance is less than (value)
do something

Thanks in advance,
                                 Zarax
The Best is Yet to Come

 

Offline StratComm

  • The POFressor
  • 212
  • Cameron Crazy
    • http://www.geocities.com/cek_83/index.html
when
-<
--distance
---Alpha 1
---Object (distance from what)
--#(Distance at which SEXP is to be activated)
-do whatever

I think that is right.
who needs a signature? ;)
It's not much of an excuse for a website, but my stuff can be found here

"Holding the last thread on a page comes with an inherent danger, especially when you are edit-happy with your posts.  For you can easily continue editing in points without ever noticing that someone else could have refuted them." ~Me, on my posting behavior

Last edited by StratComm on 08-23-2027 at 08:34 PM

 

Offline Zarax

  • 210
Thanks.
Now, what if i want to separately scan a ship's subsystems?
The Best is Yet to Come

 

Offline StratComm

  • The POFressor
  • 212
  • Cameron Crazy
    • http://www.geocities.com/cek_83/index.html
As far as I can tell, only certain ships can have scannable subsystems, but you may take a closer look at mission SM2-08.fs2 to get a clearer picture.
who needs a signature? ;)
It's not much of an excuse for a website, but my stuff can be found here

"Holding the last thread on a page comes with an inherent danger, especially when you are edit-happy with your posts.  For you can easily continue editing in points without ever noticing that someone else could have refuted them." ~Me, on my posting behavior

Last edited by StratComm on 08-23-2027 at 08:34 PM

 

Offline Zarax

  • 210
Well, i have still a small problem :D
i did this sexp

when
<
distance
Alpha 1
Enemy wing
2500
or
<
distance
Alpha 1
Enemy Ship (not in wing)
2500
As arrival cue for some fighter wings.
It doesn't work though...
Can anyone tell me where the error is?
The Best is Yet to Come

 

Offline karajorma

  • King Louie - Jungle VIP
  • Administrator
  • 214
    • Karajorma's Freespace FAQ
Destroyers or above can have seperately scanable systems. Don`t know about smaller craft but I don`t think any of the smaller ships can have them.

As for the other problem it's probably something wrong with your arrival cue since the SEXP looks fine to me. If that still doesn`t work try.


when
-<
--distance
---Alpha 1
---Any Hostile
--2500
-do whatever

And see if that works. If not
« Last Edit: July 30, 2002, 11:37:27 am by 340 »
Karajorma's Freespace FAQ. It's almost like asking me yourself.

[ Diaspora ] - [ Seeds Of Rebellion ] - [ Mind Games ]

  

Offline Kellan

  • Down with pansy elves!
  • 27
    • http://freespace.volitionwatch.com/blackwater
You certainly don't need both parts of the s-exp you wrote; and they may be conflicting with one another to produce no effect at all. That is, if "enemy ship" is any enemy ship rather than the SD Ballyhoo, or whatever.