Hard Light Productions Forums

Modding, Mission Design, and Coding => FS2 Open Coding - The Source Code Project (SCP) => Test Builds => Topic started by: Goober5000 on January 17, 2005, 04:51:24 pm

Title: Showing variable values in messages
Post by: Goober5000 on January 17, 2005, 04:51:24 pm
It's now implemented and in CVS.  Just put a dollar sign in front of the variable name.  So if you had a variable called ships_left, you could do
Code: [Select]
There are $ships_left ships in the area.which would display as
Code: [Select]
There are 5 ships in the area.or however many ships there are.

Note that the dollar sign is consumed along with the variable.  So if you wanted to display the amount of money you had, with a dollar sign in front of it, you'd have to do this:
Code: [Select]
You have $$money.which would appear as
Code: [Select]
You have $1000.

I don't feel like uploading a build right now, but it's in CVS and it'll be in the next posted CVS build. :p
Title: Showing variable values in messages
Post by: Falcon on January 17, 2005, 04:57:56 pm
Ahhhhh thats great :yes:

Makes messaging alot shorter............
Title: Showing variable values in messages
Post by: karajorma on January 17, 2005, 06:18:28 pm
Excellent. Gonna bugger up voice acting of course but I've been waiting for this for so long I couldn't care less :D
Title: Showing variable values in messages
Post by: phreak on January 17, 2005, 06:55:42 pm
Actually it would really be useful for those stealth missions where you have to stay X meters from fighters.  just plop the smallest distance in a variable and use the training-msg sexp
Title: Showing variable values in messages
Post by: Gregster2k on January 20, 2005, 03:33:49 pm
Bugger up voice acting? Pffft. This is a step toward making the voice replace the number with a voice file for that number...
Title: Showing variable values in messages
Post by: karajorma on January 20, 2005, 04:06:43 pm
Quote
Originally posted by Gregster2k
Bugger up voice acting? Pffft. This is a step toward making the voice replace the number with a voice file for that number...


I doubt it. Have you any idea how much voice acting would be required to support such a feature? Not to mind the fact that that sort of effect sounds horribly false.

As Phreak says though using this in missions where you've got training messages that can support it would be very good though.
Title: Showing variable values in messages
Post by: Gregster2k on January 20, 2005, 04:10:53 pm
Only as false as the actor makes it out to be. Freelancer can do it seamlessly, you know. It just takes GOOD voice actors. The point is that the option should be possible, just in case, you know what I mean?
Title: Showing variable values in messages
Post by: SadisticSid on January 26, 2005, 04:54:00 pm
I've never heard it done seamlessly. Where did Freelancer do that?
Title: Showing variable values in messages
Post by: WMCoolmon on January 26, 2005, 06:16:40 pm
Quote
Originally posted by SadisticSid
I've never heard it done seamlessly. Where did Freelancer do that?


Maybe it was just so seamless you didn't notice? :p
Title: Showing variable values in messages
Post by: NGTM-1R on January 26, 2005, 06:22:47 pm
Freelancer has noticible pauses, it's not seemless.