Hard Light Productions Forums

Modding, Mission Design, and Coding => FS2 Open Coding - The Source Code Project (SCP) => Topic started by: Target on July 17, 2004, 11:53:10 am

Title: Another Fred request
Post by: Target on July 17, 2004, 11:53:10 am
A countdown timer similar to the supernova one. Just without the expanding sun and likely death. :)
Did a search and found that this was talked about at one time. Has it been forgotten or is it not possible?
Title: Another Fred request
Post by: karajorma on July 17, 2004, 12:27:12 pm
I believe I mentioned this once.

I haven't been looking at the HUD changes WMCoolmon made but if you can now display a variable on-screen this can be done already.
Title: Another Fred request
Post by: Target on July 18, 2004, 01:55:36 pm
K, thanks. I'll check that out.
Title: Another Fred request
Post by: WMCoolmon on July 18, 2004, 03:34:26 pm
It should be possible if there are SEXPs that deal with time, or a way to decrement a variable depending on how much time has passed.
Title: Another Fred request
Post by: karajorma on July 18, 2004, 05:32:48 pm
just simply use

every time
-true
-modify variable
--Counter
-- -
---counter
---1

With a high repeat count and a 1 second interval

(ie subtract one off of a variable called counter every second)

:D
Title: Another Fred request
Post by: Black Wolf on July 20, 2004, 06:35:19 am
Quote
Originally posted by karajorma
just simply use

every time
-true
-modify variable
--Counter
-- -
---counter
---1

With a high repeat count and a 1 second interval

(ie subtract one off of a variable called counter every second)

:D


NB - Attempting a similar sexp setup to this (I was adding, but it shouldn't matter) was one of the first times I encountered the variable destroying bug. If you get it, please report it to Goober so he doesn't think I'm crazy :)