// Two scripts in same prim:<br />
<br />
// Script 1 the switch on off<br />
<br />
// Script name: Rain on off<br />
<br />
integer PLAY_SOUND = TRUE; // TRUE for a click-sound, FALSE for silent.<br />
string SOUND = "64319812-dab1-4e89-b1ca-5fc937b8d94a"; // a click sound<br />
string CONTROLLER_ID = "A"; // see more about CONTROL TEMPLATES at end.<br />
integer mode = 0; // keep track of whether particles are ON(1) or OFF(0).<br />
<br />
default {<br />
touch_start(integer total_number) {<br />
<br />
if ( PLAY_SOUND ) llPlaySound( SOUND, 1.0 ); <br />
<br />
mode = ! mode; // flip on to off, (or off to on).<br />
<br />
llMessageLinked( LINK_SET, mode, CONTROLLER_ID, NULL_KEY ); // send command<br />
<br />
}<br />
<br />
// Listen for other controllers sending ON/OFF commands and remember changes:<br />
<br />
link_message( integer sibling, integer num, string controller_id, key ignore ) {<br />
<br />
if ( controller_id != CONTROLLER_ID ) return; // this message is not for us.<br />
<br />
mode = num;<br />
<br />
}<br />
<br />
}<br />
<br />
// ####################### EOF ##########################<br />
<br />
<br />
// Script 2 the rain<br />
// Script name: Rain<br />
<br />
<br />
integer PLAY_SOUND = TRUE; // TRUE for a click-sound, FALSE for silent.<br />
string SOUND = "64319812-dab1-4e89-b1ca-5fc937b8d94a"; // a click sound<br />
string CONTROLLER_ID = "A"; // see more about CONTROL TEMPLATES at end.<br />
integer mode = 0; // keep track of whether particles are ON(1) or OFF(0).<br />
<br />
default {<br />
<br />
touch_start(integer total_number) {<br />
<br />
if ( PLAY_SOUND ) llPlaySound( SOUND, 1.0 ); <br />
<br />
mode = ! mode; // flip on to off, (or off to on).<br />
<br />
llMessageLinked( LINK_SET, mode, CONTROLLER_ID, NULL_KEY ); // send command<br />
<br />
}<br />
<br />
// Listen for other controllers sending ON/OFF commands and remember changes:<br />
<br />
link_message( integer sibling, integer num, string controller_id, key ignore ) {<br />
<br />
if ( controller_id != CONTROLLER_ID ) return; // this message is not for us.<br />
<br />
mode = num;<br />
}<br />
}<br />
<br />
// ####################### EOF ##########################
Derrybeg Arabello: I did not know Veri .. very well, only chatted in passing. She seemed to me like a very sweet and caring person, and of course, she'd care enough about her bird to go back for it. We need more peo... 1 years ago |
Tatum: I've known rudi a little bit (under different avis), but I do remember one of the nicest and most kind people of OS. Rest well my friendly friend! My condolences to friends and family! 2 years ago |
SheaButter: Happy Holidays, to you and your family. Thank you, for sharing all those wonderful items. 6 months ago |
thedeeferry: So, OpenLife has me blocked, so I cannot reply directly to its comment. Nor can I send it a private message which I prefer. I apologize to any others if what I type now offends you. This is directe... 4 months ago |
VickiJoanne: There's a problem with the very concept of "hate speech" and that is WHO exactly gets to define it? In The Box we've seen the recurrent appearance of one or more people who are clearly either trollin... 21 days ago |
KarinBecker: Rest in peace and condolences to all his friends and loved ones. 2 years ago |
BeckySwanson: and when it says that the region does not exist ?... what would be the problem? 2 years ago |
Antonia Ling: Wonderful stuff! Love it... 2 years ago |
Mistressdalgato: Welcome back! any backup is better then no backup, i will come shop soon. 5 months ago |
Jamie Wright: Beautiful tribute:) 1 years ago |
Ankhsenaton: Thank you, I will to to see that :-) (I hope you took lots of photos for the Daily Planet ;-) 17 days ago |
thedeeferry: Best to you also sweet Wolf and to all who love you and all you love. Stay sweet, sweets! (ɔˆ ³ (ˆ⌣ˆc) my sweet Friend Did I mention how sweet your are? lol 6 months ago |
PinDeluca: This is just terrible ... My heart is with you. You Never know how strong you are until strong is your only choice. Take courage. God Bless you all. We will all meet again soon XXX 9 months ago |
OtterLandMGM: https://www.youtube.com/watch?v=vyQf9nB4eYk&list=RDm-1tfeGeNrc&index=2&ab_channel=AndreasGabalierVEVO 1 years ago |
sharanncousine: greetings peter 2 years ago |
Sodasullivan: I think this is the proper way to address this issue Safine. You are setting the rules YOU are comfortable with on YOUR region. I am fine having my region open to everyone as long as they agree to fol... 2 months ago |
AleksanderDesousa: Frohe Ostern euch allen 3 months ago |
ThundergodThor: Positively awesome, I love it! The horses are so realistic looking. Awesome job Roland! 2 years ago |
Sabrinastav: Excuse me, I'm not understanding, you complain because people take things from your sim ?... or do you complain because people copy your sim's stuff? 2 years ago |
FinjaFlux: An inspiration! Your art is like fireworks and animates new ideas! Another wonderful work from you!!! Thank you!!!! 2 years ago |
Sweetgrl: I love Grimm. 2 years ago |
Hange: félicitations plein de bonheur 1 years ago |
Emily Sear: O M G! Too funny ..Famous last words should be posted on all grids.. shut up and just take it! 1 years ago |
CyberGlo CyberStar: The great thing about this "live & let live" attitude, is it means we can EVEN encompass the grinches. 1 years ago |
Jerralyn Franzic: Oh yesss... I think I'll add this to my little car stash here in Open Sim :) 2 years ago |
Essensual: I hope you get well soon. I know what that feels like 3 months ago |
Jimmy Olsen: ****For your information ***FLORA, GREEDY MUSEUM, LIGHT and SOUND MUSEUM will be remain offline for one day or two: It`s about grid server issues. Will post again as soon they all get online. thx 10 months ago |
Ellen: What happened? 1 years ago |
CyberGlo CyberStar: Goodbye dear friend! May your soul fly across the universe as it easily flew in the grids. In the play of bright & dark, may you always be a light. 2 years ago |
CLOE: bravissimo 7 months ago |
MidnightRain Glas: this was the most exciting trip or joy to pick these up and go home to open and take one out and watch everything this cute 4 legged beauty could do... I felt so much peace and love in my heart and fe... 2 years ago |
Tristan Dehaie: @Dabici132, @Marianna, @MelodyStar, @ScarlettEarp, @monika, @thedeeferry, @Roleplayed, @Lampithaler, @Kelso.Uxlay, @elorift, @MoonroseGrid, @JeromFranzic, @soabad Il serait bon de cesser de raconter ... 2 years ago |
GlennXpletive: This is an outstanding idea and great thing to do Sunshine! Seriously, very impressive and helpful to more than just the OS community. You should get the "great Idea" award of the month! 11 hours ago |
AnaKathy: Wundervolle Osterfeiertage euch wünsche :) 3 months ago |
KrisTina: Why is the region in question still taking up the Rank 2 spot if it's "Inaccurate" ? 6 months ago |
Star Ravenhurst: Merry Christmas!! 6 months ago |
Trizzy Hunter: Merry Christmas Thomas and have a safe New Year. Here's to 2024 may all you wishes and dreams come to pass. 6 months ago |
No comments yet