Author Topic: Questions  (Read 1475 times)

0 Members and 1 Guest are viewing this topic.

Offline BS403

  • 29
  • I'm just sitting in my Cave.
How do I setup an event so it occurs every time a button is pressed not just the first time?

And which sexps do i use so the enemy won't notice/ attack you?
http://woogleville.myminicity.com/

Homer: Aw, twenty dollars! I wanted a peanut!
Homer's Brain: Twenty dollars can buy many peanuts.
Homer: Explain how.
Homer's Brain: Money can be exchanged for goods and services.
Homer: Woo-hoo!

 

Offline FUBAR-BDHR

  • Self-Propelled Trouble Magnet
  • 212
  • Master Drunk
    • 165th Beer Drinking Hell Raisers
Don't have the exact syntax but it's something like this

everytime
  key-pressed
    <key>
  <whatever you want to do>
  key-reset
   <key>

Those sexp's are in the training section but can be used in a regular game.
No-one ever listens to Zathras. Quite mad, they say. It is good that Zathras does not mind. He's even grown to like it. Oh yes. -Zathras

 

Offline BS403

  • 29
  • I'm just sitting in my Cave.
KK thanks i forgot the everytime.
http://woogleville.myminicity.com/

Homer: Aw, twenty dollars! I wanted a peanut!
Homer's Brain: Twenty dollars can buy many peanuts.
Homer: Explain how.
Homer's Brain: Money can be exchanged for goods and services.
Homer: Woo-hoo!

 

Offline Mobius

  • Back where he started
  • 213
  • Porto l'azzurro Dolce Stil Novo nella fantascienza
    • Skype
    • Twitter
    • The Lightblue Ribbon | Cultural Project
Use protect-ship to make sure that the enemy don't notice you and unprotect-ship to get the opposite effect :)
The Lightblue Ribbon

Inferno: Nostos - Alliance
Series Resurrecta: {{FS Wiki Portal}} -  Gehenna's Gate - The Spirit of Ptah - Serendipity (WIP) - <REDACTED> (WIP)
FreeSpace Campaign Restoration Project
A tribute to FreeSpace in my book: Riflessioni dall'Infinito

 

Offline karajorma

  • King Louie - Jungle VIP
  • Administrator
  • 214
    • Karajorma's Freespace FAQ
Don't have the exact syntax but it's something like this

everytime
  key-pressed
    <key>
  <whatever you want to do>
  key-reset
   <key>

Those sexp's are in the training section but can be used in a regular game.

Use key-reset-multiple or you'll get some very odd bugs. Not that you won't get very odd bugs anyway as the key-pressed SEXP is very temperamental about which keys it works with which you start using it in repeated events.
Karajorma's Freespace FAQ. It's almost like asking me yourself.

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