Jump to content

Erin Grayman

Resident
  • Posts

    7
  • Joined

  • Last visited

Reputation

0 Neutral

Recent Profile Visitors

The recent visitors block is disabled and is not being shown to other users.

  1. Hi, I am a woman of passionately persistent creativity, and I have a college course background in photography and I am familiar with the Second Life camera controls, including view angle, which I aim to use entensively. I have been interested in photography for most of my life, and I am willing to take the time to take a very great amount of pictures. Once I start, I often can't stop!
  2. I.E is it rezzed as a modified copy of itself? Or what? And are the textures or colors stored in the original animal or should they be stored separately? I want to create a breedable but this is a bit confusing, how is it possible for the creature to have almost indefinite generations? After all isn't that the point, they should be more than 2 or 3 gens? Thanks.
  3. What can be done about this, it's over 64kb.
  4. I wanted the script to listen for a sentence with " is " contained in it on channel 77, then parse it until probably what is left would be the noun or noun phrase in the sentence (by removing articles and such from the string), next looking up a url ("http://www.thesaurus.com/" + resultant word from parse, once on the page look for some words after the " is " in the sentence it listened for, and finally, if the string from after " is " exists in the thesaurus page, script says that the sentence is a definition (since the words after " is "are actually mentioned on the thesaurus page) or otherwise if it can't find that string, return a message saying that the sentence was an analogy or comparison. Thanks!
  5. Ok I'm pretty new to this. How do I make up the request? Thanks.
  6. My script is not behaving the way I expected. I would appreciate if an advanced scripter could take a look at this script: key request_id; integer listen_handle; integer indexOfFirstIsLetterBefore; integer indexofFirstLetterAfter; string beforeIs; string afterIs; default { state_entry() { llSay(0, "Hello everyone. My name is AI Doll Demo Version 1. I was created by Erin Grayman. Please tell me a simple sentence containing the word 'is' in channel 77."); listen_handle = llListen(77, "", llDetectedKey(0), " is "); } listen(integer channel, string name, key id, string msg) { //Get the index of the character before the space in " is ". indexofFirstLetterAfter = (llSubStringIndex(msg, " is "))+4; indexOfFirstIsLetterBefore = (llSubStringIndex(msg, " is "))-1; beforeIs = llGetSubString(msg, 0, indexOfFirstIsLetterBefore); afterIs = llGetSubString(msg, indexofFirstLetterAfter, llStringLength(msg)-1); if (llSubStringIndex(beforeIs, " is ") == -1 && llSubStringIndex(beforeIs, " is ") == -1) { if (llSubStringIndex(beforeIs, ".") != -1 || llSubStringIndex(beforeIs, ",") != -1 || llSubStringIndex(beforeIs, "!") != -1 || llSubStringIndex(beforeIs, "?") != -1) { llSay(0, "Please state a very simple sentence."); } else { list my_list = llParseString2List(beforeIs,[" "],["."]); integer myListIndexThe = llListFindList(my_list, ["The"]); my_list = llDeleteSubList(my_list, myListIndexThe, myListIndexThe); integer myListIndexA1 = llListFindList(my_list, ["A "]); my_list = llDeleteSubList(my_list, myListIndexA1, myListIndexA1); integer myListIndexA2 = llListFindList(my_list, ["a "]); my_list = llDeleteSubList(my_list, myListIndexA2, myListIndexA2); integer myListIndexLThe = llListFindList(my_list, ["the "]); my_list = llDeleteSubList(my_list, myListIndexLThe, myListIndexLThe); integer myListIndexMy = llListFindList(my_list, ["My "]); my_list = llDeleteSubList(my_list, myListIndexMy, myListIndexMy); integer myListIndexLMy = llListFindList(my_list, ["my "]); my_list = llDeleteSubList(my_list, myListIndexLMy, myListIndexLMy); integer myListIndexHis = llListFindList(my_list, ["His "]); my_list = llDeleteSubList(my_list, myListIndexHis, myListIndexHis); integer myListIndexLHis = llListFindList(my_list, ["his "]); my_list = llDeleteSubList(my_list, myListIndexLHis, myListIndexLHis); integer myListIndexHer = llListFindList(my_list, ["Her "]); my_list = llDeleteSubList(my_list, myListIndexHer, myListIndexHer); integer myListIndexLHer = llListFindList(my_list, ["her "]); my_list = llDeleteSubList(my_list, myListIndexLHer, myListIndexLHer); integer myListIndexThat = llListFindList(my_list, ["That "]); my_list = llDeleteSubList(my_list, myListIndexThat, myListIndexThat); integer myListIndexLThat = llListFindList(my_list, ["that "]); my_list = llDeleteSubList(my_list, myListIndexLThat, myListIndexLThat); integer myListIndexLAny = llListFindList(my_list, ["any "]); my_list = llDeleteSubList(my_list, myListIndexLAny, myListIndexLAny); integer myListIndexAny = llListFindList(my_list, ["Any "]); list my_final_list = llDeleteSubList(my_list, myListIndexAny, myListIndexAny); string final_Before_Is = llDumpList2String(my_final_list, " "); if (llSubStringIndex(final_Before_Is, "sl") != -1) { llInstantMessage(id, "I love sl as much as you do, but I cannot process that abbreviation. ^^"); } //Done parsing text before "is." list my_list_after = llParseString2List(afterIs,[" "],["."]); integer myListAfterIndexA = llListFindList(my_list_after, ["a"]); my_list_after = llDeleteSubList(my_list_after, myListAfterIndexA, myListAfterIndexA); integer myListAfterIndexThe = llListFindList(my_list_after, ["the"]); my_list_after = llDeleteSubList(my_list_after, myListAfterIndexThe, myListAfterIndexThe); integer myListAfterIndexPeriods = llListFindList(my_list_after, ["..."]); my_list_after = llDeleteSubList(my_list_after, myListAfterIndexPeriods, myListAfterIndexPeriods); integer myListAfterIndexPeriod = llListFindList(my_list_after, ["."]); list my_final_list_after = llDeleteSubList(my_list_after, myListAfterIndexPeriod, myListAfterIndexPeriod); string final_After_Is = llDumpList2String(my_final_list_after, " "); //Make the request. request_id = llHTTPRequest("http://www.thesaurus.com/browse/" + final_Before_Is, [HTTP_METHOD,"POST",HTTP_MIMETYPE,"application/x-www-form-urlencoded"], final_After_Is); } } else { llInstantMessage(id, "Please input a sentence with one 'is'."); } //Count backwards from that space using //uSubStringLastIndex(string source, string patternToLookFor); //llSubStringIndex returns index //of first pattern instance in source. // } http_response(key requestid, integer status, list metadata, string body) { if(request_id == requestid) { llSay(0, "I think the sentence last inputted to me was a definition or equivalence, and not an analogy or description."); } else { llSay(0, "I think the sentence last inputted to me was an analogy or descripting, and not a definition or equivalence."); } llSleep(5.0); llSay(0, "Thank you for chatting with me! I hope to talk again soon. Please tell my creator Erin Grayman if I am working correctly ;)"); } }
×
×
  • Create New...