Hard Light Productions Forums

Modding, Mission Design, and Coding => The FRED Workshop => Topic started by: bomb3rman on January 09, 2018, 03:45:54 pm

Title: Allow-warp not working
Post by: bomb3rman on January 09, 2018, 03:45:54 pm
Ok so I have this mission. The Subspace drive is deactivated because of some cool in-mission-jumping  ;7

After the win condition is triggered (escorts saved and they jumped to safety), I used the "allow-jump" sexp to, well, allow the player ship to jump again, so that the player can jump out at the end anytime he wants. But it doesn't seem to be working since nothing happens when I press ALT-J after that...

Any suggestions? Could it have something to do with the used "key pressed" and "key reset" sexps for the in mission jump?

I could force the player to jump after the Win Condition event has become true, this is working. But the other way would feel "smoother"...

Thanks for help!
Title: Re: Allow-warp not working
Post by: AdmiralRalwood on January 09, 2018, 07:44:57 pm
Any suggestions? Could it have something to do with the used "key pressed" and "key reset" sexps for the in mission jump?
Depends on how you implemented those events; your best bet is probably to pastebin the .fs2 file so someone can see if there's a logic error in your SEXPing.
Title: Re: Allow-warp not working
Post by: Axem on January 09, 2018, 07:54:48 pm
If you're using in mission jumps, I'm guessing you had some method to stop the player from actually engaging the real jump drive. How did you do that? Did you use never-warp or did you disable the player's subspace drive (maybe through the ship flag editor)? If the latter, you'll need to re-enable it through the alter-ship-flag sexp.
Title: Re: Allow-warp not working
Post by: bomb3rman on January 10, 2018, 01:22:51 am
@ AdmiralRalwood: I think there's no need to pastebin the file, since Axem might have found the solution. But thanks, anyway!

@ Axem: I'm using your In-Mission-jump-tutorial. It's pretty awesome, by the way  :D

Ok, I thought that allow-warp would automatically alter the "No subspace drive" flag in the flag editor. So allow-warp is just the opposite of never-warp and has nothing to do with the set ship flag? I think that's the solution.

I'll try this afternoon and give you feedback, thanks!
Title: Re: Allow-warp not working
Post by: Asteroth on January 11, 2018, 01:16:27 am
So allow-warp is just the opposite of never-warp and has nothing to do with the set ship flag?
They have similar effects, but they are separate. Never-warp gives you a system error message ("Engine failure! Can't jump!" or w/e) if you Alt-J while 'No Subspace Drive' does nothing at all when you try, a very important and useful difference!
Title: Re: Allow-warp not working
Post by: bomb3rman on January 11, 2018, 08:27:09 am
OK now I get it, thanks.

It's working, by the way :)