Hard Light Productions Forums

Modding, Mission Design, and Coding => The Modding Workshop => Topic started by: Noise on December 30, 2004, 09:35:29 am

Title: FRED2 SEXP Puzzle
Post by: Noise on December 30, 2004, 09:35:29 am
Alright, the situation is as such and it seems some what simple, in theory that is.  Basically the mission is espionage based and I need the SEXP equation that will basically make the Shivans jump on you if you fire ANY weapon at all.
Title: FRED2 SEXP Puzzle
Post by: Blaise Russel on December 30, 2004, 09:41:54 am
Protect Alpha 1.

Code: [Select]
Detected
when
 - or
   - key-pressed
      - Left Ctrl
   - key-pressed
      - Spacebar
 - unprotect-ship
   - Alpha 1
Title: FRED2 SEXP Puzzle
Post by: Noise on December 30, 2004, 09:45:58 am
Thanks
Title: FRED2 SEXP Puzzle
Post by: Fr3z3r on December 30, 2004, 10:25:09 am
What if someone uses a different keybinding or mouse / joystick? :rolleyes:
Title: FRED2 SEXP Puzzle
Post by: T-Man on December 30, 2004, 10:31:54 am
If you put a particular symbol in front of the keypress (I think its "$" but i'd double check with an expert) then FS2 should automatically account for control changes.
Title: FRED2 SEXP Puzzle
Post by: karajorma on December 30, 2004, 11:33:50 am
You don't need the special character. FS2 will automatically remap the bindings anyway. Mouse and Joystick are also checked for in the SEXP Blaise gave.
Title: FRED2 SEXP Puzzle
Post by: Kie99 on December 30, 2004, 02:13:27 pm
But don't forget to make Alpha 1 protected!
Title: FRED2 SEXP Puzzle
Post by: karajorma on December 31, 2004, 04:32:07 am
Well Blaise did mention that. But yes, Alpha needs to be protected to prevent the enemy ships going after him straight away :)