Difference between revisions of "User:Mystagic Resident/Meeroos/Sleep Script"
Jump to navigation
Jump to search
(Meeroo Sleep Cycle) |
|||
Line 5: | Line 5: | ||
YouTube video: [http://www.youtube.com/watch?v=RGU5B-MYBJU] | YouTube video: [http://www.youtube.com/watch?v=RGU5B-MYBJU] | ||
== Meeroo Sleep Schedules: == | == Meeroo Sleep Schedules: == | ||
< | <source lang="lsl2"> | ||
//------------------------------------------------------------------------------------------------------- | //------------------------------------------------------------------------------------------------------- | ||
// Meeroo's Sleep Cycle v1.2 | // Meeroo's Sleep Cycle v1.2 | ||
Line 35: | Line 35: | ||
//------------------------------------------------------------------------------------------------------- | //------------------------------------------------------------------------------------------------------- | ||
// EOF | // EOF | ||
</ | </source> | ||
== Meeroo SL Time Schedules: == | == Meeroo SL Time Schedules: == |
Revision as of 17:04, 29 March 2015
Shows which meeroos are awake with a heart and counting up how long they been awake, also then shows which are sleeping with a X counting down till they awake.
YouTube video: [1]
Meeroo Sleep Schedules:
//-------------------------------------------------------------------------------------------------------
// Meeroo's Sleep Cycle v1.2
//-------------------------------------------------------------------------------------------------------
simtime() {
integer t = (llGetUnixTime() % 7200);
string meeroos = "";
integer m = 0;
if (t < 7200) {
m = (7200 - t) / 60; t = t / 60;
meeroos += "♥ Nocturnals : Awake "+(string)t+" minutes.\n";
meeroos += "✖ Diurnals : Sleep "+(string)m+" minutes.\n";
} else {
m = (14800 - t) / 60; t = (t - 7200) / 60;
meeroos += "♥ Diurnals : Awake "+(string)t+" minutes.\n";
meeroos += "✖ Nocturnals : Sleep "+(string)m+" minutes.\n";
}
llSetText(meeroos,<1,1,1>,1.0);
}
//-------------------------------------------------------------------------------------------------------
default {
on_rez(integer p) { llResetScript(); }
state_entry() { simtime(); llSetTimerEvent(5.0); }
changed(integer c){
if (c & (CHANGED_OWNER | CHANGED_REGION_START)) { llResetScript(); }
}
timer() { simtime(); }
}
//-------------------------------------------------------------------------------------------------------
// EOF
Meeroo SL Time Schedules:
------------------------------------------- Nocturnals / Dirunals - Schedules ------------------------------------------- 00:00 nocturnals - Midnight 00:30 nocturnals - Sunrise 01:00 nocturnals 01:30 nocturnals 02:00 dirunals - Midday 02:30 dirunals 03:00 dirunals 03:30 dirunals - Sunset ------------------------------------------- 04:00 nocturnals - Midnight 04:30 nocturnals - Sunrise 05:00 nocturnals 05:30 nocturnals 06:00 dirunals - Midday 06:30 dirunals 07:00 dirunals 07:30 dirunals - Sunset ------------------------------------------- 08:00 nocturnals - Midnight 08:30 nocturnals - Sunrise 09:00 nocturnals 09:30 nocturnals 10:00 dirunals 10:30 dirunals 11:00 dirunals 11:30 dirunals - Sunset ------------------------------------------- 12:00 nocturnals - Midnight 12:30 nocturnals - Sunrise 13:00 nocturnals 13:30 nocturnals 14:00 dirunals - Midday 14:30 dirunals 15:00 dirunals 15:30 dirunals - Sunset ------------------------------------------- 16:00 nocturnals - Midnight 16:30 nocturnals - Sunrise 17:00 nocturnals 17:30 nocturnals 18:00 dirunals - Midday 18:30 dirunals 19:00 dirunals 19:30 dirunals ------------------------------------------- 20:00 nocturnals - Midnight 20:30 nocturnals - Sunrise 21:00 nocturnals * Meeroo Season Change 21:30 nocturnals 22:00 dirunals - Midday 22:30 dirunals 23:00 dirunals 23:30 dirunals - Sunset -------------------------------------------