Why isn't the touch script working? Please, I need help from a scripter ASAP. Here's the snippet:
integer setting;
float wait;
float rand;
default
{
state_entry()
{
@blink;
llSetText((string)setting, <1, 1, 1>, 1);
if(setting == 0)
{
llOffsetTexture(0, 0.2, -1);
llOffsetTexture(0, 0.4, -1);
wait = 0;
rand = llFrand(0.2) + 0.1;
while(wait < rand)
{
wait = wait + 0.25;
llOffsetTexture(0, 0.4, -1);
}
llOffsetTexture(0, 0.2, -1);
llOffsetTexture(0, 0, -1);
wait = 0;
rand = llFrand(8.0);
while(wait < rand)
{
wait = wait + 0.25;
llOffsetTexture(0, 0, -1);
}
}
if(setting == 1)
{
llOffsetTexture(0, 0, -1);
}
if(setting == 2)
{
llOffsetTexture(0, 0.4, -1);
}
if(setting == 3)
{
llOffsetTexture(0, -0.1, -1);
}
if(setting == 4)
{
llOffsetTexture(0, 0.2, -1);
}
jump blink;
}
touch(integer total_number)
{
if(setting == 4)
{
setting = 0;
}
else
{
setting = setting + 1;
}
llOwnerSay((string)setting);
}
}