Jump to content

Boopadoopdoop

Resident
  • Content Count

    8
  • Joined

  • Last visited

Community Reputation

3 Neutral

About Boopadoopdoop

  • Rank
    Newbie

Recent Profile Visitors

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

  1. integer counter = 10; // chosen amount of living time in seconds. float CountDownSpeed = 1.0; // how fast to count down. DoText(string output) { llSetLinkPrimitiveParamsFast(LINK_THIS, [PRIM_TEXT, output, <1.0,1.0,1.0>, 1.0]); // set text based on output } DoPayload() { llSleep(CountDownSpeed); // lol lazy sleep to keep the timing correct after it reaches zero DoText("KABOOM!!!!! lolzolz"); // send payload text to output. llResetScript(); //doing this instead of llDie for testing. lol //llDie(); } default { state_entry() //Can remove state entry if not using llResetScript, just here for example. { llSleep(CountDownSpeed); // lol lazy sleep DoText(""); // blank out text } touch_start(integer total_number) { llSetTimerEvent(CountDownSpeed); // setting timer to the interval of a second } timer() { DoText((string)counter-- + " seconds"); // send count text to output. if(counter < 0) { DoPayload(); // do payload. } } }
  2. Friend helped me do this, but I can't for the life of me figure out how to sort the scores, how I need it to work, is anyone with a higher number score be sorted to the top of the list, I also need to script in a limit of 5 scores to be shown at once [tho keeping that limit changeable would be nice too] I tried using llListSort, but I'm either using it wrong, or am not sure how to implement it correctly. Any pointers would be appreciated!
  3. is already working, you example help, and i did not fully copy paste, just copied that one line for lazy reasons. lol thanx alot for help, is very nice!
  4. was not the issue, did not see they change "textures" list to "uuids", so when copied over it was confusing what happen, is use diff viewer and it not jump to where script is wrong like firestorm do lol
  5. figured it out, sorry bout that, haha, and thanx much!
  6. is there way to return index number of the item selected in menu, then can use llSetTexture(llList2String(textures, RETURNED INDEX HERE FROM NAMES LIST),ALL_SIDES); like if pick blue in menu, it's index in list is 0, then can just use that number to also match textures list.
  7. Tried to do that, but is unsure how to format it...being it seems to need a index number...and not sure how to get that from dialog menu and yes, the uuids will be in same exact order to match names
  8. So what is trying do, is trying to get the names from a dialog menu to mach with uuid's in a list, and no i don't want to have the textures inside the inventory, I want to hard code them inside. this is not the script is working on, is other script similar to figure this out, then can apply fix to actual script am working on. Is script that used to get textures from inventory, but want to hard code inside. [sorry English is bad] list textures = [ "63305784-1523-1ddc-b301-8a1a3d6f7d09", "a628d431-2b18-ef75-826f-719a37b3a2de", "8dcd4a48-2d37-4909-9f78-f7a9eb4ef903" ]; list names = [ "blue", "pink", "HIDE" ]; integer side = ALL_SIDES; integer link = 2; list texture_list; list texture_list2; key user = NULL_KEY; integer chan = -54; composelist() { integer currenttexture = 0; integer totaltextures = llGetListLength(textures); if(totaltextures > 0 & totaltextures <= 12) { texture_list = []; do { texture_list = texture_list + llList2String(names, currenttexture); currenttexture++; } while (currenttexture > 0 & currenttexture < totaltextures); } if(totaltextures > 12 & totaltextures <= 22) { texture_list = ["Next Page"]; do { texture_list = texture_list + llList2String(names, currenttexture); currenttexture++; } while (currenttexture > 0 & currenttexture < 11); texture_list2 = ["Last Page"]; do { texture_list2 = texture_list2 + llList2String(names, currenttexture); currenttexture++; } while (currenttexture >= 11 & currenttexture < totaltextures); } if(totaltextures > 22) { llWhisper(0, "Sorry, I can hold 22 textures."); } if(totaltextures == 0) { llWhisper(0, "No textures, please add some."); } } integer menu_handler; integer menu_channel; menu(key user,string title,list texture_list) { menu_channel = (integer)(llFrand(99999.0) * -1); menu_handler = llListen(menu_channel,"","",""); llDialog(user,title,texture_list,menu_channel); llSetTimerEvent(30.0); } default { state_entry() { llListen(chan, "", llGetOwner(), ""); composelist(); } touch_start(integer total_number) { if (llDetectedKey(0) == llGetOwner()) { user = llGetOwner(); menu(user,"nnPlease select one below.",texture_list); } } listen(integer channel,string name,key id,string message) { if (channel == menu_channel) { llSetTimerEvent(0.0); llListenRemove(menu_handler); if(message == "Next Page") { menu(user,"Please select one below.",texture_list2); } else if(message == "Last Page") { menu(user,"Please select one below.",texture_list); } else { /*somehow get dialog menu selection to identify UUIDs in same order as order of names list HERE*/ if (message == "HIDE") { llSetLinkAlpha(link,0,ALL_SIDES); llSetLinkTexture(link,message, side); //still set transparent texture }else{ llSetLinkAlpha(link,1,ALL_SIDES); llSetLinkTexture(LINK_THIS,message, side);//set root prim texture first for preloading. llSleep(4);//give time to load before switching texture llSetLinkTexture(link,message, side); } } } } timer() { llSetTimerEvent(0.0); llListenRemove(menu_handler); } changed(integer change) { if (change & CHANGED_INVENTORY) { composelist(); } } } also want remove the limit on the menu.... but likely remake that part on own time....
×
×
  • Create New...