Why would you crash when I click the save button? WHY!?! I was just fixing my events you... oh, it crashed immediately after I saved. False alarm guys.
Anyway, I've learnt the joys of putting together hack-y SEXP code to suit my whims in inefficient ways. Turns out you can't activate several operations within the "then" part of an "if-then-else" statement, but you can in the else bit:
$Formula: ( if-then-else
( = ( variable-array-get 0 ) 1 )
( if-then-else
( false )
( do-nothing )
( add-goal
"Shuttle 1"
( ai-dock
"The Freddie Wong"
"bottom dock"
"rear hatch dock"
89
)
)
( modify-variable
@FreddiewBoarded[0]
1
)
)
( if-then-else
( = ( variable-array-get 0 ) 2 )
( if-then-else
( false )
( do-nothing )
( add-goal
"Shuttle 1"
( ai-dock
"Queen Margaret"
"bottom dock"
"bottom nose right"
89
)
)
( modify-variable
@MargaretBoarded[0]
1
)
)
( if-then-else
( = ( variable-array-get 0 ) 3 )
( if-then-else
( false )
( do-nothing )
( add-goal
"Shuttle 1"
( ai-dock
"SGC-4083-MFT"
"bottom dock"
"top front dock"
89
)
)
( modify-variable @TankerBoarded[0] 1 )
)
( training-msg "Oops" )
)
)
)
+Name: Send Shuttle
+Repeat Count: 1
+Interval: 1
+Chained: 0
In english, I embedded another if-then-else term within the "then" part of the statement, made it always false and put my operation in the "else" bit of it. Yay for clean SEXP-ing!!
As a side note, I tried initializing my array-variable so that all it's (important) values were set to 0. Broke everything. Got rid of the event, worked like a charm. Who knew? (Broke the launch sequence and gave control of my fighter to some AI dude, but the launch sequence never referred to the array)