The type is 6, so using the reference above, this // script will hand out objects. 10 for scripts (the giver script will be excluded). In case you want to add items or remove items, just reset the script after you have done your adjustments: I could have included an event handler to trigger when the inventory changes but I preferred to keep things simple. A simple way to avoid this is to give simple and meaningful names to the items in the giver prim. Also, please bear in mind that the menu buttons are generated from the inventory contents of the prim, so if your object has a long name, it will be truncated when it appears on the button. One limitation is that the objects within the prim should have names smaller in length than 24 bytes. Another example would be landmark and notecard givers. This script has multiple applications depending on what you want to use it for for example, a simple application would be an automated bartender that people can click to browse and get a drink. When a user clicks a button, named after the object in the prim, the script gives a copy of that object to the user. What is does is offer a menu on touch with forward and backward browsing capabilities and lists the items contained in the same prim as the script resides in. I have seen a number of commercial givers out there on the marketplace and wanted to implement a free one. ![]() ![]() Please refer to the configuration section to configure your script before you use it. ![]() 7 Code variation: One object / avatar with NotecardĪfter some discussions with LuckyBuck Resident, support for items with names exceeding the dialog button limit was added.Īdded notecard based giver variant, for holidays and such events.Īdded object types and a variation to give out only one single object.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |