This tutorial is superb.
As an addendum to the in-mission jump, I worked out last night that instead of a force-jump SEXP I could keep track of how many tactical jumps they made via a variable, then once it hit above a certain value give back the player their subspace drive, and add allow-warp.
Thus, allow for a real jump-out.
This allows for silent external influence - eg if a specific objective is achieved the game can silently add to the variable, transforming ALT-J from a tactical jump to a real exit. This feels a little more flexible,a s it allows the player to achieve the mission goal, yet keep playing and jump out at their leisure. The last work is to clean up the directive line.
$Formula: ( modify-variable @TacJump[0] 1 )
+Name: TAC JUMP - Add to Count
+Repeat Count: 1
+Interval: 1
+Chained: 0
$Formula: ( when
( > @TacJump[0] 0 )
( set-subspace-drive
( true )
"Alpha 1"
)
( allow-warp "Alpha 1" )
)
+Name: ALLOW REAL JUMP
+Repeat Count: 1
+Interval: 1
bh