Jump to content

Darkie Minotaur

Resident
  • Posts

    1,663
  • Joined

  • Last visited

Posts posted by Darkie Minotaur

  1. 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.

  2. 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):

    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.

  3. 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

     

  4. 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

  5. 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).

×
×
  • Create New...