This is a little hard to explain, so I'm going to start off with an example.
Here's the situation - Alpha and Beta have just engaged a couple of enemy wings and a cruiser. Once all hostiles are eliminated, you (the FREDder) want one of the surviving fighters to have a conversation with command. However, since every battle will be different, there's no guarantee that the fighter you choose to speak will still be alive at the end to talk to command, and so what you get is a conversation where command tlks to itself (as FS2 defaults to #Command when the chosen ,message sender is unavailable). There are two ways around this. You can make the message sender invulnerable when he falls below a certain hgkll strength, or you can do a ****load of sexping, most of which is redundant by the end anyway. I would like a third option - the ability to tag a ship with an identifying marker that persists and can be refferred to throughout the mission in lieu of the name.
This is how it might work. First, you set a time and set the flagging sexp up. Something like
When
- is destroyed delay
- All enemy ships
- Flag ship
- Alpha 2
- Alpha 3
- Alpha 4
- Beta 1
- Beta 2
- Beta 3
- Beta 4
- Flag name
FRED now searches the list until it finds an available (ie surviving ship with working communications subsystem) ship, and gives it the flag "Flag Name"
Now, from this point on, any messages you want sent by that ship can be set up with "Flag Name" as the sender (Perhaps prefaced by some symbol to distinguish it from a ship that might be called Flag Name). This would be particularly effective with fighters, as it could default to the ani set by the persona of the fighter. Ideally,m you'd also be able to put "Flag Name" into events. So, if you wanted your pilot to get pissed off by what command has to say, he could go rogue (Change iff, "Flag Name", Hostile) and jump out (AI Goal, Warp out, "Flag Name", 89)
There'd need to be a few failsafes put into place (eg. Any message sent from a flag before that flag is set default to Command) but I can;t see too many sexping problems (coding of course might be a different story.
So, opinions?[/color]