Jump to content

Shashi Winterwolf

Resident
  • Posts

    6
  • Joined

  • Last visited

Reputation

0 Neutral

Recent Profile Visitors

54 profile views
  1. thank you everyone for your help this project is completed for the time being
  2. 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 ?
  3. oh ok thank you is there any other mistake I might have made I'm new to scripting in general
  4. 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
  5. sweet thank that worked how about this integer owner; default { state_entry() { llListen(1979, "", NULL_KEY, ""); } touch_start(integer total_number) { llDialog(llDetectedKey(0), "select an option:",["option 1","option 2"],1979); } listen(integer channel, string name, key id, string message) { if(channel == 1979){ if(message == "option 1"){ string oldName = llGetObjectName(); llSetObjectName(""); owner = llGetDisplayName(llGetOwner()); llSay(0," " + owner + "you chose the first option on the dialog."); llSetObjectName(oldName); llSetLinkAlpha(3,0,ALL_SIDES); llSetLinkAlpha(2,0,ALL_SIDES); ; }else if(message == "option 2"){ llSay(0," you chose the second option on the dialog."); llSetLinkAlpha(3,1,ALL_SIDES); llSetLinkAlpha(2,1,ALL_SIDES); ; } } }} trying to get it to say my name in chat and not the box name the editor I'm using asks this Cannot implicitly convert type 'string' to 'integer'. An explicit conversion exists (are you missing a cast?) were would I learn about casts?
  6. Hello! Can anyone help me understand what I've done wrong? The dialog box shows up, but nothing else happens. The chat doesn't display any messages and the prims alpha don't change either. If I change the "channel ==100" to "o", then it simply displays the button names in the chat. default { state_entry() { } touch_start(integer total_number) { llDialog(llDetectedKey(0), "select an option:",["option 1","option 2"],1979); } listen(integer channel, string name, key id, string message) { if(channel == 1979){ if(message == "option 1"){ llSay( 0," you chose the first option on the dialog."); llSetLinkAlpha(3,0,ALL_SIDES); llSetLinkAlpha(2,0,ALL_SIDES); ; }else if(message == "option 2"){ llSay(0," you chose the second option on the dialog."); llSetLinkAlpha(3,1,ALL_SIDES); llSetLinkAlpha(2,1,ALL_SIDES); ; } } }} were have I gone wrong . please help
×
×
  • Create New...