Author Topic: FREDing Question(s)  (Read 2903 times)

0 Members and 2 Guests are viewing this topic.

Offline Cobra

  • 212
  • Snake on a Cain
    • Skype
    • Steam
    • Twitter
I'm in a FREDing funk and I'm making a mission to get out of it so i can make some mission for Pathways. The mission features you as a captain of a Deimos-class corvette.

anyway, I'm wondering what SEXP's i should use to beam-free-all my corvette by pressing a key, and if you press the key again it would lock the beams.

another question i have for the same mission would be how to set the warpout speed for the deimos so it doesn't warp in all slow like. looks ugly. :ick:
To consider the Earth as the only populated world in infinite space is as absurd as to assert that in an entire field of millet, only one grain will grow. - Metrodorus of Chios
I wept. Mysterious forces beyond my ken had reached into my beautiful mission and energized its pilots with inhuman bomb-firing abilities. I could only imagine the GTVA warriors giving a mighty KIAAIIIIIII shout as they worked their triggers, their biceps bulging with sinew after years of Ivan Drago-esque steroid therapy and weight training. - General Battuta

 

Offline karajorma

  • King Louie - Jungle VIP
  • Administrator
  • 214
    • Karajorma's Freespace FAQ
For the second one look at this thread.

For the first one you need to use two events.

Key Pressed When Beams Are Off
Every-time
-and
--Key-Pressed
---Key
- =
--KeyPressed(0)
--0
-Key-Reset
--Key
-Modify-Variable
--KeyPressed(0)
--1
-Beam-Free-All
--ShipName


Key Pressed When Beams Are On
Every-time
-and
--Key-Pressed
---Key
- =
--KeyPressed(0)
--1
-Key-Reset
--Key
-Modify-Variable
--KeyPressed(0)
--0
-Beam-Lock-All
--ShipName

By setting a variable you allow the SEXPs to know whether the beams are turned on or off
Karajorma's Freespace FAQ. It's almost like asking me yourself.

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

  

Offline Cobra

  • 212
  • Snake on a Cain
    • Skype
    • Steam
    • Twitter
i knew i needed two events and a variable, but i wasn't sure how i would go about them.
To consider the Earth as the only populated world in infinite space is as absurd as to assert that in an entire field of millet, only one grain will grow. - Metrodorus of Chios
I wept. Mysterious forces beyond my ken had reached into my beautiful mission and energized its pilots with inhuman bomb-firing abilities. I could only imagine the GTVA warriors giving a mighty KIAAIIIIIII shout as they worked their triggers, their biceps bulging with sinew after years of Ivan Drago-esque steroid therapy and weight training. - General Battuta

 

Offline StratComm

  • The POFressor
  • 212
  • Cameron Crazy
    • http://www.geocities.com/cek_83/index.html
I'm curious to know how you're planning on discouraging players from just leaving their beams on.  While Kara's solution works, it doesn't account for any limiting factor on beam useage.
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 Cobra

  • 212
  • Snake on a Cain
    • Skype
    • Steam
    • Twitter
well, what about IFF's being changed? this would work for that. ;)

[EDIT] OK, how do i do this?

the modify variable part. how do i go about this? o_O

Quote
-Key-Reset
--Key
-Modify-Variable
--KeyPressed(0)
--1
-Beam-Free-All
--ShipName
« Last Edit: October 11, 2005, 07:19:27 pm by 2299 »
To consider the Earth as the only populated world in infinite space is as absurd as to assert that in an entire field of millet, only one grain will grow. - Metrodorus of Chios
I wept. Mysterious forces beyond my ken had reached into my beautiful mission and energized its pilots with inhuman bomb-firing abilities. I could only imagine the GTVA warriors giving a mighty KIAAIIIIIII shout as they worked their triggers, their biceps bulging with sinew after years of Ivan Drago-esque steroid therapy and weight training. - General Battuta

 

Offline Trivial Psychic

  • 212
  • Snoop Junkie
Quote
Originally posted by karajorma
For the second one look at this thread.

