Author Topic: FRED Question  (Read 2079 times)

0 Members and 1 Guest are viewing this topic.

Offline Noise

  • 27
    • http://www.geocities.com/noiseball2000/itdoh.html
Okay, for a mission I need to know the event sequence that will occur if Alpha 1 fires the primary weapons.  Basically, he pulls the trigger on the Subach and the event occurs.  I've looked high and low but can't seem to be able to do it.  Help.:confused:
"The point of war is not to die for your country, the point is to make some other poor bastard die for his."

Into to the Depths of Hell Campaign Site
www.geocities.com/noiseball2000/itdoh.html

 

Offline Petrarch of the VBB

  • Koala-monkey
  • 211
I'm not at all sure, but you could try the is-button-pressed SEXP.

 

Offline karajorma

  • King Louie - Jungle VIP
  • Administrator
  • 214
    • Karajorma's Freespace FAQ
There isn't a key for the joysticks fire button but I believe that it will work if you use the left CTRL.

You may need to chain the trigger to an event that resets the CTRL key first (if alpha has already fired in the mission).

Hmmm. If that doesn't work post again and I'll see if I can do it. I love little FRED puzzles like this :)
Karajorma's Freespace FAQ. It's almost like asking me yourself.

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

 

Offline Hippo

  • Darth water-horse
  • 211
  • Grazing.
    • All Hands to War
as for only subachs, no, just any weapon... unless there wasa special check...
VBB Survivor -- 387 Posts -- July 3 2001 - April 12 2002
VWBB Survivor -- 100 Posts -- July 10 2002 - July 10 2004

AHTW

 

Offline diamondgeezer

What you want is and and-in-sequence event;

Event Name
when
and-in-sequence
time-elapsed (for example)
key-pressed

This will fire when the given time has elapsed (or what ever other condition you wish to use) and then the given key is pressed. Note that FS2 will compensate for remapped keys, thus if a player has remapped left CTRL (which is the default for primary fire) the event will activate when the remapped key is pressed. Clever, no?

 

Offline Hippo

  • Darth water-horse
  • 211
  • Grazing.
    • All Hands to War
joticks are mapped onto those too, but there isno way to only detect a specific weapon... :(
VBB Survivor -- 387 Posts -- July 3 2001 - April 12 2002
VWBB Survivor -- 100 Posts -- July 10 2002 - July 10 2004

AHTW

 

Offline diamondgeezer

You already said that

 

Offline karajorma

  • King Louie - Jungle VIP
  • Administrator
  • 214
    • Karajorma's Freespace FAQ
Quote
Originally posted by Hippo
as for only subachs, no, just any weapon... unless there wasa special check...


I'm assuming that the whole subach thing was just an example and Noise only wants to know how to check when the trigger is pulled.

EDIT : If you want to check for individual weapons you'll need a new weapon-selected SEXP. I'd ask myself but I don't want to be accused of adding another one to the list of 45 SEXPs no one will ever use :D
« Last Edit: July 01, 2003, 12:46:32 pm by 340 »
Karajorma's Freespace FAQ. It's almost like asking me yourself.

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

 

Offline Sesquipedalian

  • Atankharz'ythi
  • 211
Quote
Originally posted by karajorma
I'd ask myself but I don't want to be accused of adding another one to the list of 45 SEXPs no one will ever use :D
Heh. :rolleyes:
Sesqu... Sesqui... what?
Sesquipedalian, the best word in the English language.

The Scroll of Atankharzim | FS2 syntax highlighting

  

Offline Noise

  • 27
    • http://www.geocities.com/noiseball2000/itdoh.html
Quote
Originally posted by diamondgeezer
What you want is and and-in-sequence event;

Event Name
when
and-in-sequence
time-elapsed (for example)
key-pressed

This will fire when the given time has elapsed (or what ever other condition you wish to use) and then the given key is pressed. Note that FS2 will compensate for remapped keys, thus if a player has remapped left CTRL (which is the default for primary fire) the event will activate when the remapped key is pressed. Clever, no?


Just to make sure.  I've got primary fire as "button 1", but since FRED doesn't list "button 1" I can just put left CTRL as the "key-pressed"  and FS2 will automatically adjust itself to another persons settings?
"The point of war is not to die for your country, the point is to make some other poor bastard die for his."

Into to the Depths of Hell Campaign Site
www.geocities.com/noiseball2000/itdoh.html

 

Offline Hippo

  • Darth water-horse
  • 211
  • Grazing.
    • All Hands to War
Yes

Ifyou put dollar signs around the key in the directves, it will also remap...
VBB Survivor -- 387 Posts -- July 3 2001 - April 12 2002
VWBB Survivor -- 100 Posts -- July 10 2002 - July 10 2004

AHTW

 

Offline TopAce

  • Stalwart contributor
  • 212
  • FREDder, FSWiki editor, and tester
Unextract the 'Playing Judas' mission from FS1's vp. You will see that the is-key-pressed SEXP was used by Volition, too.
My community contributions - Get my campaigns from here.

I already announced my retirement twice, yet here I am. If I bring up that topic again, don't believe a word.

 

Offline diamondgeezer

Quote
Originally posted by Hippo
Ifyou put dollar signs around the key in the directves, it will also remap...

Now that I didn't know. And that scares me.

 

Offline karajorma

  • King Louie - Jungle VIP
  • Administrator
  • 214
    • Karajorma's Freespace FAQ
Quote
Originally posted by diamondgeezer

Now that I didn't know. And that scares me.


News to me too.
Karajorma's Freespace FAQ. It's almost like asking me yourself.

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