![]() ![]() NcNumOfLinesReqId = llGetNumberOfNotecardLines(ncName) If (change & (CHANGED_OWNER | CHANGED_INVENTORY)) CHANGED_INVENTORY has the integer value 0x01 (1) CHANGED_OWNER has the integer value 0x80 (128) reset script to make sure you have the current number of lines Put the name of your notecard as in the prim's inventory here. in this example from a notecard named "colors" SCRIPT within the same prim: // this script reads from a notecard which is named whatever you set in init NOTECARD named colors or whatever you set in the script: blue #LSL WRITE TO NOTECARD CODE#Following up on this second issue, why do you ask a question to get a random notecard line number and give an answer that provides a random within a range? And what will you do if the notecard changes? Change the code and the notecard? This seems to be redundant to me. The second issue with your code above is that you are not checking against CHANGED_INVENTORY and I'm not quite sure why you'd not do that. Integer random = llFrand((integer)(max/2)) + llFrand((integer)(max/2)) If you want to make sure you have a more random number as there are known issues with the randomness of llFrand you could do (without checking whether the number is even or odd): integer max ![]() * Get key & set pin.lsl which sets the remote load pin on prims and tells the owner the prim key.It's not clear why you do such unnecessary math with adding one and then substracting it again later in the answer you give yourself above. * Print inventory texture keys.lsl which prints the keys of inventory textures * Main Display.lsl which tells the remote loader when to load, and is the only active script most of the time. * Remote Load Texture Display(input list).lsl which is remotely loaded and display the texture before deleting itself. * Remote Loader.lsl which remotely loads the 'Remote Load Texture Display(input list).lsl' script. There are 3 scripts that go in the server: ![]() Check Main Display.lsl parameters to make sure they are what you want and add that to the server. Add Load Texture Display(input list).lsl to the server. Get the keys and set the pins for all the billboards except the server using Get key & set pin.lsl. Select which billboard you want to use as a server. Set up the prims you want to use as billboards. Now decide on what number you want to use as your pin(you can leave the default of 606 if you choose). Put them into both Remote Load Texture Display(input list).lsl and Main Display.lsl. Get the keys of the textures you want to use. These programs are distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. They are hereby released into public domain. Please note there is a 3 second delay for each remote load.// // It's main use would be for billboards, although it could substitute some texture changers.// This means that the server, which consists of three scripts can load onto 30 prims without needing 20 scripts. The main benefit is that the recieving prims have *no* scripts. Remote Texture Loader Description// // These set of scripts allow for a prim to act as a server and load textures onto unlinked prims. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |