Page 1 of 1

Blinky Hover - not workie

Posted: Wed Oct 05, 2022 8:03 pm
by Shandon Loring
Hi all,
Following simple script works in SL, but not here...
ΒΏPor que?
Thanks for any suggestions.

> The desired result is a simple looping blinking of the the hovertext from red-to-green-to-red-etc-etc, which is what happens in SL.
> The actual result here in OS however is red-green-full stop.

Thanks all!!
(yes it has llSleep with seems to have developed it's own special hate society, and i could probably set up explicit 'states' and switch between them, but that aside... something is keeping this super simple script from working... just curious what it may be? Hint: it's not the emoji's, those are legal)

default
{
state_entry()
{
llSetText(" \nπŸ‘†\n \n ", <1.00,0.0,0.0>, 1);
llSleep (0.5);
llSetText(" \nπŸ‘†\n \n ", <0.00,1.0,0.0>, 1);
llSleep (0.5);
llResetScript();
}
}

Re: Blinky Hover - not workie

Posted: Wed Oct 05, 2022 9:25 pm
by Graham Mills
OpenSim has better taste? :twisted:

Re: Blinky Hover - not workie

Posted: Wed Oct 05, 2022 9:31 pm
by Shandon Loring
and less filling!

Re: Blinky Hover - not workie

Posted: Wed Oct 05, 2022 9:36 pm
by Graham Mills
This "works"

Code: Select all

default
{
state_entry()
{
llSetText(" \nπŸ‘†\n \n ", <1.00,0.0,0.0>, 1);
llSleep (0.5);
llSetText(" \nπŸ‘†\n \n ", <0.00,1.0,0.0>, 1);
llSleep (0.5);
state sub;
}
}

state sub
{
    state_entry()
    {
        llResetScript();
    }
}

Re: Blinky Hover - not workie

Posted: Wed Oct 05, 2022 10:07 pm
by Shandon Loring
cool! thank you Graham...
must be some peculiarity in OS scripting vs Linden scripting for ResetScript
one of those mysteries we'll never know! LoL

but hey... Results!! Works is Works!

ty sir!!

Re: Blinky Hover - not workie

Posted: Sun Oct 09, 2022 5:44 pm
by Graham Mills
Another version not using llSleep.

Code: Select all

integer FLAG;

default
{
    state_entry()
    {
        FLAG = 0;
        llSetTimerEvent(10.0);
    }
    
    timer()
    {
        if (FLAG == 0)
        {
            llSetText("OFF", <1,0,0>, 1);
            FLAG = 1;
        }
        else
        {
            llSetText("ON", <0,1,0>, 1);
            FLAG = 0;
        }
    }
}