Hard Light Productions Forums

Modding, Mission Design, and Coding => The FRED Workshop => Topic started by: Lucika on February 27, 2010, 12:42:45 pm

Title: <any wingman> = Delta 1?
Post by: Lucika on February 27, 2010, 12:42:45 pm
I have multiple messages that are supposed to be sent by a random wingmen. However, it is always Delta 1.

Why is that?
Title: Re: <any wingman> = Delta 1?
Post by: TopAce on February 27, 2010, 12:50:29 pm
It's always the wingman that follows Alpha 1 in the chain of command. If you had a Beta 2, he would be <any wingman>. If he were killed, <any wingman> would be Beta 3, etc.
Title: Re: <any wingman> = Delta 1?
Post by: Lucika on February 27, 2010, 12:59:29 pm
But I had the whole Alpha, Beta, Gamma and Epsilon wings alive  :wtf:

Anyway, if I want a messaging where it is 100% sure that it isn't the same pilot, what shoul I use? Manual settings or is there sg as <random wingmen>?
Title: Re: <any wingman> = Delta 1?
Post by: TopAce on February 27, 2010, 01:46:11 pm
I'm thinking of a combination of when-argument, rand, invalidate-argument, but I can't provide you with a SEXP tree that I'm 100% sure to work. I've never done *this* kind of randomization.
Title: Re: <any wingman> = Delta 1?
Post by: FUBAR-BDHR on February 27, 2010, 03:38:18 pm
It's also based on persona.  If you have the message sent from <any wingman> and the persona set to TP-3 (or whatever the names are) it will go through the ships and look for one with TP-3 set as the persona in the ships editor.  Most likely Delta 1 and the message personas match so you always get Delta 1
Title: Re: <any wingman> = Delta 1?
Post by: Lucika on February 27, 2010, 03:51:31 pm
Oh, I see. And what if I don't add a persona to the message? Will it add the one that belongs to the random wingman?
Title: Re: <any wingman> = Delta 1?
Post by: Dilmah G on February 27, 2010, 07:35:27 pm
On a related note, what does setting persona in the message box actually do?
Title: Re: <any wingman> = Delta 1?
Post by: karajorma on February 27, 2010, 07:46:30 pm
I looked into I a while back IIRC it controls who gets picked when you use <any-wingman> :p
Title: Re: <any wingman> = Delta 1?
Post by: Dilmah G on February 27, 2010, 08:02:03 pm
Ah right. :P