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();
}
}
Blinky Hover - not workie
- Shandon Loring
- Posts: 1348
- Joined: Sat Oct 26, 2013 3:25 am
- Has thanked: 979 times
- Been thanked: 1588 times
- Contact:
Blinky Hover - not workie
Last edited by Shandon Loring on Wed Oct 05, 2022 9:33 pm, edited 2 times in total.
- These users thanked the author Shandon Loring for the post (total 2):
- Ilan Tochner • Chris Namaste
-
- Posts: 1314
- Joined: Sun Dec 23, 2012 2:26 pm
- Has thanked: 1134 times
- Been thanked: 1142 times
Re: Blinky Hover - not workie
OpenSim has better taste?
- These users thanked the author Graham Mills for the post (total 2):
- Shandon Loring • Chris Namaste
- Shandon Loring
- Posts: 1348
- Joined: Sat Oct 26, 2013 3:25 am
- Has thanked: 979 times
- Been thanked: 1588 times
- Contact:
Re: Blinky Hover - not workie
and less filling!
- These users thanked the author Shandon Loring for the post (total 2):
- Graham Mills • Chris Namaste
-
- Posts: 1314
- Joined: Sun Dec 23, 2012 2:26 pm
- Has thanked: 1134 times
- Been thanked: 1142 times
Re: Blinky Hover - not workie
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();
}
}
- These users thanked the author Graham Mills for the post (total 2):
- Shandon Loring • Ilan Tochner
- Shandon Loring
- Posts: 1348
- Joined: Sat Oct 26, 2013 3:25 am
- Has thanked: 979 times
- Been thanked: 1588 times
- Contact:
Re: Blinky Hover - not workie
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!!
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!!
- These users thanked the author Shandon Loring for the post:
- Graham Mills
-
- Posts: 1314
- Joined: Sun Dec 23, 2012 2:26 pm
- Has thanked: 1134 times
- Been thanked: 1142 times
Re: Blinky Hover - not workie
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;
}
}
}
- These users thanked the author Graham Mills for the post (total 2):
- Shandon Loring • Ilan Tochner