[Opensim-users] Moving Script Recipes from SL to OpenSim
Kay McLennan
mclennan.kay at gmail.com
Thu Nov 25 16:42:33 UTC 2010
Thank you BlueWall! Your suggestion pointed me in the right direction.
That is, by removing the "from llLoadURL(llDetectedKey(0),message, URL"
line, I was able to save the script and the desired hoover text appeared.
Still, in order to get the object to simultaneously open the web page, I
ended up combining my original SL script with a script from:
http://sl4calico.pbworks.com/w/page/5099146/LSL:-Linden-Scripting-Language (see
below)
//replace the URL immediately below with your own.
string Url = "http://www.scs.tulane.edu/";
default {
state_entry()
{
llSetText(llGetObjectName(), <1.0, 1.0, 1.0>, 1.0);
}
on_rez(integer start_param) {
llResetScript();
}
touch_start(integer total_number) {
llLoadURL(llDetectedKey(0), "Click to go to url", Url);
}
dataserver(key queryid, string data) {
Url = "http://www.scs.tulane.edu/" + llEscapeURL(data);
}
}
Needless-to-say, I need to "bite the bullet" and actually learn the LSL
fundamentals!
Again, thank you for your reply.
Best,
Kay
On Thu, Nov 25, 2010 at 8:46 AM, BlueWall <jamesh at bluewallgroup.com> wrote:
> On 11/25/2010 09:09 AM, Kay McLennan wrote:
>
> I am in the process of moving my educational builds, materials, etc.
> from SL to a hosted OpenSim VW. In turn, I encountered a problem with a "go
> to website" script -- see the script below. That is, the note card giver
> script I moved from SL to OpenSim works fine but the "go to website" script
> does not. Any suggestions for what I need to do to fix the "go to website"
> script and/or an alternative "go to website" script?
>
> Note: Even though it is likely quite obvious, the extent of my programming
> experience is limited to using and modifying LSL script recipes.
>
> string message="Touch to open the School of Continuing Studies web
> site..."; //Put your message for the Load URL window here
> string URL="http://www.scs.tulane.edu/"; //Put the URL you want to
> open here
> default
> {
> state_entry()
> {
> llSetText(llGetObjectName(), <1.0, 1.0, 1.0>, 1.0);
> }
> touch_start(integer total_number)
> {
> llLoadURL(llDetectedKey(0),message, URL");
> }
> }
>
> With the following error received: (15, -1) Unexpected EOF
>
>
>
> remove the " from llLoadURL(llDetectedKey(0),message, URL"); and that
> will fix it.
>
>
> _______________________________________________
> Opensim-users mailing list
> Opensim-users at lists.berlios.de
> https://lists.berlios.de/mailman/listinfo/opensim-users
>
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://opensimulator.org/pipermail/opensim-users/attachments/20101125/d4cbec02/attachment.html>
More information about the Opensim-users
mailing list