I'm making an RPG with a day/night timer that is like normal hours but its in minutes... 24 hours = 24 minutes. I cant seem to figure out how to do it...
Well 60000 waits = 1 minute.
You could actually have a countdown timer on your map. That way the players can tell when night or day comes themselves, and it would be easier for you trigger-wise.
And I know that... 1,000 milliseconds = 1 Minute. Im talking about using a countdown timer but I dont know how to make it do stuff like... at 19:00-4:00 its dark and 5:00-18:00 its light.
ADDITION:
Ya.. what you said but how do I make it work...?
well think, use eh condition coundown timer is exactly 19(how ever many seconds) band tehn at 400 just change back etc. and what i did for night/day is in te hday time have an observer on top of ur unit and have it follow u and if it gets to far away move it up etc. and at nigt hdestroy it so u have a veiw impairment

and u can have units sleep, liek in my rpg i turned ghosts(guards) turn into probes(sleeping guards)
I think the easiest way to do the countdown timer for night/day would not be to have it countdown 24 hours, but countdown the time until it turns from night to day and back to night.
So if night lasts 12 hours and day is 12 hours, have the countdown set to 12000 and when it reaches 0 that means day is over. Then reset the countdown timer back to 12000 for nighttime. With this you would have a switch or something to keep track if its night/day.
Or if you want to do a countdown timer with 24 hours, set it to 24000 and use the modifiers AT LEAST and AT MOST to create a range such as 19000 to 4000. You also need to have it so when it reaches 0 it resets the timer back to 24000.
So for 19:00-4:00 its dark and the rest of the time day it would be
Two triggers one for each of the following conditions for night:
Countdown timer is at most 19000
Countdown timer is at least 4000
And day would be two conditions:
Countdown timer is at most 3999
Countdown timer is at least 19001
This would be for if you want to continually have the trigger run throughout the course of day/night.
If not and you just want to have it switch between night/day, having the trigger run once do what sharf said.
QUOTE
And I know that... 1,000 milliseconds = 1 Minute.
1000 milliseconds equals 1 second, not a minute.
QUOTE
dont know how to make it do stuff like... at 19:00-4:00 its dark and 5:00-18:00 its light.
Just use the count down timer condition. (at least 4 and at most 19 or whatever)
Yeah... Old Fashioned... your technique didn't quite work... since your 24000ms gave me 6 hours... Ive been running tons of trials to perfectly match 24 MINUTES...
I haven't tested it, I was just using numbers other people have said and since 1000ms = 1 minute then 24000ms should be 24 minutes.
EDIT: Countdown timer doesn't go by milliseconds, it goes by seconds.
60s = 1 min so adjust the numbers accordingly.
QUOTE(killer_kow @ Mar 16 2006, 05:03 PM)
1000 milliseconds equals 1 second, not a minute.
[right][snapback]446908[/snapback][/right]
QUOTE(OldFashionedHamburgers @ Mar 16 2006, 11:10 PM)
I haven't tested it, I was just using numbers other people have said and since 1000ms = 1 minute then 24000ms should be 24 minutes.
[right][snapback]447222[/snapback][/right]
You obviously didn't read this one.
Oh yea, you got me there. My bad.
Nevertheless, the countdown timer goes by seconds.
Yeah... its 1440 seconds that equal 24 minutes... Is there anyway to count-up? Such as go from 0-24 instead of 24-0?
QUOTE(urmom @ Mar 16 2006, 05:06 PM)
Here's a tutorial for having countup timers which can make it seem more clockish if thats even a word.
http://www.staredit.net/index.php?tutorial=45[right][snapback]446913[/snapback][/right]
There
I'd rather use a physical timer, it's much easier to create, it's essentially 99.99% bug free and it won't interfere with waits or death counts.
1) Find out the amount of distance it takes for an observer to flyby in 1 minute, or any time which you desire.
2) Create a location at the start and end of that journey
3) Each time the observer gets to the second location, move it to the first and order i to move to the second
4) Create a separated area in which you will create units to determine time. Let's say that 1 marine will equal to 1 time which the observer has reached the seoncd location, and in this example, 1 minute.
5) When you have 24 units in that separate location, 24 minutes will have passed and you can remove the units and do your day//night effects.
You can also use deathcounters instead of units, when the counter reaches 24, just reset it.