Builders Buddy consists of two scripts, a "Base" script and a "Components" script, and in them both we have this somewhat odd construct:
Inside global subroutine _heard_ on line 196 this line is nested:
state reset_listeners;
Which refers to this state declaration:
state reset_listeners
{
state_entry()
{
state default;
}
}
The error it gets is:
1 'state(string)' is a 'method' but is used like a 'type' BuildersBuddyBase.lsl 196 5
Interestingly, lsl_editor does not get an error on the script below, which is the same basic construct, except that the restart_default invocation is not in a subroutine:
default
{
state_entry()
{
llSay(0,"Hello, Avatar!"
;}
touch_start(integer total_number)
{
state restart_default;
}
}
state restart_default
{
state_entry()
{
state default;
}
}