Jump to content

help with rlv coding


You are about to reply to a thread that has been inactive for 74 days.

Please take a moment to consider if this thread is worth bumping.

Recommended Posts

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

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");

  • Like 1
Link to comment
Share on other sites

You are about to reply to a thread that has been inactive for 74 days.

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
 Share

×
×
  • Create New...