-
Posts
1,663 -
Joined
-
Last visited
Content Type
Forums
Blogs
Knowledge Base
Everything posted by Darkie Minotaur
-
If you put your script in a child, the touch event will only be triggered on touching this chld. If - for any reason - this won't work, you can detect which prim has been touched and only react on a touch to the one in question.
-
Read the caveats of the collision events
-
You should put the code you want to execute in a function and then call this function from an event handler. So much for the syntax aspects. I don't know too much about getting data to SL from java script, but when I fiddled around with it a bit, I remember that I never really managed to pass data to SL - I'm sure you can, I just decided that it's much easier with php and fsocks.
-
Not really, no tricks.
-
Ok - I think I understood now. It's more of an Java Script issue than a LSL issue. I haven't really tried it, but what you do is basically pulling data to a webpage using JS - and that's well possible using e.g. a frame or iFrame and with a frame.location = url command. You put the contents of your response into the body.
-
I looked at JSON and SL a little while ago - I found this article/implentation helpful.
-
You'd need the following steps (there are different ways, but the basic ingredients are the same ones. This one is assuming that the plattform is what you're sitting on): set a sit target set the click action to sit on a simple click in the attach event you check whether an ava sits on the plattforn. If there is an avatar you get the permission to play an animation. if the permission is granted, an accordinng event will be triggered, which you now use to play the animation and do the platform movement. Of course the are bells and whistles you can add, e.g. by unsitting the ava as soon as the elevator has reached its target, but this should give you an idea of how to design your script.
-
If the moving plattform is the child and is to move along the parents z axis, the script would look something like this (with the script in the child only: integer up;vector pos;default { state_entry() { pos = llGetPos(); } touch_end(integer num_detected) { if (up) { llSetPos(pos + <0,0,2>); } else { llSetPos(pos); } up = !up; }} A root doesn't inherit a childs scripts - mae sure you are actually adding the script to the child. You can only select a child in a linkset if you mark "Edit Linked Parts" in the little Edit window
-
Avatar lädt nicht mehr
Darkie Minotaur replied to MichelleCaroline Beaumont's topic in Deutsches Forum
hast du es schon mit den tricks der phoenix leute probiert - hier unter "SL Related"? Mit den tips hatte ich immmer gute erfahrungen -
Tip: Looking for something you cannot find?
Darkie Minotaur replied to Lexie Linden's topic in Wanted
You shouldn't post your question as a reply to this thread - open a new one. No one is gonna look here - this is just an announcement. -
llHTTPRequest() is being a pain. A little help?
Darkie Minotaur replied to Connely Aura's topic in LSL Scripting
I'm now IP expert - the response is strange to me. I'm getting the same if I want to contact http://lifeinletters.net from SL - it works perfectly if I do it through my browser. In the first case the DNS server cannot resolve the DNS name. If I use the IP from SL, I do get an response. I really don't know wnough about the DNS to be able to tell the possible reasons for that - but I'm sure other here do. -
Help with random line script
Darkie Minotaur replied to Kaitlynn Rainforest's topic in LSL Scripting
I'm not sure if I understand you correctly, but of course you can use llGetNotecardLine to read the lines in any order. There are many examplesa out there where programmers have sprcific information in a specific line and read just that by providing the the line to read and not read all lines before that -
llHTTPRequest() is being a pain. A little help?
Darkie Minotaur replied to Connely Aura's topic in LSL Scripting
Still better than wild guessing I would try to pin the problem step by step. Make a very simple script and a corresponding php file in which you step by step increase the complexity of the URL to what you have now and see where the error occurs. ETA: What error do you get from the server? -
llHTTPRequest() is being a pain. A little help?
Darkie Minotaur replied to Connely Aura's topic in LSL Scripting
There is no 2k limit for requests per se - the limit is set by the webserver and can be anything. -
llHTTPRequest() is being a pain. A little help?
Darkie Minotaur replied to Connely Aura's topic in LSL Scripting
When you put your URL together, do you use llEncodeURL - it sounds as if this could be the problem. And it would be helpful to look at the lines where you put the URL together. -
Need expert scripter for hire...
Darkie Minotaur replied to Sweepstakes's topic in Inworld Employment
This is a forum for scripting issues - if you look for a scripter, please post here. -
... and take this discussion to Lifestyle forum
-
Keep us informed on what happens. I would just laugh my ass off if your friend would get suspended (and maybe more) by LL and sued for fraud and theft in RL - that would really be fun!
-
Viewer can be either third party or provided by LL. As for a bot, these are based on the code and libraries released by LL for third parties. If the interaction between student and NPC ist mostly verbal plus the possibility of selecting oher actiopns from multiple choices, you actually wouldn't need a bot. You can build the interaction logic in LSL and send verbal information uttered by the student out via HTTP, analyze it in a program written in the language of your choice and have it send back any answer you want to give to the student. The student in this case would not interact with an avatar but a SL object "which could look like a person).