Timeout

i hate them, i know they are messing this up, as of now the seteffect happens everytime in an endless loop and when i cross a level, don’t want that.

I just want the damn thing to shift to darkness at 12:00 and STAY dark, then shift to light at 0:00 and stay light until getting back to 12:00 and starting the process over…

  if (isonmap) {
    if (this.hour>=12&&this.enabled=1) {
//at 12:00 from light to dark
      seteffect 0,0,0,0;
      sleep .2;
      seteffect 0,0,0,.1;
      sleep .2;
      seteffect 0,0,0,.2;
      sleep .2;
      seteffect 0,0,0,.3;
      sleep .2;
      seteffect 0,0,0,.4;
      sleep .2;
      seteffect 0,0,0,.5;
      sleep .2;
      seteffect 0,0,0,.6;


    }
    else  {
//at 0:00 from dark to light
      seteffect 0,0,0,.6;
      sleep .2;
      seteffect 0,0,0,.5;
      sleep .2;
      seteffect 0,0,0,.4;
      sleep .2;
      seteffect 0,0,0,.3;
      sleep .2;
      seteffect 0,0,0,.2;
      sleep .2;
      seteffect 0,0,0,.1;
      sleep .2;
      seteffect 0,0,0,0;

    }
  }
  if (!isonmap&&this.enabled=1&&level.daynightoff=0) {
    seteffect 0,0,0,0;
  }

  //end seteffect check
timeout = 0.5;

IF i take this out:

//end seteffect check timeout = 0.5;

The minutes/hours dont count up, unless i cross over a level…

Not to nitpick or drive this off topic, but would it not be wiser to have it change at 6 AM and 6 PM?

Then again, I guess it really doesn’t matter if you aren’t using a system clock and/or nobody ever sees the time, does it?

I had a great day/night script back in the day, wish I still had it, sorry man :frowning: