Jump to content

ohn

Resident
  • Posts

    73
  • Joined

  • Last visited

Everything posted by ohn

  1. i posted this to the other discussion ... but couldn't you do it like the dance balls in a club? when you are animated by one of those, you can move around where you want. There's an old script in the library for a dance ball, maybe you could use it: http://lslwiki.net/lslwiki/wakka.php?wakka=LibraryDanceBall not like the little pose balls that you sit on and dance, but the other ones that are often over the dance floor like a disco ball that you click and allow them to animate you while you are standing.
  2. couldn't you do it like the dance balls in a club? when you are animated by one of those, you can move around where you want. There's an old script in the library for a dance ball, maybe you could use it: http://lslwiki.net/lslwiki/wakka.php?wakka=LibraryDanceBall edit: not like the little pose balls that you sit on and dance, but the other ones that are often over the dance floor like a disco ball that you click and allow them to animate you while you are standing.
  3. thanks Rolig!! trying now default{ state_entry() { llSay(0, "Hello, Avatar!"); } touch_start(integer total_number) { llSay(0, "Touched."); }}
  4. and Innula too! How do you make the code pretty like that, with the colors?
  5. OMG! thank you so much Rolig!!! now that you explain it, i realize i have had a similar problem in a different script/different events. thanks!!!!!
  6. hi! i am doing something wrong and have been trying for hours to figure out what it is. I have two prims that i want to talk to each other, BASE and SAT. Each have a script in them and each have the same notecard in them. the notecard defines the listen channel, the object name of the BASE and the object name of the SAT. I modified scripts, which I believe I had found in the wiki, so that they were supposed to read the configs from the notecard. If either is touched, it should send a message to the other object. when either object hears a message sent to it from the other object, it should chat the message it received ... "should" that is, if i were doing it right. It appears that both are successfully reading the notecard, as at one point i added llOwnerSay to check (now removed) and each appeared to correctly read the needed configs. Any ideas? The notecard, SAT script, and BASE script are below: //NOTECARD "config" CHANNEL=93829488 SATNAME=SAT BASENAME=BASE //SAT script //NOTECARD VARIABLES integer line; string ConfigurationFile = "config"; key readLineId; integer listen_handle; integer listen_channel; string base_name; initialize() { //NOTECARD INITIALIZATION // make sure the file exists and is a notecard if(llGetInventoryType(ConfigurationFile) != INVENTORY_NOTECARD) { // notify owner of missing file llOwnerSay("Missing inventory notecard: " + ConfigurationFile); return; // don't do anything else } // initialize to start reading from first line line = 0; // read the first line readLineId = llGetNotecardLine(ConfigurationFile, line++); } processConfiguration(string data) { // if we are at the end of the file if(data == EOF) { // notify the owner llOwnerSay("We are done reading the configuration"); // do not do anything else return; } // if we are not working with a blank line if(data != "") { // if the line does not begin with a comment if(llSubStringIndex(data, "#") != 0) { // find first equal sign integer i = llSubStringIndex(data, "="); // if line contains equal sign if(i != -1) { // get configs list temp = llParseString2List(data, ["="], []); if(llGetListLength(temp) == 2) { if( llList2String(temp, 0) == "CHANNEL") { listen_channel = (integer) llList2String(temp, 1); } if( llList2String(temp, 0) == "BASENAME") { base_name = llList2String(temp, 1); } } } else // line does not contain equal sign { llOwnerSay("Configuration could not be read on line " + (string)line); } } } // read the next line readLineId = llGetNotecardLine(ConfigurationFile, line++); } default { state_entry() { initialize(); listen_handle = llListen(listen_channel, base_name, "", ""); } on_rez(integer start_param) { initialize(); } touch_start(integer total_number) { llRegionSay(listen_channel,"msg TO base\n"); } changed(integer change) { if(change & CHANGED_INVENTORY) initialize(); if(change & CHANGED_OWNER) initialize(); } listen( integer listen_channel, string name, key id, string message ) { llSay(0, "MSG FROM BASE:" + message + "\n"); } dataserver(key request_id, string data) { if(request_id == readLineId) processConfiguration(data); } } //BASE script //NOTECARD VARIABLES integer line; string ConfigurationFile = "config"; key readLineId; integer listen_handle; integer listen_channel; string sat_name; initialize() { //NOTECARD INITIALIZATION // make sure the file exists and is a notecard if(llGetInventoryType(ConfigurationFile) != INVENTORY_NOTECARD) { // notify owner of missing file llOwnerSay("Missing inventory notecard: " + ConfigurationFile); return; // don't do anything else } // initialize to start reading from first line line = 0; // read the first line readLineId = llGetNotecardLine(ConfigurationFile, line++); } processConfiguration(string data) { // if we are at the end of the file if(data == EOF) { // notify the owner llOwnerSay("We are done reading the configuration"); // do not do anything else return; } // if we are not working with a blank line if(data != "") { // if the line does not begin with a comment if(llSubStringIndex(data, "#") != 0) { // find first equal sign integer i = llSubStringIndex(data, "="); // if line contains equal sign if(i != -1) { // get configs list temp = llParseString2List(data, ["="], []); if(llGetListLength(temp) == 2) { if( llList2String(temp, 0) == "CHANNEL") { listen_channel = (integer) llList2String(temp, 1); } if( llList2String(temp, 0) == "SATNAME") { sat_name = llList2String(temp, 1); } } } else // line does not contain equal sign { llOwnerSay("Configuration could not be read on line " + (string)line); } } } // read the next line readLineId = llGetNotecardLine(ConfigurationFile, line++); } default { state_entry() { initialize(); listen_handle = llListen(listen_channel, sat_name, "", ""); } on_rez(integer start_param) { initialize(); } touch_start(integer total_number) { llRegionSay(listen_channel,"msg TO SAT"); } changed(integer change) { if(change & CHANGED_INVENTORY) initialize(); if(change & CHANGED_OWNER) initialize(); } listen( integer channel, string name, key id, string message ) { llSay(0, "MSG FROM SAT: " + message); } dataserver(key request_id, string data) { if(request_id == readLineId) processConfiguration(data); } }
  7. ty Rolig! i'd gotten the tip to use llAvatarOnLinkSitTarget in a scripting group, but I'd went about it in much less clean way. this much better!
  8. is there a way to tell which child prim an av sat on? i tried a script in the child prim and used the changed event, but it gets triggered no matter which prim i sit on.
  9. XIV is one of my very favorites too! I like the area with the sorta message-in-a-bottle theme, and the sad merrygoround sound that plays near the merrygoround.
  10. how about a quiet place where not many people visit wouldn't that make logging back in a little easier? Edited: typo
  11. Compared to most people guess i'm new. My two cents ... i played the linden realms game because it said i could earn lindens. I did, earned about 150 of em. The game is not fun, but then i was playing to get lindens - so, course i liked it. probably go try to earn more tonight. And some people here said the game isn't really a game - more of a prototype to try out new functions. I learned about second life word of mouth. signed up. its okay, but really, not that much that i see to do, slex, meeros and vampires are not my thing. i thought maybe i could be a store owner but it kind of looks like the linden lab people give away lot of good stuff and make free games now too. mostly just wander around cool but empty places. the i find that look really really cool are empty lot of the time which is wierd (clubs are crowded), but then there isn't much to do at these cool places either ... nobody else to interact with. the busy ones are these club places that are sorta like glorified 3d chat rooms. building looks fun not worth it. i know how to do some graphics software like ps but you can get a lot of good stuff for free or one or two lindens. i don't have time to build things for fractions of usd. to do anything really fun or to have any control over anything you need to have your own region an that's like thousands of usd a year and looks pretty hard to make lindens to make it worth it! that's everybody says homesteads are too laggy and you can't get one of those unless you by the full region. oh, I see lot people saying there is all this lag everywhere. i don't see any lag ... pretty good actually pretty much everywhere i go. wonder why its different for differnt people
×
×
  • Create New...