Jump to content


  • Content Count

  • Joined

  • Last visited

Everything posted by GloriaGlitter

  1. doh - what a newbie error - you were right - there was a spurious space in the data that didn't show when I checked via llOwnerSay. All sorted now. Thanks
  2. I've started experimenting with bringing in live data via API calls to external services, particularly those that present their output in json format. This is to provide extra functionality to my AI bot. So far I've got live weather reports working very nicely. Currently I'm working with live currency exchange rates. My question is can I use a string variable in my llJsonGetValue statement in place of a value? To explain further, after the http call, variable 'body' is set to {"rates":{"USD":1,"AED":3.67,"ARS":78.93,"AUD":1.38,"GBP":0.761,"GTQ":7.78,"HKD":7.75,"HRK":6.37}}
  3. Hi there - I have ventured onto Market Place for the first time and my first product is an AI Chatbot which can be used for store greeter, club receptionist, etc. Its at late beta stage and needs a few users to try it out so its listed at just L$1 for a short while. For some reason the MP algorithm said something in my listing made it at level Moderate. Initially I didn't mind but I've since found that anyone I give the link to, can't find it unless they log in to MP and have the correct maturity level. And so I realise now, that this is a problem. I can't think what words I have
  4. Is it possible to script an object so that touching it sets the home location? I've searched around the forum and MP. I'm assuming since there isn't a short cut for it that its probably not possible.
  5. Ah - knew it was a simple error. Thanks for that Rolig
  6. Hi there - this has me puzzled: I have written a little function to capitalize the first character in a sentence. I get an Error: Type mismatch on the last but one line 'testitem = capfirstlet (testitem)' but as far as I can see, I have only been dealing with strings. I must be missing something obvious. string testitem ="phil went shopping"; capfirstlet (string src) { string firstlet = llGetSubString(src, 0, 0); firstlet = llToUpper(firstlet); src = firstlet+ llGetSubString(src, 1, -1); } default { touch_start(integer total_number) { t
  7. Some great ideas here for me to work with. Thanks for the contributions - I'll report back here as I make progress.
  8. Hi Wulfie - up to 1 year in the future. I want to start with a variable that contained the future date/time first. From this date/time, I want to calculate the number of seconds between now and then. [Edit] I've since found some functions in the Date Library - in particular 'gday' which turns a date into a date number. Looks like I can do gday(y2,m2,d2) - gday(y1,m1,d1) which will give me the number of days between dates (x 24 x 60 x 60 to get seconds) - I'll now work on the time element to determine number of extra seconds to add or subtract to get final result - on righ
  9. I'm trying to make a reminder system so I need to calculate the number of seconds between now and a future date/time so I can then use that result in a timer event which can then send the reminder at the appropriate time. llGetUnixTime will give me the number of seconds from 00:00 hours, Jan 1, 1970 till now. Is there a way I can do another llGetUnixTime based on a future date/time and so all I have to do is to take the difference between these two results to get the number of seconds between now and a future date/time?
  10. Thanks Anna - knew it was something like that but couldn't put my finger it - thanks for the explanation too. Thanks Mollymews for the loop tidy up.
  11. I know I'm making a fundamental error here but I cant see what I'm doing wrong. I have written a little bit of script to learn about some list functions. As there was a repeat of a chunk of code I thought I'd make it into a function (displaylist) and just call the function twice but it is not picking up the variables even though I made them global. I know I'm being a chump here by missing something obvious. Code without the function which works fine: list my_list; integer i; integer end; default { touch_start(integer total_number) { list my_list = [
  12. Hi Qie - thanks for your input. I think the +/- 10 degree steps only kick in when the rotation position goes past the end points i.e. more than 45 or less than -45 in order to bring the object position back into range. It seems to work quite well - my low prim mesh receptionist almost looks like an animesh model. It does look like the 'home grown' localrot is a bit of an overkill and I'll have a go at simplifying it as you suggest - on the other hand why fix it if it isnt broke
  13. As an experiment, I tried changing these lines in the original code: if(z > 360) { z -= 360;} else if(z < 0) { z += 360;} to if(z > 45) { z -= 10;} else if(z <-45) { z += 10;} So far it seems to work ok - is this a possible solution to my original question?
  14. Hi Qie - thanks for your replies. Just working with your ETA1, it does rotate +/- 45 degrees but the incremental steps are too big at the moment and so the object moves too fast through the rotational changes. I was looking for much smaller steps (like in the pigeon script above) as if the avatar object was just shuffling around. Yes, re your ETA2 you're right about the tiny x and y values as I wanted the avatar object to slightly tilt back and forth as it rotated enhancing the shuffling impression. At this stage I was going to apply it to the whole object but once I can get this working I
  15. Hi all - I have a script that was originally used to give realistic movement to a pigeon. I have a mesh receptionist avatar object (not animesh) that I've put this script into so that there is a little bit of movement for her rather than her just standing static. So with this script she can rotate 360 degrees which means sometimes she has her back to visitors. I have been trying to adjust this script so that she only turns in say a 90 degree arc (i.e 45 degrees either way of facing forward). Is it worth trying to edit this script or start from scratch. I am not too bad at scripting in gen
  16. Thanks Lucia - I did actually file a bug report yesterday (bug 228888) after posting here first since it didnt seem others had the same experience as me. This was first time I filed a bug report and was surprised to get a very quick response with a request to pass copies of my notecards inworld to a Linden. Will post back here what the solution is.
  17. So I've tested this further to see if the LMs were corrupted or not. I tested one list against another - both seeded with the LMs from my inventory but tested with an alt that didn't have any of these LMs in their inventory. The success/failures are blocked together rather than randomly spread throughout the notecard. These two lists are in alphabetical order and the LMs correspond with each other - in first list the 1st 20 LMs failed to open, next 30 were ok, next 20 failed, next 40 were ok. In second list some of those that successfully opened in first list failed and vice versa - first
  18. I have a fashion brand franchise store in SL. In that store I have over 160 vendors over 4 levels. The outfits are for multiple mesh bodies (9 in total including Maitreya, Belleza, Slink, etc) but not every outfit is available for every mesh body. So to assist customers to locate which outfits are suitable for their mesh, I made an interactive catalog hud. When you click the hud it opens a menu where you select what mesh body you are. The next menu allows you to select for your mesh, how you want the list sorted - by name, color, price or outfit type. Once you make a selection, you are o
  19. KT - 'touch_end' did the trick thanks. Made the other edit you suggested as well. Thanks again for fast reply.
  20. So I tried putting the detach command in run-time section but it still needed two clicks to detach. default { touch_start(integer n) { llRequestPermissions(llGetOwner(), PERMISSION_ATTACH); } run_time_permissions(integer permission) { if(permission) { llDetachFromAvatar(); } } }
  21. Hello there - I found this thread when I was looking for a 'detach hud' script. I have made a hud and have added a close button at top right. In that prim, I have put a very simple script to detach the hud when touched. I read that I have to have the llRequestPermmissions which assumes the permission is given since the avatar attached the hud before the llDetachFromAvatar will work. So everything works fine except that an avatar has to click the close button twice before it detaches. I think I need to make a slight adjustment to my script so that the button only needs to be clicked once t
  22. Thank you for your confirmations - I'll stick with a message to the user to widen their notecard window.
  23. The script I'm currently working on is essentially a notecard giver. The data in the notecard is basically lines of a table. The notecard when it is displayed to the recipient is narrower than the line of data which wraps around making it look a bit unintelligible until the recipient pulls the window wider. I could put a line of text at the top of the notecard asking the user to pull it wider but Is it possible with LSL to amend the notecard window width?
  24. Thanks Molly and Rachel - Ok, I got it now - instead of objects think of notecards. So I could have 8 notecards inside my object, each notecard title being the name of one of my top level menu buttons and within each notecard the 8 relevant landmarks. I've got something now that I can get my teeth into. Thanks
  25. Hi Molly - thanks for replying to my questions. My existing menu script itself works ok for me and I could move my variables from the script to be read in from a notecard or reorganise them into lists as you suggest. But what I wanted to achieve though, is to make this process even easier for anyone I share my script with who will want use their own landmarks rather than mine by them simply dragging their landmarks from their inventory into an object. I wanted to save them the bother of editing the script or notecard. Ideally I'd like to have a single object which will contain x numbe
  • Create New...