Friday, November 30, 2007

Interesting script problem

Hi all,

Ben and I are trying to figure out a script problem that
could be indicitive of a deeper problem.

If you go to the reception room for Inferno, you will
see a picture of Sandro Boticelli. If you touch
the picture a loadURL message comes up and if you
select OK you get a web page with info on Botticelli.

So far so good. Here is the simple script:




string SiteName = " " ;
//Change this to meet your needs.
string SiteURL = "http://si.ist.psu.edu/neodante/afterlife/inferno/sandro-botticelli-1444-1510/";
//Change this to meet your needs.

default
{
state_entry()
{
llSetText(SiteName,<0,1,1>,2);
}


touch_start(integer total_number)
{
llLoadURL(llDetectedKey(0), SiteName, SiteURL);
}

}


Now - I copied my Botticelli picture, and put a copy in
the reception room of Purgatorio.

But now the script does not work! Same exact script!

I then create a new object - paste the script there -
it compiles successfully -- same problem (no message, no
web browser window, no nothing!)

So, again on the new object, I whittle down the
script to the following simplest possible script:


default
{
state_entry()
{
llSay(0, "Hello, Avatar!");
}

touch_start(integer total_number)
{
llLoadURL(llDetectedKey(0), "fred", "http://www.psu.edu");
}
}


Still no work!

Thoughts? Both Ben and I worked on this but could not
find any solution.

- gerry

No comments: