// 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 ##########################
KarinBecker: Thank you for the warm words and many Messages 6 months ago |
Symphony: Super Fun! Omg ! I spent an hour there exploring and found it so interesting, easy on the eye, and an excelent example of how to make an environment with simple pieces. Excellent. ... 2 years ago |
Lilly Pond: You guys are the BEST! I love your fantasy world and I ty for all you create! 2 years ago |
Jimmy Olsen: ** EEP HUD V2 updated *** April 21th 2022 - Just fixed the SUMMER skies for LATITUDE 70 NORTH only. The others ones remain ok, if you don`t use it, update is not necessary. Thx (and sorry for the ofte... 2 years ago |
Kris Patrick: This is awesome, thanks, Jimmy. 2 years ago |
Xenon Darrow: I love this grid! It's my home grid, with a 4x4 region! Always wonderful events, and you are always treated like family! Professional support, grid is always up and working supremely! 10/10 2 years ago |
Pagane: Do you notice we are talking to ourselves? None of the drama queens pooped here? I thank them for blocking us and we can discuss without their hysterical attacks :) 4 months ago |
Hugabug: very beautiful memorial Rudi will be missed 1 years ago |
Mudyblues: Auch dem Soul ein frohes Weihnachtsfest 1 years ago |
Zoe: The region is down for now, but wil be back soon, Pirate Falene turns around... Its magick what a Pirate can do, disappear and come back. Unfathomable Pirates Voyages ☺☻☺ 2 years ago |
RichardFairplay: Thank you! 2 years ago |
Blow Torch: I will say this i Have Never Banned anyone, unless it was really bad, i know some of you :) i use to run Eros island and it took a lot for me to ban anyone since i came to opensim i try to be same way... 2 years ago |
Jupiter Rowland: FYI: Outworldz has loads of brick textures waiting to be used. I haven't tested the normal maps that were probably generated from the textures yet, but they're there. A few brick textures even come w... 2 months ago |
IndigoQueen King: I am new to OS so I don't know about all of the past BS those ppl put you through. I hope that you continue to heal and thrive..when I came to visit your grid you and your friends greeted me with warm... 3 months ago |
KarinBecker: was wieder für eine wunderbare idee und das mit dem Monygiver finde ich einfach klasse what a wonderful idea again and that with the Monygiver I just think it's great 4 months ago |
Darci Viper: Thank You Jimmy :) 5 months ago |
SheaButter: I actually visited many Halloween builds, and left reviews on most. Your still on the top 10 for me Thomas. Great collection you have there, enjoyed visiting, and thanks for sharing. 7 months ago |
Jerralyn Franzic: Haha... have to score this for an alt! Your Grandma approves... :D 12 months ago |
Jupiter Rowland: Hast du die alten Strumpfhosen aktualisiert? Frage für eine Verwandte. 1 years ago |
Destiny257Seranade: Oh I can hardly wait til you have this open! This is the type of amusement that Dan and I absolutely love having fun at! Bring that Beta Testing on!! Lol! 1 years ago |
KrisTina: Thanks! 1 years ago |
Luna Lunaria: Love you Buddy! 2 years ago |
Rudi Bakerly: Angebot statt Alts :-) Auf nun 9 Etagen ! 2 years ago |
Kashi Takeshi: Welcome back :) 2 years ago |
PinDeluca: OMG ! WHAT A BEAUTIFUL PLACE ! Bravo - stunning ! 27 days ago |
Thorben Goerssen: Wolf ist der ein sehr guter Owner..er hat wenn man ein Problem hat immer Zeit und kümmert sofort darum. Auch ich bin sehr stolz ein Mitglied vom Wolf Ter. zu sein und kann es nur weiterempfehlen. 2 months ago |
iekocatnap: Les petites lapines sont affairées en ce moment, n'hésitez pas à liker et voter chez falene, c'est gratuit et ça aide à garder ce beau terrain en vie 5 months ago |
Milly Money: Easily my favourite place for ladies clothing. If you haven't shopped here you are missing out :) 7 months ago |
PinDeluca: Wow this look amazing. I must visit. 8 months ago |
No comments yet