EscuroBiryukIndomitus Posted January 19, 2020 Share Posted January 19, 2020 Hello, I have been going through various questions on here about scripting and I am still a bit lost on things. I am working on enclosures for various breedable animals and I am looking to have them do two things... 1.) Detect an offspring when birthed or dropped that is owner only. 2.) Have a built-in autofeeder (preferring to be notecard based). If anyone can please help point me in the direction on the basis of both types of scripts, your help will be greatly appreciated. Link to comment Share on other sites More sharing options...
Mollymews Posted January 19, 2020 Share Posted January 19, 2020 a whole lot of knowledge is needed to bring these kinds of projects to fruition as you mention there is not much information about all this freely/readily available to us on the web to get you started on the path, it might be better to post in the Wanted section of these forums for a knowledgeable person who can spend time to help/assist you in getting up to speed on all the different facets of this project Link to comment Share on other sites More sharing options...
EscuroBiryukIndomitus Posted January 19, 2020 Author Share Posted January 19, 2020 Thank you, Molly. I know that there are some kits on MP that are for this. But, just like when it would come to working with someone, I am on a very limited income and wouldn't be able to pay for anything at this time. Link to comment Share on other sites More sharing options...
Mollymews Posted January 20, 2020 Share Posted January 20, 2020 (edited) a thing we can do is to write ('script') our project in a human language. English for example: A. When an Offspring is born: 1) Add a new offspring record to the database table: Offspring 2) Record the uuid (key) of the SL Owner of the Offspring 3) Assign Offspring attributes from database table: Attributes 4) On affirmation by database server, on http request from SL Owner HUD, have HUD rez a new Offspring object inworld 5) From script within new Offspring object then ON_REZ - fetch Offspring Attributes from database using http - apply fetched Attributes to newly rezzed Offspring object B. ... another thing to do ... C. .... and another ... your breedables may or may not work exactly this way. Just script in English the way they do work when we do this then we are thinking in our programming language: English when our English program is working logically then we can translate it to another language more readily. LSL, PHP, etc when we can see/show our program (or part of) in English then the question becomes: What LSL functions and/or events do I need to translate my program to LSL ? We can answer this by looking in the LSL wiki, or we can ask on forums like this one for pointers to the appropriate wiki listings when we are unsure edit add. Escuro, the two questions asked in the OP are really broad. They are more a subject heading like written above: A. Do this. B. Do this other thing there needs to be a bit more detail before a more useful in-depth answer can be given Edited January 20, 2020 by Mollymews Link to comment Share on other sites More sharing options...
EscuroBiryukIndomitus Posted January 20, 2020 Author Share Posted January 20, 2020 Hopefully, this will provide more detail information. The enclosures that I am envisioning on doing will have a floor that is scripted to alert the owner of a bundle/kennel/nest/box/sack/etc. was rezzed. I have some horse bundle sensors that I have bought some time ago that will notify me of a new "drop" via IM and email (if I am not online). They work in a 20 meter area and are set to register owner only owned horses. I also have a different one that registers a 40 meter area, but it receives the information from any that is dropped, whether I own the horse or not. I am also wanting to include a feeder system built into it. Each copy of the enclosures will have its own rez plate that, when activated, will rez out a new food when it detects that one is missing from it. Each type of enclosure will have a storage area for the food included in the package for the rez plates to receive the new food from. Link to comment Share on other sites More sharing options...
Mollymews Posted January 20, 2020 Share Posted January 20, 2020 2 hours ago, EscuroBiryukIndomitus said: The enclosures that I am envisioning on doing will have a floor that is scripted to alert the owner of a bundle/kennel/nest/box/sack/etc. was rezzed how is the bundle rezzed ? From a user's inventory ? when so then rather than a sensor in the floor then the bundle script on_rez can ask for the presence of the floor and listen for a response. When the floor script responds the bundle can act appropriately. An open listen tends to use less resources than a repeating sensor http://wiki.secondlife.com/wiki/LlListen Link to comment Share on other sites More sharing options...
EscuroBiryukIndomitus Posted January 20, 2020 Author Share Posted January 20, 2020 (edited) 8 hours ago, Mollymews said: how is the bundle rezzed ? From a user's inventory ? The rezzing comes from it being birthed. These are breedable animals. Upon finding the old forum archives, what I am looking for is where I can read about a script that "Detects Objects" instead of "Detect Avatars". But, I want to make it to where it detects by a certain name of the object and a certain range, say 5 meters. As for the second part of the question, the autofeeders, I am still looking around on that. Edited January 20, 2020 by EscuroBiryukIndomitus New information to be added Link to comment Share on other sites More sharing options...
Mollymews Posted January 20, 2020 Share Posted January 20, 2020 5 hours ago, EscuroBiryukIndomitus said: Upon finding the old forum archives, what I am looking for is where I can read about a script that "Detects Objects" instead of "Detect Avatars". But, I want to make it to where it detects by a certain name of the object and a certain range, say 5 meters. http://wiki.secondlife.com/wiki/LlSensor Link to comment Share on other sites More sharing options...
EscuroBiryukIndomitus Posted January 20, 2020 Author Share Posted January 20, 2020 Thank you, Molly. That was what I was looking for to help me lead the way. 1 Link to comment Share on other sites More sharing options...
Recommended Posts
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