I haven't had any success with this feature.  Read my newest post there.
The Trivial Psychic Strikes Again!

 

Offline karajorma

  • King Louie - Jungle VIP
  • Administrator
  • 214
    • Karajorma's Freespace FAQ
Quote
Originally posted by Cobra
well, what about IFF's being changed? this would work for that. ;)

[EDIT] OK, how do i do this?

the modify variable part. how do i go about this? o_O

 


How do you make and use variables you mean?

http://homepage.ntlworld.com/karajorma/freespace/fredretail.html#variables

That should cover it :)
Karajorma's Freespace FAQ. It's almost like asking me yourself.

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

 

Offline Cobra

  • 212
  • Snake on a Cain
    • Skype
    • Steam
    • Twitter
no no, not that. I mean the modify variable part. after i put in the key reset SEXP, what do i do after that? that's what confused me.
To consider the Earth as the only populated world in infinite space is as absurd as to assert that in an entire field of millet, only one grain will grow. - Metrodorus of Chios
I wept. Mysterious forces beyond my ken had reached into my beautiful mission and energized its pilots with inhuman bomb-firing abilities. I could only imagine the GTVA warriors giving a mighty KIAAIIIIIII shout as they worked their triggers, their biceps bulging with sinew after years of Ivan Drago-esque steroid therapy and weight training. - General Battuta

 

Offline Singh

  • Hasn't Accomplished Anything Special Or Notable
  • 211
  • Degrees of guilt.
depending on how many fighters you have, there might be another way of going about it using the if-any argument and then have it target specific fighters only...but I don't think there is an is-ship-targetted sexp yet.
"Blessed be the FREDder that knows his sexps."
"Cursed be the FREDder that trusts FRED2_Open."
Dreamed of much, accomplished little. :(

 

Offline karajorma

  • King Louie - Jungle VIP
  • Administrator
  • 214
    • Karajorma's Freespace FAQ
Quote
Originally posted by Cobra
no no, not that. I mean the modify variable part. after i put in the key reset SEXP, what do i do after that? that's what confused me.


Modify variable is a SEXP. It lives in change>>Special. Read the link I gave you. It covers this sort of stuff in some detail.

Quote
Originally posted by Singh
depending on how many fighters you have, there might be another way of going about it using the if-any argument and then have it target specific fighters only...but I don't think there is an is-ship-targetted sexp yet.


There is. It's one of the training SEXPs so I had to check I wasn't fooling myself into believing it exists but it does.
« Last Edit: October 12, 2005, 10:11:25 am by 340 »
Karajorma's Freespace FAQ. It's almost like asking me yourself.

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

 

Offline Luigi30

  • 27
Hey! You stole my idea! Oh well, I'll just change Deimos to Fenris.

Also, don't use fire-beam unless you want this to happen.

 

Offline karajorma

  • King Louie - Jungle VIP
  • Administrator
  • 214
    • Karajorma's Freespace FAQ
Seeing as how people have been making missions where you fly a capship since FS1 came out I don't think you can say it's your idea :)
Karajorma's Freespace FAQ. It's almost like asking me yourself.

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

 

Offline Cobra

  • 212
  • Snake on a Cain
    • Skype
    • Steam
    • Twitter
Quote
Originally posted by Luigi30
Hey! You stole my idea! Oh well, I'll just change Deimos to Fenris.

Also, don't use fire-beam unless you want this to happen.


so? if i finish the mission maybe i'll let you have it. :p

[EDIT] @ Kara: Really? I didn't see it. *checks SEXP list*
« Last Edit: October 12, 2005, 03:00:29 pm by 2299 »
To consider the Earth as the only populated world in infinite space is as absurd as to assert that in an entire field of millet, only one grain will grow. - Metrodorus of Chios
I wept. Mysterious forces beyond my ken had reached into my beautiful mission and energized its pilots with inhuman bomb-firing abilities. I could only imagine the GTVA warriors giving a mighty KIAAIIIIIII shout as they worked their triggers, their biceps bulging with sinew after years of Ivan Drago-esque steroid therapy and weight training. - General Battuta