Jump to content

Kaitlynn Rainforest

Resident
  • Posts

    3
  • Joined

  • Last visited

Reputation

0 Neutral

Recent Profile Visitors

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

  1. I found this script but when i go use it it will only read the first line of the notecard. I'm looking for a script that says a random line when its touch//this script will grab and chat a random line from the "words1" notecard each time the prim is touched.string card = "words1";key linecountid;key lineid;integer linemax;integer random_integer( integer min, integer max ){ return min + (integer)( llFrand( max - min + 1 ) );}default{ state_entry() { //get the number of notecard lines linecountid = llGetNumberOfNotecardLines(card); } touch_start(integer total_number) { 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); } }}
  2. I found this script for a scale i want to make for my house. Is there any way to stop the scale for every time repeating the text example [20:37] Object: Kaitlynn Rainforest your mass is 75.83 kilograms.[20:37] Object: Kaitlynn Rainforest your weight is 166.82 pounds.[20:37] Object: Kaitlynn Rainforest your mass is 75.83 kilograms.[20:37] Object: Kaitlynn Rainforest your weight is 166.82 pounds. and it doubles it self heres the script. integer precision=2; string es_round(float num, integer precision) { list tmp=llParseString2List((string) num, ["."],[]); string major=llList2String(tmp,0); float pow=llPow(10,precision); float minor=(float) ("0." + llList2String(tmp,1)); integer iMinor=llRound(minor * pow); return(major + "." + llGetSubString((string) iMinor,0,precision-1)); } default { touch(integer n) { float avmass = llGetObjectMass( llDetectedKey(0)); float avmassk = avmass * 41.39; string roundavmass = es_round(avmassk,precision); llSay(0, llDetectedName(0) + " your mass is " + (string)roundavmass + " kilograms."); // the first parameter , 0, is the channel that the following string will be said on. float avmassp = avmass * 91.05; roundavmass = es_round(avmassp,precision); llSay(0, llDetectedName(0) + " your weight is " + (string)roundavmass + " pounds."); // llDetectedName(0) is the name of the avatar who touched the prim. } }
×
×
  • Create New...