Hard Light Productions Forums

Modding, Mission Design, and Coding => The FRED Workshop => Topic started by: The_Force on May 18, 2012, 01:22:16 pm

Title: Sending message from players callsign
Post by: The_Force on May 18, 2012, 01:22:16 pm
Possible? How? :confused:
Title: Re: Sending message from players callsign
Post by: General Battuta on May 18, 2012, 01:29:31 pm
Put a # before the message sender in the SEXP.

e: # not $ you ****ing idiot battuta
Title: Re: Sending message from players callsign
Post by: LordPomposity on May 18, 2012, 01:30:02 pm
Put a # in front of the sender's name, for example #Alpha 1.
Title: Re: Sending message from players callsign
Post by: The_Force on May 18, 2012, 01:34:32 pm
nither of those work, what I'm trying to do is send the message form the players pilot, so if the players pilot was called vampire it would read as coming from vampire.
Title: Re: Sending message from players callsign
Post by: General Battuta on May 18, 2012, 01:35:26 pm
Yes, you need to set the message sender as #Vampire, it will work.

Remember that you do this in the SEXP, not in the ship editor callsign field. You need to right click on the argument in send-message and manually edit it with 'edit data'.
Title: Re: Sending message from players callsign
Post by: The_Force on May 18, 2012, 01:38:48 pm
Yes but if the player sets his name as someting else then they won't match, I'm looking for something like $callsign.
Title: Re: Sending message from players callsign
Post by: General Battuta on May 18, 2012, 01:40:36 pm
Wait, you mean the player's profile name?
Title: Re: Sending message from players callsign
Post by: The_Force on May 18, 2012, 01:42:00 pm
Yes, sorry about being unclear.
Title: Re: Sending message from players callsign
Post by: General Battuta on May 18, 2012, 01:45:57 pm
Hmmmmmmm. Have you tried setting the value of a string variable to $callsign? Does that work?

Title: Re: Sending message from players callsign
Post by: The_Force on May 18, 2012, 01:48:01 pm
No it just sends the message from command.
Title: Re: Sending message from players callsign
Post by: mjn.mixael on May 18, 2012, 02:27:13 pm
Hmm, this is an interesting puzzle.. I must try some things...
Title: Re: Sending message from players callsign
Post by: Legate Damar on May 18, 2012, 02:36:33 pm
I'm pretty sure I saw this in one campaign I played... I just forget which one
Title: Re: Sending message from players callsign
Post by: Goober5000 on May 18, 2012, 02:42:43 pm
I wonder if #$callsign would work.  My hunch is no.

Assigning $callsign to a string variable and then using when-argument should do the trick though.
Title: Re: Sending message from players callsign
Post by: General Battuta on May 18, 2012, 02:45:42 pm
I wonder if #$callsign would work.  My hunch is no.

Assigning $callsign to a string variable and then using when-argument should do the trick though.

Question is, how do you assign $callsign to a string variable? I just tried entering it directly as the value and it doesn't work.

e: haha, if you do '#$' you get some other currency marker, idk what
Title: Re: Sending message from players callsign
Post by: General Battuta on May 18, 2012, 02:57:42 pm
lol, it looks like the galactic credit symbol from star wars
Title: Re: Sending message from players callsign
Post by: Droid803 on May 18, 2012, 03:01:13 pm
lol, it looks like the galactic credit symbol from star wars
Oh what really? That's awesome. Pics? :P
Title: Re: Sending message from players callsign
Post by: Shivan Hunter on May 18, 2012, 03:20:00 pm
So I played around with this a bit. So it looks like the "$Callsign" is NEVER parsed/replaced in string literals or variables, making it impossible to set ships' callsigns or names to the player's callsign. It's only parsed in text in messages, which does not include that ship's name. Including $callsign in the field for sending messages (like "#($callsign)" or "# $callsign") simply displays the "$callsign" text.

A script might be able to get the value into a variable, or possibly FSO could parse the $callsign string in events- I doubt that would break anything, so maybe the SCP would take a look at it.
Title: Re: Sending message from players callsign
Post by: The_Force on May 18, 2012, 03:22:53 pm
Well code change is no good due to the mission being for saga  :mad: :banghead: Looks like I'm stuck.
Title: Re: Sending message from players callsign
Post by: The E on May 18, 2012, 04:22:35 pm
You could ask the saga devs for help....
Title: Re: Sending message from players callsign
Post by: swashmebuckle on May 18, 2012, 04:27:45 pm
lol, it looks like the galactic credit symbol from star wars
That probably comes from your guys' using my FotG font in BP--it would just display a $ in a normal font.
Title: Re: Sending message from players callsign
Post by: mjn.mixael on May 18, 2012, 04:29:37 pm
lol, it looks like the galactic credit symbol from star wars
That probably comes from your guys' using my FotG font in BP--it would just display a $ in a normal font.

BUSTED!
Title: Re: Sending message from players callsign
Post by: General Battuta on May 18, 2012, 04:42:44 pm
lol, it looks like the galactic credit symbol from star wars
That probably comes from your guys' using my FotG font in BP--it would just display a $ in a normal font.

BUSTED!

More like swashmebuckle busted, for being AWESOME

On trial by judge (no peers located) - GUILTY! Going to MUSIC JAIL
Title: Re: Sending message from players callsign
Post by: mjn.mixael on May 18, 2012, 04:54:18 pm
lol, it looks like the galactic credit symbol from star wars
That probably comes from your guys' using my FotG font in BP--it would just display a $ in a normal font.

BUSTED!

More like swashmebuckle busted, for being AWESOME

On trial by judge (no peers located) - GUILTY! Going to MUSIC JAIL

 :lol:
Title: Re: Sending message from players callsign
Post by: swashmebuckle on May 18, 2012, 05:02:27 pm
Can I get a witneeeeeeeeeeeeeeeeeeeess?