Jump to content

Ayumi Faith

Resident
  • Posts

    4
  • Joined

  • Last visited

Reputation

0 Neutral

Recent Profile Visitors

The recent visitors block is disabled and is not being shown to other users.

  1. How do I set different sky for different hight/altitude ? This is what I had before. /*Windlight Sky: "[AnaLu] studio4" Water: "[TOR] Meridian verde" Sky@19-190: "B5-ShadowDancing" *Sky@200-449:"Dusty" Sky@450-550: "(SS) Atmospheric 00:00b" Sky@990-1100: "[AnaLu] studio4" RegionOverride */ I did import the old xml files in but I can not get it to set to the altitude I want. for now am on the old viewer waiting for a tutorial on having more then one EEP on a Parcel
  2. I don't want to bug my neighbours with this. Just to shine some light on what am doing I got this from the market place LINK and it was shouting the announcement. So I want to make my own. This is what my script looks like as of now. string card = "Announcement";key linecountid;key lineid;integer linemax;integer random_integer( integer min, integer max ){ return min + (integer)( llFrand( max - min + 1 ) );}default{ state_entry() { llSetPrimitiveParams([ PRIM_TEXTURE, ALL_SIDES, "f75823f3-f2df-bcde-c398-09724eafaef4", <1.0, 1.0, 0.0>, <0.0, 0.0, 0.0>, 0.0 ]); llSetObjectName("GLaDOS"); linecountid = llGetNumberOfNotecardLines(card); llSetTimerEvent(300.0); //1800sec = 30mins | 600 = 10min | 300 = 5min } changed(integer change) { if (change & CHANGED_INVENTORY) //note that it's & and not &&... it's bitwise! { llOwnerSay("I feel like I have gained more knowledge."); llPlaySound("038483a4-6b7d-5f14-d782-2b7a656041ae",0.5); llSleep(0.1); llResetScript(); } } timer() { llPlaySound("59411461-3f3c-dc31-106f-a31827865c3f",0.5); llSetPrimitiveParams ([PRIM_POINT_LIGHT, TRUE, <1.0, 0.0, 0.0>, 1.00, 2.0, 0.75]); llSetPrimitiveParams( [ PRIM_GLOW, ALL_SIDES, 0.05 ] ) ; llSetPrimitiveParams( [ PRIM_FULLBRIGHT, ALL_SIDES, TRUE]); llSetPrimitiveParams( [ PRIM_COLOR, ALL_SIDES, <1.0, 0.0, 0.0> ,1.0]); llSleep(2.5); lineid = llGetNotecardLine(card, random_integer(0, linemax)); llSleep(0.5); llSetPrimitiveParams ([PRIM_POINT_LIGHT, FALSE, <0.0, 0.0, 0.0>, 1.00, 2.0, 0.75]); llSetPrimitiveParams( [ PRIM_GLOW, ALL_SIDES, 0.0 ] ); llSetPrimitiveParams( [ PRIM_FULLBRIGHT, ALL_SIDES, FALSE]); llSetPrimitiveParams( [ PRIM_COLOR, ALL_SIDES, <0.000, 0.122, 0.247> ,1.0]); } dataserver(key id, string data) { if (id == linecountid) { linemax = (integer)data - 1; } else if (id == lineid) { llSay(0, data); } }}
  3. Thank you so much this worked. string card = "Announcement";key linecountid;key lineid;integer linemax;integer random_integer( integer min, integer max ){ return min + (integer)( llFrand( max - min + 1 ) );}default{ state_entry() { linecountid = llGetNumberOfNotecardLines(card); llSetTimerEvent(10.0); } timer() { llPlaySound("UUID",0.1); llSleep(2.0); lineid = llGetNotecardLine(card, random_integer(0, linemax)); } dataserver(key id, string data) { if (id == linecountid) { linemax = (integer)data - 1; } else if (id == lineid) { llSay(0, data); } }}
  4. I am trying to get a object to say a random line from a notecard every 1 min or so. But I can only get it to work when you touch it. I don't want it to work when touched. here is what I got so far. string card = "Announcement"; key linecountid; key lineid; integer linemax; integer random_integer( integer min, integer max ) { return min + (integer)( llFrand( max - min + 1 ) ); } default { state_entry() { linecountid = llGetNumberOfNotecardLines(card); llSleep(10.0); llPlaySound("953d8b35-cdae-f316-92f6-92bf3c2264e1",0.02); llSleep(2.0); //############################################################# // lineid = llGetNotecardLine(card, random_integer(0, linemax)); llSay(0, llGetNotecardLine(card, random_integer(0, linemax)));//I can't get it to read a random line from notecard. //llSay(0, dataserver(data)); // linemax; //############################################################## llSleep(0.1); llResetScript(); } dataserver(key id, string data) { if (id == linecountid) { linemax = (integer)data - 1; } else if (id == lineid) { llSay(0, data); } } } This line works when I use it in a touch_start(integer total_number) lineid = llGetNotecardLine(card, random_integer(0, linemax)); I have no clue what to do to get it to work right. Can someone tell me what I need to do to get it right.
×
×
  • Create New...