Author Topic: Question about continous events.  (Read 5040 times)

0 Members and 1 Guest are viewing this topic.

Offline Sesquipedalian

  • Atankharz'ythi
  • 211
Question about continous events.
Hmm.  Interesting.  I did not expect that the when sexp would function that way.  How does the every-time sexp work, karajorma?
Quote
Goob, you wouldn't be trying to slip a new feature in during a code-freeze now would you?
Shh[/size]
Sesqu... Sesqui... what?
Sesquipedalian, the best word in the English language.

The Scroll of Atankharzim | FS2 syntax highlighting

 

Offline karajorma

  • King Louie - Jungle VIP
  • Administrator
  • 214
    • Karajorma's Freespace FAQ
Question about continous events.
Downloading now
Karajorma's Freespace FAQ. It's almost like asking me yourself.

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

  
Question about continous events.
seems like i am not completely stupid afterall.....
just another newbie without any modding, FREDding or real programming experience

you haven't learned masochism until you've tried to read a Microsoft help file.  -- Goober5000
I've got 2 drug-addict syblings and one alcoholic whore. And I'm a ****ing sociopath --an0n
You cannot defeat Windows through strength alone. Only patience, a lot of good luck, and a sledgehammer will do the job. --StratComm

 

Offline karajorma

  • King Louie - Jungle VIP
  • Administrator
  • 214
    • Karajorma's Freespace FAQ
Question about continous events.
Hmmm. Didn't work. It just kept repeating the message same as before. I'm going to have to experiment a little with this to see if I can get it to work.  The problem could be due to the speed at which the event is repeating (I didn't set any delay so it could be that which is causing the problem).

At the very least I can knock up a mission to test this every-time thing a little more
Karajorma's Freespace FAQ. It's almost like asking me yourself.

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

 
Question about continous events.
Goober, if you can get this working, I shall build a small shrine to you.  :nod:

 

Offline Goober5000

  • HLP Loremaster
  • 214
    • Goober5000 Productions
Question about continous events.
No shrines, please. :nervous:

Here's a mission that plays around with set-ship-position: you start out facing a meson bomb, and you can press 1 to teleport it left and 2 to teleport it right.  I needed only two sexps to make it work.  It seems that key-pressed and key-reset are a little wonky when used with "when"... not sure why.  "Every-time" works much better.

EDIT: For some fun, try shooting a missle at the meson bomb and then teleporting it away at the last second.  It's kinda neat to see the missle swerve around and come back. :)
« Last Edit: April 09, 2004, 06:51:54 am by 561 »

 

Offline karajorma

  • King Louie - Jungle VIP
  • Administrator
  • 214
    • Karajorma's Freespace FAQ
Question about continous events.
This is interesting. The problem I was getting may not have been due to when.

When I added a message to Goober's mission and it instantly started repeating itself over and over. The flaw may actually have been in the send-message SEXP and not in when at all.

I'll test the mission with when in a little bit.

anyway if you want to see what I mean have a look at this mission
Karajorma's Freespace FAQ. It's almost like asking me yourself.

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