Jump to content

System32jos

Resident
  • Posts

    8
  • Joined

  • Last visited

Everything posted by System32jos

  1. I am trying to make a script that changes the luster and environment without changing the currently entered specular texture. I did some research but found that there is no option to change the luster and environment without affecting the specular texture already in the product. GETTEXTURE only works for the original base texture of the object. But they should add the options GETTEXTURENORMALMAP GETTEXTURESPECULARMAP to be able to add this option and facilitate the change of characteristics without having to enter all UUIDs to a high quality product (several faces and several textures). THANKS
  2. This issue has to do with several things points REDUCING THE PEOPLE AROUND YOU REDUCE THE OBJECTS AROUND YOU REDUCE IN LOW GRAPHIC SETTINGS AMONG OTHER ISSUES OF YOUR COMPUTER
  3. receptor texture UUID + normal map + specular default { state_entry() { llListen(-1,"",NULL_KEY,""); } listen(integer channel, string name, key id, string msg) { if (llGetOwner() == llGetOwnerKey(id)) if (msg == "text1" ) { llSetTexture("a3e061d1-c9b1-ce89-2de9-addc39506563", 1 ); llSetTexture("77873a5d-ab44-ff8f-6a9a-d6087b5adb00", 2 ); llSetTexture("77873a5d-ab44-ff8f-6a9a-d6087b5adb00", 0 ); llSetPrimitiveParams([ PRIM_SPECULAR, ALL_SIDES, "3a97e824-fd26-1d9f-ffe7-00d0264e6631", <1.0, 1.0, 0.0>, <0.0, 0.0, 0.0>, 0.0, <0.275, 0.624, 0.832>, 51, 0]); llSetPrimitiveParams([ PRIM_NORMAL, ALL_SIDES, "1ece3148-6cea-f9eb-2152-9902944dbc3d", <1.0, 1.0, 0.0>, <0.0, 0.0, 0.0>, 0.0 ]); } if (llGetOwner() == llGetOwnerKey(id)) if (msg == "text2" ) { llSetTexture("4c1f2066-861a-bce8-4d50-efa0a521a543", 1 ); llSetTexture("80fce838-825b-a490-e17b-48f7dd51a6e8", 0 ); llSetTexture("77873a5d-ab44-ff8f-6a9a-d6087b5adb00", 2 ); llSetPrimitiveParams([ PRIM_SPECULAR, ALL_SIDES, "4dcc7f31-c8a7-6575-09ed-5fd8059534a7", <1.0, 1.0, 0.0>, <0.0, 0.0, 0.0>, 0.0,<1.000, 1.000, 1.000>, 51, 0]); llSetPrimitiveParams([ PRIM_NORMAL, ALL_SIDES, "4c1751ad-b848-b230-1cc7-134c066df4c2", <1.0, 1.0, 0.0>, <0.0, 0.0, 0.0>, 0.0 ]); } } } HUD CLICK CHANGE TEXTURE MENU integer i = 0; integer currentPos = 0; integer listener; integer MENU_CHANNEL ; // opens menu channel and displays dialog Dialog(key id) { list MENU1 = []; // count the textures in the prim to see if we need pages integer c = llGetInventoryNumber(INVENTORY_TEXTURE); if (c <= 12) { for (i = 0; i < c; i++ ) { MENU1 += llGetInventoryName(INVENTORY_TEXTURE, i); } } else { for (i = 10 * currentPos; i < (10 + (10 * currentPos)) ; i++) { // check to make sure name <= 24, or else the menu will not work. string aname = llGetInventoryName(INVENTORY_TEXTURE, i); if ( llStringLength(aname) >24) { llOwnerSay("The texture named " + aname + " has too long of a name to be used, please give it a shorter name <= 24 characters "); } else { if (i < c ) { MENU1 += aname; } } } MENU1 += ">>"; if (currentPos != 0) MENU1 += "<<"; else MENU1 += "-"; } MENU_CHANNEL = (integer) (llFrand(10000) + 10000); listener = llListen(-1, "", NULL_KEY, ""); llDialog(id, "Select one object below: ", MENU1, -1); } default { on_rez(integer num) { // reset scripts on rez llResetScript(); } touch_start(integer total_number) { // display the dialog Dialog(llDetectedKey(0)); } listen(integer channel, string name, key id, string message) { if (channel == -1) { llListenRemove(listener); if (message == ">>") { currentPos ++; Dialog(id); } else if (message == "<<") { currentPos--; if (currentPos < 0) currentPos = 0; Dialog(id); } else { // display the texture from menu selection llSetTexture(message, ALL_SIDES); } } } }
  4. I try to improve the script by combining the 3 areas texture,normal,specular. I think this could be the ultimate hud. RECEPTOR OBJECT default { state_entry() { llListen(-69,"",NULL_KEY,""); } listen(integer channel, string name, key id, string msg) { if (llGetOwner() == llGetOwnerKey(id)) if (msg == "text1" ) { llSetTexture("a3e061d1-c9b1-ce89-2de9-addc39506563", 2 ); llSetTexture("77873a5d-ab44-ff8f-6a9a-d6087b5adb00", 3 ); llSetTexture("77873a5d-ab44-ff8f-6a9a-d6087b5adb00", 1 ); llSetTexture("77873a5d-ab44-ff8f-6a9a-d6087b5adb00", 4 ); llSetPrimitiveParams([ PRIM_SPECULAR, ALL_SIDES, "3a97e824-fd26-1d9f-ffe7-00d0264e6631", <1.0, 1.0, 0.0>, <0.0, 0.0, 0.0>, 0.0, <0.275, 0.624, 0.832>, 51, 0]); llSetPrimitiveParams([ PRIM_NORMAL, ALL_SIDES, "1ece3148-6cea-f9eb-2152-9902944dbc3d", <1.0, 1.0, 0.0>, <0.0, 0.0, 0.0>, 0.0 ]); } if (llGetOwner() == llGetOwnerKey(id)) if (msg == "text2" ) { llSetTexture("4c1f2066-861a-bce8-4d50-efa0a521a543", 1 ); llSetTexture("80fce838-825b-a490-e17b-48f7dd51a6e8", 4 ); llSetTexture("77873a5d-ab44-ff8f-6a9a-d6087b5adb00", 2 ); llSetTexture("77873a5d-ab44-ff8f-6a9a-d6087b5adb00", 3 ); llSetPrimitiveParams([ PRIM_SPECULAR, ALL_SIDES, "4dcc7f31-c8a7-6575-09ed-5fd8059534a7", <1.0, 1.0, 0.0>, <0.0, 0.0, 0.0>, 0.0,<1.000, 1.000, 1.000>, 51, 0]); llSetPrimitiveParams([ PRIM_NORMAL, ALL_SIDES, "4c1751ad-b848-b230-1cc7-134c066df4c2", <1.0, 1.0, 0.0>, <0.0, 0.0, 0.0>, 0.0 ]); } } } HUD BUTTONS 1               default{ touch_start(integer total_number) { llSay(-69,"text1"); } } HUD BUTTONS 2               default{ touch_start(integer total_number) { llSay(-69,"text2"); } }
  5. O OKEY, I thought I needed a script with Time Time to personalize actions with the script. sorry.
  6. you need script default { touch_start(integer detected) { llRequestPermissions(llDetectedKey(0), PERMISSION_TRIGGER_ANIMATION); } run_time_permissions(integer perm) { if (perm & PERMISSION_TRIGGER_ANIMATION) { llStartAnimation("sit"); llOwnerSay("animation will end in 5 seconds"); llSetTimerEvent(5.0); } } timer() { llSetTimerEvent(0.0); llStopAnimation("sit"); } }
  7. you can only protect UUIDs if you put them inside a script I have a receiver and launcher script if they can improve it they can add 5 uuid and with this protect their UUID if they cannot improve it, create a HUD where each HUD cube will send the UUID to the selected channel and it will simply change this script does not work because it changes a complete object OBJETO RECEPTOR integer ch=1000; default{ state_entry() { llListen(ch,"",NULL_KEY,""); } listen(integer channel, string name, key id, string msg) { if (llGetOwner() == llGetOwnerKey(id)) { llSetTexture(llGetSubString(msg,0,-1),ALL_SIDES); } } } HUD LANZADOR integer ch=1000;               default{ touch_start(integer total_number) { llSay(ch,"UUID"); } } I hope this post helps
  8. that this post is old but it would not be easier to add the channel with the UUID in a gesture on chat and when activating the gesture in the chat the 5 textures are changed
×
×
  • Create New...