Hard Light Productions Forums
Modding, Mission Design, and Coding => The FRED Workshop => Topic started 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?
-
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.
-
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>?
-
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.
-
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
-
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?
-
On a related note, what does setting persona in the message box actually do?
-
I looked into I a while back IIRC it controls who gets picked when you use <any-wingman> :p
-
Ah right. :P