Jump to content

nycbard

Resident
  • Posts

    11
  • Joined

  • Last visited

Reputation

0 Neutral
  1. Thank you, to the both of you, for helping me out. I understand now. Noob error =)
  2. Hi, i made an on-ine statue indicator for staff boards. The staff board works correctly, displaying the staff member's profile image and their on-ine status. My issue is that during a one of my (if..else) loops, I am not having communication. The ROOT prim/script should be sending a number (either a 1 or a 0) to a CHILD prim/script. When the message is recieved a texture is changed. dataserver(key queryid, string data) { if ( data == "1" ) { status = " is online"; llSetText(name + status, <0,1,0>, 1.0); llMessageLinked(integer LINK_SET, integer 1, "", ""); } else if (data == "0") { status = " is offline"; llSetText(name + status, <1,0,0>, 1.0); llMessageLinked(integer LINK_SET, integer 0, "", ""); } That is the code of the dataserver in the ROOT prim/script default { state_entry() { link_message(integer sender_number, integer number, string message, key id) { if ( sender_number == "1" ){ fliptexture(AVAILABLE); } else if ( sender_number == "0"){ fliptexture(UNAVAILABLE); } } } } This is my CHILD prim/script I think my error is how i'm passing the info, but i can't seem to get it. All the help is greatly appreciated
  3. is there a way to get the hover text of an object then? list text = llGetPrimitiveParams([PRIM_TEXT]);show = llList2String(text, 0);llSay(0, show); Isn't returning anything =(
  4. Thank you very much for all of your help guys!
  5. Is there a field seperator in LSL? I am trying to use an UUID and use a field seperator with a set delimiter to create a list of values. Then i would cross reference the values against a table and have a visual output. Kinda like using a hash in Perl with "Key" => "Value". is that possible with LSL? if this idea is too complicated, my second alternative question would be; How can i move the Hover Text to a location of my choice? If an objects displayes a Hover Text, can it be set to a default location to be displayed about 1 meter from the object? which function would i use? in other words, how can i use another set of prims to act as a "mouse over" from a matrix of items displayed? I understand that's a complicated and loaded question and i do not seek to have someone write the script for me, just give me a direction of functions to look into so i can figuer this out. Thank youf or your help
  6. and i love the fact that you placed the answer to life, the universe and everything in the script!
  7. Thank you Kaluura! I highly appreciate your help!
  8. default { on_rez(integer i) { llSensor("", "", PASSIVE, .5, PI); } sensor(integer num) { integer i = 0; do { llSensorRepeat("", "", PASSIVE, .5, PI, 3.0); }while(++i < num); } no_sensor() { llRezObject(llGetInventoryName(INVENTORY_OBJECT,0), llGetPos()+<0,0,.5>,ZERO_VECTOR,ZERO_ROTATION,0); } } Thats the code that i wrote so far. On rez the first Kennel is rezzed but it doesn't rez any subsequent kennels afterwards =( I think i just don't understand the loop structure well enough to edit. but i'll continues to work on it. Any help is appreciated!
  9. Thank you Amythyst for your reply. I know i can purchase a system but I would like to learn how to do this myself. =) Even if i spend the whole weekend to figuer it out. Thank you Rolig Loon for giving me a direction to go in. I am having issues with the llSensorRepeat loop itself. "(2) Starts a timer, firing a sensor to look for the object by name every few seconds. If a no_sensor event is triggered ...." state_entry() { llRezObject(llGetInventoryName(INVENTORY_OBJECT,0), llGetPos()+<0,0,.5>,ZERO_VECTOR,ZERO_ROTATION,0); llSensorRepeat("", "", PASSIVE, .5, PI/4, 3.0); } This code would rez the initial Kennel and then start a sensor. I believe it would look fo a PASSIVE items since i don't believe other types fit. Then the sensor fires: sensor(integer num_detected) Then i would use a FOR loop...this is where i'm at now. i'm not sure how to use the counter and also am i senince the NAME or TYPE of object? i'll post more as i understand more. THANK YOU for all your help.
  10. Hi, first i would like to thank everyone who answers the thread in advance. Sometimes being new makes you ask dump questions, but wihtout asking i can't learn. Thanks =) I am trying to format a script to auto rez an object from inventory. Then I need a loop to check if the item was purchased, if it was, the script would auto-rez the next item in inventory. "llRezObject(llGetInventoryName(INVENTORY_OBJECT,0), llGetPos()+<0,0,.5>,ZERO_VECTOR,ZERO_ROTATION,0);" So i got this piece of code to auto rez the object from inventory but i don't know how to rez next. This is going to be for a vendor that sells K9 Kennels. So when someoen buys the first kennel another is placed in its place. I have looked in WIki Script Library but couldn't find anything. Thank you for your help.
×
×
  • Create New...