I was thinking about this again and I had an idea. What would be really nice would be a logic SEXP similar to or.
Any x
Unlike the Boolean SEXP's this one takes an arguement which is the number of SEXP nodes below it that must evaluate to true before Any x itself evaluates to true.
You'd use it like this
when
-Any x
--2
--Is subsystem destroyed-delay
---Ship Name
---Subsystem Name
---Delay
--Is subsystem destroyed-delay
---Ship Name
---Subsystem Name
---Delay
--Is subsystem destroyed-delay
---Ship Name
---Subsystem Name
---Delay
--Is subsystem destroyed-delay
---Ship Name
---Subsystem Name
---Delay
This event will become true when two subsystems are destroyed. Change the number and you can make it come true from a different number of subsystems.
I've had a look at the or SEXP (which this is basically an alteration of ) and it doesn't look like it would be very hard to code this (the or SEXP is only about 30 lines) but unfortunately I'm a Java programmer not a C one so I'm not 100% what would need changing if I were to try and make my own SEXPs.
I'll play about a little bit though but if someone like Goober wants to code this feel free to do it as it will probably be weeks before I even figure out how to compile the source let alone add my own stuff to it