Shashi Winterwolf Posted February 14 Share Posted February 14 Hello, I need help with working on a set of RLV glasses that act as a blindfold when they are removed. So far, I have got the alpha part and the blinding part working, but I am facing an issue with figuring out the names and name plates. here's the current code / integer = number //string = letters string owner; string toucher; default { state_entry() { llListen(1979, "","", ""); } touch_start(integer total_number) { llDialog(llDetectedKey(0), "select an option:",["take glasses","give glasses"],1979); } listen(integer channel, string name, key id, string message) // if = main choice , slse if = second choice else = no choise { if(channel == 1979){ if(message == "take glasses"){ string oldName = llGetObjectName(); llSetObjectName(""); owner = llGetDisplayName(llGetOwner()); toucher = llGetDisplayName(id); llSay(0," "+owner+" blind with out their glasses."); llOwnerSay("@setdebug_renderresolutiondivisor:25.0=force"); llOwnerSay("@shownames[:except_uuid]= no"); llOwnerSay("@shownametags= no"); llSetAlpha(0,ALL_SIDES); llSetObjectName(oldName); } else if(message == "give glasses"){ string oldName = llGetObjectName(); llSetObjectName(""); owner = llGetDisplayName(llGetOwner()); toucher = llGetDisplayName(id); llSay(0," "+owner+" can see now with their glasses."); llOwnerSay("@setdebug_renderresolutiondivisor:0.0=force"); llOwnerSay("@shownames[:except_uuid]= yes"); llOwnerSay("@shownametags= yes"); llSetAlpha(1,ALL_SIDES); llSetObjectName(oldName); } } } } any help if sporting the mistake would b every welcomed please and thank you Link to comment Share on other sites More sharing options...
IrMe Digfoot Posted February 14 Share Posted February 14 Rlv functions are set with =n rather than =no, similar with =y 1 Link to comment Share on other sites More sharing options...
Shashi Winterwolf Posted February 14 Author Share Posted February 14 (edited) oh ok thank you is there any other mistake I might have made I'm new to scripting in general Edited February 14 by Shashi Winterwolf Link to comment Share on other sites More sharing options...
IrMe Digfoot Posted February 14 Share Posted February 14 Seems to have a space included after the = in this script llOwnerSay("@shownametags=n"); and not llOwnerSay("@shownametags= n"); Link to comment Share on other sites More sharing options...
Shashi Winterwolf Posted February 14 Author Share Posted February 14 ya i fixed the space i got it removeing the hover name plates but peoples names are still showing in chat . am I not using the right command for that part ? Link to comment Share on other sites More sharing options...
Shashi Winterwolf Posted February 14 Author Share Posted February 14 thank you everyone for your help this project is completed for the time being Link to comment Share on other sites More sharing options...
Quistess Alpha Posted February 14 Share Posted February 14 6 hours ago, Shashi Winterwolf said: llOwnerSay("@shownames[:except_uuid]= yes"); should just be llOwnerSay("@shownames=y"); also, you can combine multiple commands into a single string: for example: llOwnerSay("@shownames=n,shownametags=n,setdebug_renderresolutiondivisor:10.0=force"); 1 Link to comment Share on other sites More sharing options...
Recommended Posts
Please take a moment to consider if this thread is worth bumping.
Please sign in to comment
You will be able to leave a comment after signing in
Sign In Now