Hello,
First, let me tell you I'm not a scripter but I can edit simple scripts for my needs. I bought a script on the Marketplace and couldn't edit it, quite honestly, it was beyond my comprehension of scripts. So I contacted the maker and he sent me a "Simple" script to use with instruction to just copy the note card or website part of the script to suit my needs.. well Ive done that and it's still not working.. I keep getting a syntax error.. Ive gone over it several times and still it's not working.
The idea of the script is an info board.. when clicked, it will give a drop down menu of buttons to choose from.. and will either give the clicker a note card, or open a website. Can you take a look at this script and advise me of where I've gone wrong please? The ERROR: (62, 1) : ERROR : Syntax error
integer channel; // Channel for communication between Clicker and our Script
integer listening; // Handle listening
default
{
state_entry()
{
channel = (integer)(llFrand(-1000000000.0) - 1000000000.0);
listening = llListen(channel,"", "","");
}
on_rez(integer start_param)
{
llResetScript(); // We reset script on rez, so that it generates new channel for communication
}
touch_start(integer total_number)
{
llDialog(llDetectedKey(0),
"\nPlease choose an option:",
(["Booking", "Song List", "Join Group","WebSite", "Calendar","Facebook","Reverb","Youtube"]),
channel);
}
listen(integer _chan, string _name, key _id, string _option)
{
if (_option == "Notecard")
{
llGiveInventory(_id,"Booking Info");
}
{
if (_option == "Notecard")
{
llGiveInventory(_id,"Song List");
}
{
if (_option == "Notecard")
{
llGiveInventory(_id,"Join Group");
}
if (_option == "WebSite")
{
llLoadURL(_id, "Visit website?", "https://www.roguegalaxymusic.com");
}
{
llLoadURL(_id, "Visit website?", "https://calendar.google.com/calendar/embed?src=moj8pm1uojuciitflq8d02uh60%40group.calendar.google.com&ctz=America%2FNew_York");
}
{
llLoadURL(_id, "Visit website?", "https://www.facebook.com/RogueGalaxySL");
}
{
llLoadURL(_id, "Visit website?", "https://www.reverbnation.com/cathietimian");
}
{
llLoadURL(_id, "Visit website?", "https://www.youtube.com/c/cathietimian/");
}
}
}